Function at 0x51ce40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc4
mov edx, dword [esp + 0xc8]
push ebx
mov ebx, dword [esp + 0xd0]
push ebp
mov ebp, dword [edx + 0x1c]
mov eax, dword [edx + 0x14]
imul ecx, ebx, 0x160c
push esi
push edi
mov esi, dword [eax]
mov edi, dword [edx + 0x18]
xor edx, edx
mov eax, dword [ebp + 0x4c]
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x18], esi
mov eax, dword [ecx + eax + 0x15d0]
mov ecx, ebp
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x18]
mov ebp, dword [ecx + 0x18]
mov dword [esp + 0x60], eax
mov eax, ebx
div ebp
mov esi, dword [edi]
imul edx, dword [ecx + 0xc]
mov eax, dword [esp + 0x18]
add edx, dword [ecx + 4]
cmp edx, esi
cmova esi, edx
mov dword [eax], esi
mov eax, dword [ecx + 0xc]
xor ecx, ecx
add eax, edx
mov edx, dword [edi + 8]
adc ecx, ecx
neg ecx
or ecx, eax
mov eax, dword [esp + 0x18]
cmp ecx, edx
cmovb edx, ecx
mov dword [eax + 8], edx
test esi, esi
js 0x51da62
cmp edx, esi
jle 0x51da62
xor edx, edx
mov esi, dword [edi + 4]
mov eax, ebx
mov ebx, dword [esp + 0x18]
div ebp
mov edx, eax
mov eax, dword [esp + 0x6c]
imul edx, dword [eax + 0x10]
add edx, dword [eax + 8]
cmp edx, esi
cmova esi, edx
xor ecx, ecx
mov dword [ebx + 4], esi
mov eax, dword [eax + 0x10]
mov edi, dword [edi + 0xc]
add eax, edx
adc ecx, ecx
neg ecx
or ecx, eax
cmp ecx, edi
cmovb edi, ecx
mov dword [ebx + 0xc], edi
test esi, esi
js 0x51da5b
cmp edi, esi
jle 0x51da5b
mov edi, dword [esp + 0x30]
cmp dword [edi + 4], 0
jne 0x51cf36
push str.tiles_require_at_least_one_resolution_n
jmp 0x51da67
cmp dword [ebx + 0x10], 0
mov dword [esp + 0x70], 0
jbe 0x51d964
movsd xmm0, qword [0x5bc7c0]
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x60]
movsd qword [esp + 0xbc], xmm0
movsd xmm0, qword [0x600ed8]
movsd qword [esp + 0xc4], xmm0
movsd xmm0, qword [0x5bbbf8]
movsd qword [esp + 0xcc], xmm0
mov eax, dword [ebx]
cdq
mov esi, eax
mov dword [ebx + 0x24], 0
mov eax, dword [esp + 0x18]
mov ecx, edx
push ecx
push esi
mov eax, dword [eax]
cdq
add eax, esi
adc edx, ecx
sub eax, 1
sbb edx, 0
push edx
push eax
call fcn.00573530
mov dword [ebp], eax
mov eax, dword [ebx + 4]
cdq
mov esi, eax
mov ecx, edx
mov eax, dword [esp + 0x18]
push ecx
push esi
mov eax, dword [eax + 4]
cdq
add eax, esi
adc edx, ecx
sub eax, 1
sbb edx, 0
push edx
push eax
call fcn.00573530
mov dword [ebp + 4], eax
mov eax, dword [ebx]
cdq
mov esi, eax
mov ecx, edx
mov eax, dword [esp + 0x18]
push ecx
push esi
mov eax, dword [eax + 8]
cdq
add eax, esi
adc edx, ecx
sub eax, 1
sbb edx, 0
push edx
push eax
call fcn.00573530
mov dword [ebp + 8], eax
mov eax, dword [ebx + 4]
cdq
mov esi, eax
mov ecx, edx
mov eax, dword [esp + 0x18]
push ecx
push esi
mov eax, dword [eax + 0xc]
cdq
add eax, esi
adc edx, ecx
sub eax, 1
sbb edx, 0
push edx
push eax
call fcn.00573530
mov dword [ebp + 0xc], eax
mov ecx, 1
mov eax, dword [esp + 0x70]
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 0x6c]
mov esi, dword [edi + 4]
mov dword [ebp + 0x14], esi
mov edx, dword [eax + 0x50]
mov eax, dword [edi + 4]
sub eax, edx
cmp dword [edi + 4], edx
cmovb eax, ecx
mov dword [ebp + 0x18], eax
push dword [ebp + 0x34]
imul esi, esi, 0x98
call fcn.00506020
mov eax, dword [ebp + 0x1c]
add esp, 4
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 0
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 0
test eax, eax
jne 0x51d0a3
push esi
call fcn.005071f0
add esp, 4
mov dword [ebp + 0x1c], eax
test eax, eax
je 0x51da78
push esi
push 0
push eax
mov dword [ebp + 0x20], esi
call fcn.0042d490
jmp 0x51d0d1
cmp esi, dword [ebp + 0x20]
jbe 0x51d0d4
push esi
push eax
call fcn.00507210
add esp, 8
test eax, eax
je 0x51d974
mov ecx, esi
mov dword [ebp + 0x1c], eax
sub ecx, dword [ebp + 0x20]
add eax, dword [ebp + 0x20]
push ecx
push 0
push eax
call fcn.0042d490
mov dword [ebp + 0x20], esi
add esp, 0xc
cmp dword [edi + 0x14], 0
lea eax, [edi + 0x1c]
mov ebx, dword [ebp + 0x14]
mov ecx, 0x5265c0
mov esi, dword [ebp + 0x1c]
mov dword [esp + 0x5c], eax
mov eax, 0x5265e0
cmovne eax, ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x94], eax
mov dword [esp + 0x3c], 0
test ebx, ebx
je 0x51d932
nop dword [eax]
xor ecx, ecx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], ebx
xor edi, edi
mov dword [esp + 0x88], ebx
mov dword [esp + 0x80], ebx
dec ebx
mov eax, ebx
mov dword [esp + 0x10], ebx
bts ecx, eax
cmp eax, 0x20
cmovae edi, ecx
xor ecx, edi
cmp eax, 0x40
mov eax, dword [ebp]
cmovae edi, ecx
cdq
add eax, ecx
mov dword [esp + 0x1c], ecx
mov ecx, ebx
mov dword [esp + 0x20], edi
adc edx, edi
sub eax, 1
sbb edx, 0
call fcn.005738d0
mov edi, eax
mov ecx, ebx
mov dword [esi], edi
mov eax, dword [ebp + 4]
cdq
add eax, dword [esp + 0x1c]
adc edx, dword [esp + 0x20]
sub eax, 1
sbb edx, 0
call fcn.005738d0
mov ecx, dword [esp + 0x10]
mov ebx, eax
mov dword [esi + 4], ebx
mov eax, dword [ebp + 8]
cdq
add eax, dword [esp + 0x1c]
adc edx, dword [esp + 0x20]
sub eax, 1
sbb edx, 0
call fcn.005738d0
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x64], eax
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
cdq
add eax, dword [esp + 0x1c]
adc edx, dword [esp + 0x20]
sub eax, 1
sbb edx, 0
call fcn.005738d0
mov ecx, dword [esp + 0x3c]
mov ebp, eax
mov edx, dword [esp + 0x30]
mov dword [esi + 0xc], ebp
mov esi, dword [edx + ecx*4 + 0x3b0]
mov eax, dword [edx + ecx*4 + 0x32c]
mov edx, edi
mov ecx, eax
mov dword [esp + 0x38], eax
sar edx, cl
mov eax, ebx
shl edx, cl
mov ecx, esi
sar eax, cl
shl eax, cl
xor ecx, ecx
mov dword [esp + 0x48], eax
mov eax, esi
bts ecx, eax
mov dword [esp + 0x24], esi
xor esi, esi
mov dword [esp + 0x44], edx
cmp eax, 0x20
cmovae esi, ecx
xor ecx, esi
cmp eax, 0x40
cmovae esi, ecx
mov eax, ebp
cdq
add eax, ecx
mov ecx, dword [esp + 0x24]
adc edx, esi
sub eax, 1
sbb edx, 0
call fcn.005738d0
mov ecx, dword [esp + 0x24]
xor esi, esi
shl eax, cl
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x64]
cmp edi, eax
jne 0x51d246
mov edi, dword [esp + 0x38]
jmp 0x51d27f
mov ecx, dword [esp + 0x38]
xor edi, edi
bts esi, ecx
cdq
cmp ecx, 0x20
cmovae edi, esi
xor esi, edi
cmp ecx, 0x40
cmovae edi, esi
add eax, esi
adc edx, edi
sub eax, 1
mov edi, ecx
sbb edx, 0
call fcn.005738d0
mov ecx, edi
mov esi, eax
shl esi, cl
sub esi, dword [esp + 0x44]
sar esi, cl
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov dword [eax + 0x10], esi
cmp ebx, ebp
jne 0x51d28e
xor ebp, ebp
jmp 0x51d298
mov ebp, dword [esp + 0x54]
sub ebp, dword [esp + 0x48]
sar ebp, cl
mov dword [eax + 0x14], ebp
test esi, esi
je 0x51d2ae
or eax, 0xffffffff
xor edx, edx
div esi
cmp eax, ebp
jb 0x51d9ae
imul ebp, esi
mov dword [esp + 0x54], ebp
cmp ebp, 0x6666666
ja 0x51d9ae
lea ebx, [ebp*4]
add ebx, ebp
shl ebx, 3
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x64], ebx
jne 0x51d2df
mov eax, 1
jmp 0x51d314
mov eax, dword [esp + 0x44]
cdq
add eax, 1
adc edx, 0
shrd eax, edx, 1
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x48]
cdq
add eax, 1
adc edx, 0
dec edi
shrd eax, edx, 1
dec ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x48], eax
mov eax, 3
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x2c]
mov ecx, edi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x84], 0
mov dword [edx + 0x18], eax
cmp dword [esi + 8], edi
lea edi, [edx + 0x1c]
mov eax, dword [esi + 0xc]
cmovb ecx, dword [esi + 8]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x24]
cmp eax, ecx
mov dword [esp + 0x28], edi
cmovb ecx, eax
mov eax, 1
mov dword [esp + 0x50], ecx
mov dword [esp + 0x58], eax
nop word [eax + eax]
cmp dword [esp + 0x3c], 0
mov ecx, dword [esp + 0x10]
jne 0x51d3f3
mov esi, dword [esp + 0x14]
mov dword [edi + 0x10], 0
mov eax, dword [esi]
cdq
add eax, dword [esp + 0x1c]
adc edx, dword [esp + 0x20]
sub eax, 1
sbb edx, 0
call fcn.005738d0
mov ecx, dword [esp + 0x10]
mov dword [edi], eax
mov eax, dword [esi + 4]
cdq
add eax, dword [esp + 0x1c]
adc edx, dword [esp + 0x20]
sub eax, 1
sbb edx, 0
call fcn.005738d0
mov ecx, dword [esp + 0x10]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
cdq
add eax, dword [esp + 0x1c]
adc edx, dword [esp + 0x20]
sub eax, 1
sbb edx, 0
call fcn.005738d0
mov ecx, dword [esp + 0x10]
xor esi, esi
mov dword [edi + 8], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
cdq
add eax, dword [esp + 0x1c]
adc edx, dword [esp + 0x20]
sub eax, 1
sbb edx, esi
call fcn.005738d0
jmp 0x51d4f5
mov dword [edi + 0x10], eax
xor edx, edx
and eax, 1
call fcn.00573900
mov ecx, dword [esp + 0x80]
xor esi, esi
bts esi, ecx
xor edi, edi
mov ebx, eax
cmp ecx, 0x20
mov eax, dword [esp + 0x14]
mov ebp, edx
cmovae edi, esi
xor esi, edi
cmp ecx, 0x40
mov dword [esp + 0x34], esi
mov eax, dword [eax]
cmovae edi, esi
cdq
sub eax, ebx
mov dword [esp + 0x40], edi
sbb edx, ebp
add eax, esi
adc edx, edi
sub eax, 1
sbb edx, 0
call fcn.005738d0
mov ecx, dword [esp + 0x28]
xor edx, edx
mov dword [ecx], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x10]
shr eax, 1
call fcn.00573900
mov ecx, dword [esp + 0x88]
mov esi, eax
mov eax, dword [esp + 0x14]
mov edi, edx
mov eax, dword [eax + 4]
cdq
sub eax, esi
sbb edx, edi
add eax, dword [esp + 0x34]
adc edx, dword [esp + 0x40]
sub eax, 1
sbb edx, 0
call fcn.005738d0
mov ecx, dword [esp + 0x28]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x8c]
mov eax, dword [eax + 8]
cdq
sub eax, ebx
sbb edx, ebp
add eax, dword [esp + 0x34]
adc edx, dword [esp + 0x40]
sub eax, 1
sbb edx, 0
call fcn.005738d0
mov ecx, dword [esp + 0x28]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
cdq
sub eax, esi
sbb edx, edi
add eax, dword [esp + 0x34]
adc edx, dword [esp + 0x40]
sub eax, 1
sbb edx, 0
call fcn.005738d0
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x68]
mov ebp, dword [esp + 0x54]
mov ebx, dword [esp + 0x64]
push esi
mov dword [edi + 0xc], eax
call dword [esp + 0x98]
mov ecx, dword [esp + 0x64]
add esp, 4
mov esi, dword [esp + 0x5c]
movsd xmm0, qword [esp + 0xbc]
mov ecx, dword [ecx + 0x18]
sub ecx, dword [esi]
add ecx, eax
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
call fcn.005976c0
movd xmm1, dword [esi + 4]
cvtdq2pd xmm1, xmm1
mov eax, dword [esp + 0x30]
mulsd xmm1, qword [esp + 0xc4]
addsd xmm1, qword [esp + 0xcc]
mulsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x5bc548]
movss dword [edi + 0x20], xmm0
mov ecx, dword [eax + 0x324]
mov eax, dword [esi]
dec eax
add eax, ecx
mov dword [edi + 0x1c], eax
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x51d5a3
test ebp, ebp
je 0x51d5a3
push ebx
call fcn.005071f0
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
je 0x51d9c2
push ebx
push 0
push eax
call fcn.0042d490
add esp, 0xc
mov dword [edi + 0x18], ebx
mov ebx, dword [edi + 0x14]
xor edx, edx
mov dword [esp + 0x34], edx
jmp 0x51d5e5
cmp dword [edi + 0x18], ebx
jae 0x51d5d4
push ebx
push eax
call fcn.00507210
add esp, 8
test eax, eax
je 0x51d9d6
mov ecx, ebx
mov dword [edi + 0x14], eax
sub ecx, dword [edi + 0x18]
add eax, dword [edi + 0x18]
push ecx
push 0
push eax
call fcn.0042d490
add esp, 0xc
mov dword [edi + 0x18], ebx
mov ebx, dword [edi + 0x14]
xor edx, edx
mov dword [esp + 0x34], edx
test ebp, ebp
je 0x51d8cd
mov ecx, dword [esp + 0x38]
mov esi, 1
shl esi, cl
xor ebp, ebp
mov ecx, dword [esp + 0x24]
mov eax, 1
shl eax, cl
xor ecx, ecx
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x4c]
bts ecx, eax
cmp eax, 0x20
mov dword [esp + 0xb4], esi
cmovae ebp, ecx
xor ecx, ebp
cmp eax, 0x40
mov eax, dword [esp + 0x50]
cmovae ebp, ecx
mov dword [esp + 0x9c], ecx
xor ecx, ecx
mov dword [esp + 0xa0], ebp
xor ebp, ebp
bts ecx, eax
cmp eax, 0x20
cmovae ebp, ecx
xor ecx, ebp
cmp eax, 0x40
mov dword [esp + 0xa4], ecx
cmovae ebp, ecx
mov dword [esp + 0xa8], ebp
mov ecx, dword [esp + 0x2c]
mov eax, edx
xor edx, edx
mov ebp, dword [esp + 0x98]
div dword [ecx + 0x10]
imul edx, esi
imul eax, ebp
add edx, dword [esp + 0x44]
add eax, dword [esp + 0x48]
lea ecx, [edx + esi]
lea esi, [eax + ebp]
mov ebp, dword [edi]
cmp edx, ebp
cmovg ebp, edx
mov dword [ebx], ebp
mov edx, dword [edi + 4]
cmp eax, edx
cmovg edx, eax
mov dword [ebx + 4], edx
mov eax, dword [edi + 8]
cmp ecx, eax
cmovl eax, ecx
mov dword [ebx + 8], eax
mov edi, dword [edi + 0xc]
cmp esi, edi
cmovl edi, esi
mov esi, dword [esp + 0x4c]
mov ecx, esi
mov dword [ebx + 0xc], edi
sar ebp, cl
shl ebp, cl
mov ecx, dword [esp + 0x50]
sar edx, cl
shl edx, cl
mov ecx, esi
mov dword [esp + 0x40], edx
cdq
add eax, dword [esp + 0x9c]
mov dword [esp + 0xac], ebp
adc edx, dword [esp + 0xa0]
sub eax, 1
sbb edx, 0
call fcn.005738d0
mov ecx, dword [esp + 0x4c]
mov esi, eax
shl esi, cl
mov eax, edi
mov edi, dword [esp + 0x50]
sub esi, ebp
sar esi, cl
mov ecx, edi
cdq
add eax, dword [esp + 0xa4]
mov dword [ebx + 0x10], esi
adc edx, dword [esp + 0xa8]
sub eax, 1
sbb edx, 0
call fcn.005738d0
mov ecx, edi
mov ebp, eax
shl ebp, cl
sub ebp, dword [esp + 0x40]
sar ebp, cl
mov dword [ebx + 0x14], ebp
imul ebp, esi
mov dword [esp + 0xb0], ebp
cmp ebp, 0x4444444
ja 0x51da4a
mov eax, dword [ebx + 0x18]
mov esi, ebp
shl esi, 4
sub esi, ebp
shl esi, 2
test eax, eax
jne 0x51d762
test ebp, ebp
je 0x51d762
push esi
call fcn.005071f0
add esp, 4
mov dword [ebx + 0x18], eax
test eax, eax
je 0x51da78
push esi
jmp 0x51d785
cmp esi, dword [ebx + 0x1c]
jbe 0x51d793
push esi
push eax
call fcn.00507210
add esp, 8
test eax, eax
je 0x51da10
mov ecx, esi
mov dword [ebx + 0x18], eax
sub ecx, dword [ebx + 0x1c]
add eax, dword [ebx + 0x1c]
push ecx
push 0
push eax
call fcn.0042d490
mov dword [ebx + 0x1c], esi
add esp, 0xc
mov edi, dword [esp + 0xe0]
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx + 0x10]
push edi
push ecx
push edx
test eax, eax
jne 0x51d7b4
call fcn.0053aea0
add esp, 0xc
jmp 0x51d7bd
push eax
call fcn.0053b1e0
add esp, 0x10
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x10]
push edi
push eax
push ecx
test edx, edx
jne 0x51d7da
call fcn.0053aea0
add esp, 0xc
jmp 0x51d7e3
push edx
call fcn.0053b1e0
add esp, 0x10
mov dword [ebx + 0x24], eax
xor eax, eax
mov dword [esp + 0x78], eax
test ebp, ebp
je 0x51d8a6
mov ecx, dword [esp + 0x4c]
mov ebp, 1
shl ebp, cl
mov edx, 1
mov ecx, dword [esp + 0x50]
shl edx, cl
xor ecx, ecx
mov dword [esp + 0x68], ebp
mov dword [esp + 0x74], edx
mov dword [esp + 0x7c], ecx
xor edx, edx
div dword [ebx + 0x10]
mov esi, edx
mov edi, eax
imul edi, dword [esp + 0x74]
imul esi, ebp
mov ebp, dword [ebx + 0x18]
add ebp, ecx
push ebp
add edi, dword [esp + 0x44]
add esi, dword [esp + 0xb0]
call fcn.0051b1c0
add esp, 4
test eax, eax
je 0x51da78
mov eax, dword [ebx]
cmp esi, eax
mov ecx, dword [esp + 0x68]
cmovg eax, esi
mov dword [ebp + 8], eax
mov eax, dword [ebx + 4]
cmp edi, eax
cmovg eax, edi
add ecx, esi
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 8]
cmp ecx, eax
cmovl eax, ecx
mov ecx, dword [esp + 0x74]
mov dword [ebp + 0x10], eax
add ecx, edi
mov eax, dword [ebx + 0xc]
cmp ecx, eax
cmovl eax, ecx
mov ecx, dword [esp + 0x7c]
mov dword [ebp + 0x14], eax
add ecx, 0x3c
mov eax, dword [esp + 0x78]
mov ebp, dword [esp + 0x68]
inc eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
cmp eax, dword [esp + 0xb0]
jb 0x51d818
mov edx, dword [esp + 0x34]
add ebx, 0x28
mov ebp, dword [esp + 0x54]
inc edx
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0xb4]
mov dword [esp + 0x34], edx
cmp edx, ebp
jb 0x51d657
mov esi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x84]
add edi, 0x24
mov edx, dword [esp + 0x2c]
inc ecx
mov eax, dword [esp + 0x58]
add esi, 8
mov ebx, dword [esp + 0x64]
inc eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x5c], esi
cmp ecx, dword [edx + 0x18]
jb 0x51d360
mov eax, dword [esp + 0x3c]
add edx, 0x98
mov ebp, dword [esp + 0x14]
inc eax
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x5c], esi
mov esi, edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x3c], eax
cmp eax, dword [ebp + 0x14]
jb 0x51d110
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x70]
add edi, 0x438
mov eax, dword [esp + 0x18]
inc ecx
mov ebx, dword [esp + 0x60]
add ebp, 0x4c
add ebx, 0x34
mov dword [esp + 0x30], edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x60], ebx
mov dword [esp + 0x70], ecx
cmp ecx, dword [eax + 0x10]
jb 0x51cf83
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc4
ret
mov eax, dword [esp + 0xe0]
push str.Not_enough_memory_for_tile_resolutions_n
push 1
push eax
call fcn.00517de0
push dword [ebp + 0x1c]
call fcn.005071e0
add esp, 0x10
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc4
ret
mov eax, dword [esp + 0xe0]
push str.Size_of_tile_data_exceeds_system_limits_n
push 1
push eax
jmp 0x51da70
mov eax, dword [esp + 0xe0]
push str.Not_enough_memory_to_handle_band_precints_n
push 1
push eax
jmp 0x51da70
mov eax, dword [esp + 0xe0]
push str.Not_enough_memory_to_handle_band_precints_n
push 1
push eax
call fcn.00517de0
push dword [edi + 0x14]
call fcn.005071e0
add esp, 0x10
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc4
ret
push dword [ebx + 0x18]
call fcn.005071e0
mov eax, dword [esp + 0xe4]
push str.Not_enough_memory_for_current_precinct_codeblock_element_n
push 1
push eax
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
call fcn.00517de0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc4
ret
mov eax, dword [esp + 0xe0]
push str.Size_of_code_block_data_exceeds_system_limits_n
push 1
push eax
jmp 0x51da70
push str.Tile_Y_coordinates_are_not_supported_n
jmp 0x51da67
push str.Tile_X_coordinates_are_not_supported_n
push 1
push dword [esp + 0xe8]
call fcn.00517de0
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc4
ret