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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
mov edi, dword [esi + 0x18]
mov dword [esp + 0x60], ecx
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x4c]
imul edx, eax, 0x160c
mov dword [esp + 0x20], ebx
mov ecx, dword [edx + ecx + 0x15d0]
xor edx, edx
mov dword [esp + 0x40], ecx
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x10], ecx
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x60]
div dword [ecx + 0x18]
mov ebx, eax
mov eax, ecx
mov esi, dword [eax + 0xc]
imul esi, edx
mov edx, dword [edi]
add esi, dword [eax + 4]
cmp esi, edx
jbe 0x4b59e8
mov edx, esi
mov ecx, dword [esp + 0x20]
mov dword [ecx], edx
xor ecx, ecx
mov eax, dword [eax + 0xc]
add eax, esi
mov esi, dword [edi + 8]
adc ecx, ecx
neg ecx
or ecx, eax
cmp ecx, esi
jb 0x4b5a04
mov ecx, esi
mov eax, dword [esp + 0x20]
mov dword [eax + 8], ecx
test edx, edx
js 0x4b6581
cmp ecx, edx
jle 0x4b6581
mov eax, dword [esp + 0x60]
mov esi, dword [edi + 4]
mov edx, dword [eax + 0x10]
imul edx, ebx
add edx, dword [eax + 8]
cmp edx, esi
jbe 0x4b5a31
mov esi, edx
mov ebx, dword [esp + 0x20]
xor ecx, ecx
mov dword [ebx + 4], esi
mov eax, dword [eax + 0x10]
add eax, edx
mov edx, dword [edi + 0xc]
adc ecx, ecx
neg ecx
or ecx, eax
cmp ecx, edx
jb 0x4b5a4e
mov ecx, edx
mov dword [ebx + 0xc], ecx
test esi, esi
js 0x4b657a
cmp ecx, esi
jle 0x4b657a
mov edi, dword [esp + 0x40]
cmp dword [edi + 4], 0
jne 0x4b5a75
push str.tiles_require_at_least_one_resolution_n
jmp 0x4b6586
cmp dword [ebx + 0x10], 0
mov dword [esp + 0x6c], 0
jbe 0x4b6484
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
nop
mov dword [eax + 0x24], 0
mov eax, dword [eax]
cdq
mov esi, eax
mov ecx, edx
mov eax, dword [esp + 0x20]
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.00417300
mov dword [ebx], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 4]
cdq
mov esi, eax
mov ecx, edx
mov eax, dword [esp + 0x20]
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.00417300
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
cdq
mov esi, eax
mov ecx, edx
mov eax, dword [esp + 0x20]
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.00417300
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 4]
cdq
mov esi, eax
mov ecx, edx
mov eax, dword [esp + 0x20]
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.00417300
mov ecx, dword [esp + 0x60]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x6c]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 4]
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 4]
mov ecx, dword [ecx + 0x50]
cmp eax, ecx
jae 0x4b5b5b
mov dword [ebx + 0x18], 1
jmp 0x4b5b60
sub eax, ecx
mov dword [ebx + 0x18], eax
push dword [ebx + 0x34]
imul esi, dword [ebx + 0x14], 0x98
call fcn.004a0dd0
mov eax, dword [ebx + 0x1c]
add esp, 4
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
test eax, eax
jne 0x4b5bbe
push esi
call fcn.004a1ee0
add esp, 4
mov dword [ebx + 0x1c], eax
test eax, eax
je 0x4b6593
push esi
push 0
push eax
mov dword [ebx + 0x20], esi
call sub.MSVCRT.dll_memset
jmp 0x4b5bec
cmp esi, dword [ebx + 0x20]
jbe 0x4b5bef
push esi
push eax
call fcn.004a1f00
add esp, 8
test eax, eax
je 0x4b6490
mov ecx, esi
mov dword [ebx + 0x1c], eax
sub ecx, dword [ebx + 0x20]
add eax, dword [ebx + 0x20]
push ecx
push 0
push eax
call sub.MSVCRT.dll_memset
mov dword [ebx + 0x20], esi
add esp, 0xc
mov ecx, dword [esp + 0x40]
mov esi, dword [ebx + 0x1c]
mov edi, dword [ebx + 0x14]
mov dword [esp + 0x28], esi
cmp dword [ecx + 0x14], 0
lea eax, [ecx + 0x1c]
mov dword [esp + 0x64], eax
mov dword [esp + 0x88], 0x4bdba0
je 0x4b5c20
mov dword [esp + 0x88], 0x4bdb80
mov dword [esp + 0x4c], 0
test edi, edi
je 0x4b644e
dec edi
mov eax, 1
xor edx, edx
mov dword [esp + 0x18], edi
mov ecx, edi
call fcn.00417410
mov ecx, eax
mov dword [esp + 0x1c], edx
mov eax, dword [ebx]
cdq
add eax, ecx
mov dword [esp + 0x30], ecx
mov ecx, edi
adc edx, dword [esp + 0x1c]
sub eax, 1
sbb edx, 0
call fcn.004173e0
mov dword [esi], eax
mov ecx, edi
mov eax, dword [ebx + 4]
cdq
add eax, dword [esp + 0x30]
adc edx, dword [esp + 0x1c]
sub eax, 1
sbb edx, 0
call fcn.004173e0
mov dword [esi + 4], eax
mov ecx, edi
mov eax, dword [ebx + 8]
cdq
add eax, dword [esp + 0x30]
adc edx, dword [esp + 0x1c]
sub eax, 1
sbb edx, 0
call fcn.004173e0
mov dword [esi + 8], eax
mov ecx, edi
mov eax, dword [ebx + 0xc]
cdq
add eax, dword [esp + 0x30]
adc edx, dword [esp + 0x1c]
sub eax, 1
sbb edx, 0
call fcn.004173e0
mov edx, dword [esp + 0x40]
mov edi, eax
mov eax, dword [esp + 0x4c]
mov ebx, dword [esi]
mov dword [esi + 0xc], edi
mov ecx, dword [edx + eax*4 + 0x32c]
mov edx, dword [edx + eax*4 + 0x3b0]
mov eax, ebx
sar eax, cl
shl eax, cl
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x54], ecx
mov ecx, edx
sar eax, cl
shl eax, cl
mov dword [esp + 0x34], edx
xor edx, edx
mov dword [esp + 0x58], eax
mov eax, 1
call fcn.00417410
mov ecx, eax
mov esi, edx
mov eax, edi
cdq
add eax, ecx
mov ecx, dword [esp + 0x34]
adc edx, esi
sub eax, 1
sbb edx, 0
call fcn.004173e0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
shl eax, cl
mov dword [esp + 0x44], eax
mov edi, dword [edx + 8]
cmp ebx, edi
jne 0x4b5d31
xor esi, esi
jmp 0x4b5d6f
mov ebx, dword [esp + 0x54]
mov eax, 1
xor edx, edx
mov ecx, ebx
call fcn.00417410
mov ecx, eax
mov esi, edx
mov eax, edi
cdq
add eax, ecx
mov ecx, ebx
adc edx, esi
sub eax, 1
sbb edx, 0
call fcn.004173e0
mov edx, dword [esp + 0x28]
mov ecx, ebx
mov esi, eax
shl esi, cl
sub esi, dword [esp + 0x5c]
sar esi, cl
mov ecx, dword [esp + 0x34]
mov eax, dword [edx + 4]
mov ebx, dword [esp + 0x58]
mov dword [edx + 0x10], esi
cmp eax, dword [edx + 0xc]
jne 0x4b5d82
xor edi, edi
jmp 0x4b5d8a
mov edi, dword [esp + 0x44]
sub edi, ebx
sar edi, cl
mov dword [edx + 0x14], edi
test esi, esi
je 0x4b5da4
or eax, 0xffffffff
xor edx, edx
div esi
cmp eax, edi
jb 0x4b64c2
mov edx, dword [esp + 0x28]
imul edi, esi
mov dword [esp + 0x44], edi
cmp edi, 0x6666666
ja 0x4b64c2
lea esi, [edi + edi*4]
shl esi, 3
cmp dword [esp + 0x4c], 0
mov dword [esp + 0x7c], esi
jne 0x4b5dd5
mov eax, dword [esp + 0x54]
mov dword [edx + 0x18], 1
jmp 0x4b5e18
mov eax, dword [esp + 0x5c]
cdq
add eax, 1
adc edx, 0
shrd eax, edx, 1
sar edx, 1
mov dword [esp + 0x5c], eax
mov eax, ebx
cdq
mov ebx, eax
mov eax, dword [esp + 0x54]
add ebx, 1
adc edx, 0
dec eax
shrd ebx, edx, 1
mov dword [esp + 0x54], eax
sar edx, 1
dec ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x34], ecx
mov dword [edx + 0x18], 3
mov ebx, dword [esp + 0x40]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x50], ecx
cmp ecx, eax
jb 0x4b5e2b
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x48], eax
cmp eax, ecx
jb 0x4b5e3e
mov dword [esp + 0x48], ecx
cmp dword [edx + 0x18], 0
lea ebx, [edx + 0x1c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x70], 0
jbe 0x4b6428
mov ecx, 1
mov dword [esp + 0x74], ecx
cmp dword [esp + 0x4c], 0
jne 0x4b5efa
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0x10], 0
mov eax, dword [eax]
cdq
add eax, dword [esp + 0x30]
adc edx, dword [esp + 0x1c]
sub eax, 1
sbb edx, 0
call fcn.004173e0
mov ecx, dword [esp + 0x18]
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
cdq
add eax, dword [esp + 0x30]
adc edx, dword [esp + 0x1c]
sub eax, 1
sbb edx, 0
call fcn.004173e0
mov ecx, dword [esp + 0x18]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
cdq
add eax, dword [esp + 0x30]
adc edx, dword [esp + 0x1c]
sub eax, 1
sbb edx, 0
call fcn.004173e0
mov ecx, dword [esp + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
cdq
add eax, dword [esp + 0x30]
adc edx, dword [esp + 0x1c]
sub eax, 1
sbb edx, 0
call fcn.004173e0
jmp 0x4b5ffa
mov eax, ecx
mov dword [ebx + 0x10], ecx
and eax, 1
mov esi, ecx
mov ecx, dword [esp + 0x18]
cdq
shr esi, 1
call fcn.00417410
mov ecx, dword [esp + 0x18]
mov edi, edx
mov ebx, eax
mov dword [esp + 0x2c], edi
mov eax, 1
xor edx, edx
lea ecx, [ecx + 1]
call fcn.00417410
mov ecx, eax
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], ecx
mov eax, dword [eax]
cdq
sub eax, ebx
sbb edx, edi
mov edi, dword [esp + 0x18]
add eax, ecx
adc edx, dword [esp + 0x38]
sub eax, 1
lea ecx, [edi + 1]
sbb edx, 0
call fcn.004173e0
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, esi
cdq
mov ecx, edi
call fcn.00417410
mov esi, eax
mov edi, edx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x68], esi
mov eax, dword [eax + 4]
cdq
sub eax, esi
mov esi, dword [esp + 0x18]
sbb edx, edi
add eax, dword [esp + 0x24]
adc edx, dword [esp + 0x38]
lea ecx, [esi + 1]
sub eax, 1
sbb edx, 0
call fcn.004173e0
mov ecx, dword [esp + 0x14]
mov dword [ecx + 4], eax
lea ecx, [esi + 1]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
cdq
sub eax, ebx
sbb edx, dword [esp + 0x2c]
add eax, dword [esp + 0x24]
adc edx, dword [esp + 0x38]
sub eax, 1
sbb edx, 0
call fcn.004173e0
mov ecx, dword [esp + 0x14]
mov dword [ecx + 8], eax
mov ecx, esi
mov eax, dword [esp + 0x10]
lea ecx, [ecx + 1]
mov eax, dword [eax + 0xc]
cdq
sub eax, dword [esp + 0x68]
sbb edx, edi
add eax, dword [esp + 0x24]
adc edx, dword [esp + 0x38]
sub eax, 1
sbb edx, 0
call fcn.004173e0
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x7c]
push dword [ebx + 0x10]
mov dword [ebx + 0xc], eax
call dword [esp + 0x8c]
mov ecx, dword [esp + 0x40]
add esp, 4
mov edx, dword [esp + 0x64]
mov ecx, dword [ecx + 0x18]
sub ecx, dword [edx]
add ecx, eax
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x2c]
fstp qword [esp + 0x80]
fld qword [0x50fc88]
fld qword [esp + 0x80]
call sub.MSVCRT.dll__CIpow
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x40]
fild dword [eax + 4]
fstp qword [esp + 0x80]
fld qword [esp + 0x80]
fmul qword [0x54f3a8]
fld1
faddp st(1)
fmulp st(1)
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fmul qword [0x50f140]
fstp dword [ebx + 0x20]
mov eax, dword [eax]
mov ecx, dword [ecx + 0x324]
dec eax
add eax, ecx
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x4b60a0
test edi, edi
je 0x4b60a0
push esi
call fcn.004a1ee0
add esp, 4
mov dword [ebx + 0x14], eax
test eax, eax
je 0x4b64de
push esi
jmp 0x4b60c3
cmp dword [ebx + 0x18], esi
jae 0x4b60d1
push esi
push eax
call fcn.004a1f00
add esp, 8
test eax, eax
je 0x4b64fa
mov ecx, esi
mov dword [ebx + 0x14], eax
sub ecx, dword [ebx + 0x18]
add eax, dword [ebx + 0x18]
push ecx
push 0
push eax
call sub.MSVCRT.dll_memset
mov dword [ebx + 0x18], esi
add esp, 0xc
mov edi, dword [ebx + 0x14]
xor esi, esi
mov dword [esp + 0x2c], esi
cmp dword [esp + 0x44], esi
jbe 0x4b63f5
mov ecx, dword [esp + 0x54]
mov eax, 1
shl eax, cl
xor edx, edx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x98], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xb4], eax
lea eax, [esi + 1]
call fcn.00417410
mov ecx, dword [esp + 0x48]
mov dword [esp + 0xb0], eax
lea eax, [esi + 1]
mov dword [esp + 0x8c], edx
xor edx, edx
call fcn.00417410
mov dword [esp + 0xa8], eax
mov dword [esp + 0xa0], edx
mov ecx, dword [esp + 0x28]
xor edx, edx
mov eax, esi
div dword [ecx + 0x10]
mov ecx, dword [esp + 0xb4]
mov ebx, eax
mov eax, dword [esp + 0x98]
imul ebx, ecx
imul edx, eax
add ebx, dword [esp + 0x58]
add edx, dword [esp + 0x5c]
add eax, edx
lea esi, [ecx + ebx]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], esi
mov ecx, dword [ecx]
cmp edx, ecx
jg 0x4b617e
mov edx, ecx
mov ecx, dword [esp + 0x14]
mov dword [edi], edx
mov ecx, dword [ecx + 4]
cmp ebx, ecx
jg 0x4b618d
mov ebx, ecx
mov ecx, dword [esp + 0x14]
mov dword [edi + 4], ebx
mov ecx, dword [ecx + 8]
cmp eax, ecx
jl 0x4b619d
mov eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [edi + 8], eax
mov ecx, dword [ecx + 0xc]
cmp esi, ecx
jl 0x4b61b1
mov esi, ecx
mov dword [esp + 0x24], ecx
mov dword [edi + 0xc], esi
mov esi, dword [esp + 0x50]
mov ecx, esi
sar edx, cl
shl edx, cl
mov ecx, dword [esp + 0x48]
sar ebx, cl
mov dword [esp + 0x38], edx
shl ebx, cl
mov ecx, esi
cdq
add eax, dword [esp + 0xb0]
mov dword [esp + 0x9c], ebx
adc edx, dword [esp + 0x8c]
sub eax, 1
sbb edx, 0
call fcn.004173e0
mov ecx, dword [esp + 0x50]
mov esi, eax
mov eax, dword [esp + 0x24]
shl esi, cl
sub esi, dword [esp + 0x38]
sar esi, cl
mov ecx, dword [esp + 0x48]
cdq
add eax, dword [esp + 0xa8]
mov dword [edi + 0x10], esi
adc edx, dword [esp + 0xa0]
sub eax, 1
sbb edx, 0
call fcn.004173e0
mov ecx, dword [esp + 0x48]
shl eax, cl
sub eax, ebx
sar eax, cl
mov dword [edi + 0x14], eax
imul eax, esi
mov dword [esp + 0x68], eax
cmp eax, 0x4444444
ja 0x4b655e
mov ecx, dword [edi + 0x18]
mov esi, eax
shl esi, 4
sub esi, eax
shl esi, 2
test ecx, ecx
jne 0x4b626b
test eax, eax
je 0x4b626b
push esi
call fcn.004a1ee0
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
je 0x4b6593
push esi
jmp 0x4b628e
cmp esi, dword [edi + 0x1c]
jbe 0x4b629c
push esi
push ecx
call fcn.004a1f00
add esp, 8
test eax, eax
je 0x4b652c
mov ecx, esi
mov dword [edi + 0x18], eax
sub ecx, dword [edi + 0x1c]
add eax, dword [edi + 0x1c]
push ecx
push 0
push eax
call sub.MSVCRT.dll_memset
mov dword [edi + 0x1c], esi
add esp, 0xc
mov ebx, dword [ebp + 0x10]
mov eax, dword [edi + 0x20]
push ebx
push dword [edi + 0x14]
push dword [edi + 0x10]
test eax, eax
jne 0x4b62b7
call fcn.004c07a0
add esp, 0xc
jmp 0x4b62c0
push eax
call fcn.004c0ae0
add esp, 0x10
push ebx
push dword [edi + 0x14]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x24]
push dword [edi + 0x10]
test eax, eax
jne 0x4b62db
call fcn.004c07a0
add esp, 0xc
jmp 0x4b62e4
push eax
call fcn.004c0ae0
add esp, 0x10
mov dword [edi + 0x24], eax
xor eax, eax
mov dword [esp + 0x24], eax
cmp dword [esp + 0x68], eax
jbe 0x4b63db
mov ecx, dword [esp + 0x50]
mov edx, 1
shl edx, cl
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x90], edx
mov edx, 1
shl edx, cl
xor ecx, ecx
mov dword [esp + 0x94], edx
mov dword [esp + 0x78], ecx
xor edx, edx
div dword [edi + 0x10]
mov ebx, eax
mov esi, edx
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x90]
imul esi, eax
imul ebx, edx
add esi, dword [esp + 0x38]
add ebx, dword [esp + 0x9c]
add eax, esi
mov dword [esp + 0xac], eax
lea eax, [edx + ebx]
mov dword [esp + 0x80], eax
mov eax, dword [edi + 0x18]
add eax, ecx
push eax
mov dword [esp + 0xa8], eax
call fcn.004b4650
add esp, 4
test eax, eax
je 0x4b6593
mov eax, dword [edi]
cmp esi, eax
jg 0x4b6381
mov esi, eax
mov eax, dword [esp + 0xa4]
mov dword [eax + 8], esi
mov ecx, dword [edi + 4]
cmp ebx, ecx
jg 0x4b6394
mov ebx, ecx
mov edx, dword [esp + 0xac]
mov dword [eax + 0xc], ebx
mov ecx, dword [edi + 8]
cmp edx, ecx
jl 0x4b63a7
mov edx, ecx
mov dword [eax + 0x10], edx
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x80]
cmp edx, ecx
jl 0x4b63ba
mov edx, ecx
mov ecx, dword [esp + 0x78]
mov dword [eax + 0x14], edx
add ecx, 0x3c
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x68]
jb 0x4b6321
mov esi, dword [esp + 0x2c]
add edi, 0x28
inc esi
mov dword [esp + 0x2c], esi
cmp esi, dword [esp + 0x44]
jb 0x4b6140
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x70]
add ebx, 0x24
mov edx, dword [esp + 0x28]
inc eax
mov ecx, dword [esp + 0x74]
add dword [esp + 0x64], 8
inc ecx
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x14], ebx
cmp eax, dword [edx + 0x18]
jb 0x4b5e60
mov eax, dword [esp + 0x4c]
add edx, 0x98
mov ebx, dword [esp + 0x10]
inc eax
mov edi, dword [esp + 0x18]
mov esi, edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x4c], eax
cmp eax, dword [ebx + 0x14]
jb 0x4b5c30
mov edx, dword [esp + 0x6c]
add ebx, 0x4c
mov ecx, dword [esp + 0x20]
inc edx
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
add edi, 0x438
add eax, 0x34
mov dword [esp + 0x40], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x6c], edx
cmp edx, dword [ecx + 0x10]
jb 0x4b5a90
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
push str.Not_enough_memory_for_tile_resolutions_n
push 1
push eax
call fcn.004b1350
push dword [ebx + 0x1c]
call fcn.004a1ed0
add esp, 0x10
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
push str.Size_of_tile_data_exceeds_system_limits_n
push 1
push eax
call fcn.004b1350
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
push str.Not_enough_memory_to_handle_band_precints_n
push 1
push eax
call fcn.004b1350
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
push str.Not_enough_memory_to_handle_band_precints_n
push 1
push eax
call fcn.004b1350
push dword [ebx + 0x14]
call fcn.004a1ed0
add esp, 0x10
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edi + 0x18]
call fcn.004a1ed0
mov eax, dword [ebp + 0x10]
push str.Not_enough_memory_for_current_precinct_codeblock_element_n
push 1
push eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
call fcn.004b1350
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
push str.Size_of_code_block_data_exceeds_system_limits_n
push 1
push eax
call fcn.004b1350
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Tile_Y_coordinates_are_not_supported_n
jmp 0x4b6586
push str.Tile_X_coordinates_are_not_supported_n
push 1
push dword [ebp + 0x10]
call fcn.004b1350
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret