Function at 0x4b6850
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 + 0x5c], ecx
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x4c]
imul edx, eax, 0x160c
mov dword [esp + 0x1c], ebx
mov ecx, dword [edx + ecx + 0x15d0]
xor edx, edx
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x10], ecx
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x5c]
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 0x4b68b8
mov edx, esi
mov ecx, dword [esp + 0x1c]
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 0x4b68d4
mov ecx, esi
mov eax, dword [esp + 0x1c]
mov dword [eax + 8], ecx
test edx, edx
js 0x4b74cf
cmp ecx, edx
jle 0x4b74cf
mov eax, dword [esp + 0x5c]
mov esi, dword [edi + 4]
mov edx, dword [eax + 0x10]
imul edx, ebx
add edx, dword [eax + 8]
cmp edx, esi
jbe 0x4b6901
mov esi, edx
mov ebx, dword [esp + 0x1c]
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 0x4b691e
mov ecx, edx
mov dword [ebx + 0xc], ecx
test esi, esi
js 0x4b74c8
cmp ecx, esi
jle 0x4b74c8
mov edi, dword [esp + 0x3c]
cmp dword [edi + 4], 0
jne 0x4b6945
push str.tiles_require_at_least_one_resolution_n
jmp 0x4b74d4
cmp dword [ebx + 0x10], 0
mov dword [esp + 0x6c], 0
jbe 0x4b73d2
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
nop
mov dword [eax + 0x24], 0
mov eax, dword [eax]
cdq
mov esi, eax
mov ecx, edx
mov eax, dword [esp + 0x1c]
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 + 0x38]
mov eax, dword [eax + 4]
cdq
mov esi, eax
mov ecx, edx
mov eax, dword [esp + 0x1c]
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 + 0x38]
mov eax, dword [eax]
cdq
mov esi, eax
mov ecx, edx
mov eax, dword [esp + 0x1c]
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 + 0x38]
mov eax, dword [eax + 4]
cdq
mov esi, eax
mov ecx, edx
mov eax, dword [esp + 0x1c]
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 + 0x5c]
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 0x4b6a2b
mov dword [ebx + 0x18], 1
jmp 0x4b6a30
sub eax, ecx
mov dword [ebx + 0x18], eax
mov esi, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
sub esi, dword [ebx]
sub ecx, dword [ebx + 4]
je 0x4b6a4c
or eax, 0xffffffff
xor edx, edx
div ecx
cmp esi, eax
ja 0x4b73de
imul ecx, esi
cmp ecx, 0x3fffffff
ja 0x4b73de
push dword [ebx + 0x34]
imul esi, dword [ebx + 0x14], 0x98
lea eax, [ecx*4]
mov dword [ebx + 0x2c], eax
call fcn.004a1080
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 0x4b6ac3
push esi
call fcn.004a2190
add esp, 4
mov dword [ebx + 0x1c], eax
test eax, eax
je 0x4b74e1
push esi
push 0
push eax
mov dword [ebx + 0x20], esi
call sub.MSVCRT.dll_memset
jmp 0x4b6af1
cmp esi, dword [ebx + 0x20]
jbe 0x4b6af4
push esi
push eax
call fcn.004a21b0
add esp, 8
test eax, eax
je 0x4b73fa
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 + 0x3c]
mov esi, dword [ebx + 0x1c]
mov edi, dword [ebx + 0x14]
mov dword [esp + 0x24], esi
cmp dword [ecx + 0x14], 0
lea eax, [ecx + 0x1c]
mov dword [esp + 0x64], eax
mov dword [esp + 0x8c], 0x4bde50
je 0x4b6b25
mov dword [esp + 0x8c], 0x4bde30
mov dword [esp + 0x54], 0
test edi, edi
je 0x4b739c
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 + 0x20], edx
mov eax, dword [ebx]
cdq
add eax, ecx
mov dword [esp + 0x34], ecx
mov ecx, edi
adc edx, dword [esp + 0x20]
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 + 0x34]
adc edx, dword [esp + 0x20]
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 + 0x34]
adc edx, dword [esp + 0x20]
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 + 0x34]
adc edx, dword [esp + 0x20]
sub eax, 1
sbb edx, 0
call fcn.004173e0
mov edx, dword [esp + 0x3c]
mov edi, eax
mov eax, dword [esp + 0x54]
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 + 0x58], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x50], ecx
mov ecx, edx
sar eax, cl
shl eax, cl
mov dword [esp + 0x30], edx
xor edx, edx
mov dword [esp + 0x60], eax
mov eax, 1
call fcn.00417410
mov ecx, eax
mov esi, edx
mov eax, edi
cdq
add eax, ecx
mov ecx, dword [esp + 0x30]
adc edx, esi
sub eax, 1
sbb edx, 0
call fcn.004173e0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
shl eax, cl
mov dword [esp + 0x48], eax
mov edi, dword [edx + 8]
cmp ebx, edi
jne 0x4b6c36
xor esi, esi
jmp 0x4b6c74
mov ebx, dword [esp + 0x50]
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 + 0x24]
mov ecx, ebx
mov esi, eax
shl esi, cl
sub esi, dword [esp + 0x58]
sar esi, cl
mov ecx, dword [esp + 0x30]
mov eax, dword [edx + 4]
mov ebx, dword [esp + 0x60]
mov dword [edx + 0x10], esi
cmp eax, dword [edx + 0xc]
jne 0x4b6c87
xor edi, edi
jmp 0x4b6c8f
mov edi, dword [esp + 0x48]
sub edi, ebx
sar edi, cl
mov dword [edx + 0x14], edi
test esi, esi
je 0x4b6ca9
or eax, 0xffffffff
xor edx, edx
div esi
cmp eax, edi
jb 0x4b73de
mov edx, dword [esp + 0x24]
imul edi, esi
mov dword [esp + 0x48], edi
cmp edi, 0x6666666
ja 0x4b73de
lea esi, [edi + edi*4]
shl esi, 3
cmp dword [esp + 0x54], 0
mov dword [esp + 0x88], esi
jne 0x4b6cdd
mov eax, dword [esp + 0x50]
mov dword [edx + 0x18], 1
jmp 0x4b6d20
mov eax, dword [esp + 0x58]
cdq
add eax, 1
adc edx, 0
shrd eax, edx, 1
sar edx, 1
mov dword [esp + 0x58], eax
mov eax, ebx
cdq
mov ebx, eax
mov eax, dword [esp + 0x50]
add ebx, 1
adc edx, 0
dec eax
shrd ebx, edx, 1
mov dword [esp + 0x50], eax
sar edx, 1
dec ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x30], ecx
mov dword [edx + 0x18], 3
mov ebx, dword [esp + 0x3c]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x44], ecx
cmp ecx, eax
jb 0x4b6d33
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x40], eax
cmp eax, ecx
jb 0x4b6d46
mov dword [esp + 0x40], ecx
cmp dword [edx + 0x18], 0
lea ebx, [edx + 0x1c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x74], 0
jbe 0x4b7376
mov ecx, 1
mov dword [esp + 0x7c], ecx
jmp 0x4b6d70
cmp dword [esp + 0x54], 0
jne 0x4b6e0a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0x10], 0
mov eax, dword [eax]
cdq
add eax, dword [esp + 0x34]
adc edx, dword [esp + 0x20]
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 + 0x34]
adc edx, dword [esp + 0x20]
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 + 0x34]
adc edx, dword [esp + 0x20]
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 + 0x34]
adc edx, dword [esp + 0x20]
sub eax, 1
sbb edx, 0
call fcn.004173e0
jmp 0x4b6f0d
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 + 0x28], edx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x4c], ecx
mov eax, dword [eax]
cdq
sub eax, ebx
sbb edx, edi
mov edi, dword [esp + 0x18]
add eax, ecx
adc edx, dword [esp + 0x28]
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 + 0x4c]
adc edx, dword [esp + 0x28]
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 + 0x4c]
adc edx, dword [esp + 0x28]
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 + 0x4c]
adc edx, dword [esp + 0x28]
sub eax, 1
sbb edx, 0
call fcn.004173e0
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x88]
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
je 0x4b7340
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
je 0x4b7340
push dword [ebx + 0x10]
call dword [esp + 0x90]
mov ecx, dword [esp + 0x3c]
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 + 0x3c]
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]
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 0x4b6fc4
test edi, edi
je 0x4b6fc4
push esi
call fcn.004a2190
add esp, 4
mov dword [ebx + 0x14], eax
test eax, eax
je 0x4b742c
push esi
jmp 0x4b6fe7
cmp dword [ebx + 0x18], esi
jae 0x4b6ff5
push esi
push eax
call fcn.004a21b0
add esp, 8
test eax, eax
je 0x4b7448
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 + 0x48], esi
jbe 0x4b7340
mov ecx, dword [esp + 0x50]
mov ebx, 1
shl ebx, cl
mov eax, 1
mov ecx, dword [esp + 0x30]
xor edx, edx
shl eax, cl
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xb4], eax
lea eax, [esi + 1]
mov dword [esp + 0x80], ebx
call fcn.00417410
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x94], eax
lea eax, [esi + 1]
mov dword [esp + 0xa8], edx
xor edx, edx
call fcn.00417410
mov dword [esp + 0xa0], eax
mov dword [esp + 0xb0], edx
mov ecx, dword [esp + 0x24]
xor edx, edx
mov eax, esi
div dword [ecx + 0x10]
mov ecx, dword [esp + 0xb4]
mov esi, edx
mov edx, eax
imul esi, ebx
imul edx, ecx
add esi, dword [esp + 0x58]
add edx, dword [esp + 0x60]
lea eax, [ebx + esi]
lea ebx, [ecx + edx]
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx]
cmp esi, ecx
jg 0x4b709a
mov esi, ecx
mov ecx, dword [esp + 0x14]
mov dword [edi], esi
mov ecx, dword [ecx + 4]
cmp edx, ecx
jg 0x4b70a9
mov edx, ecx
mov ecx, dword [esp + 0x14]
mov dword [edi + 4], edx
mov ecx, dword [ecx + 8]
cmp eax, ecx
jl 0x4b70b9
mov eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [edi + 8], eax
mov ecx, dword [ecx + 0xc]
cmp ebx, ecx
jl 0x4b70c9
mov ebx, ecx
mov ecx, dword [esp + 0x44]
sar esi, cl
shl esi, cl
mov ecx, dword [esp + 0x40]
sar edx, cl
shl edx, cl
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x70], edx
cdq
add eax, dword [esp + 0x94]
mov dword [edi + 0xc], ebx
adc edx, dword [esp + 0xa8]
sub eax, 1
mov dword [esp + 0x4c], esi
sbb edx, 0
call fcn.004173e0
mov ecx, dword [esp + 0x44]
mov esi, eax
shl esi, cl
mov eax, ebx
sub esi, dword [esp + 0x4c]
sar esi, cl
mov ecx, dword [esp + 0x40]
cdq
add eax, dword [esp + 0xa0]
mov dword [edi + 0x10], esi
adc edx, dword [esp + 0xb0]
sub eax, 1
sbb edx, 0
call fcn.004173e0
mov ecx, dword [esp + 0x40]
mov ebx, eax
shl ebx, cl
sub ebx, dword [esp + 0x70]
sar ebx, cl
mov dword [edi + 0x14], ebx
imul ebx, esi
mov dword [esp + 0xa4], ebx
cmp ebx, 0x4ec4ec4
ja 0x4b74ac
mov eax, dword [edi + 0x18]
imul esi, ebx, 0x34
test eax, eax
jne 0x4b717f
test ebx, ebx
je 0x4b717f
push esi
call fcn.004a2190
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
je 0x4b74e1
push esi
jmp 0x4b71a2
cmp esi, dword [edi + 0x1c]
jbe 0x4b71b0
push esi
push eax
call fcn.004a21b0
add esp, 8
test eax, eax
je 0x4b747a
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 esi, dword [ebp + 0x10]
mov eax, dword [edi + 0x20]
push esi
push dword [edi + 0x14]
push dword [edi + 0x10]
test eax, eax
jne 0x4b71cb
call fcn.004c0a50
add esp, 0xc
jmp 0x4b71d4
push eax
call fcn.004c0d90
add esp, 0x10
push esi
push dword [edi + 0x14]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x24]
push dword [edi + 0x10]
test eax, eax
jne 0x4b71ef
call fcn.004c0a50
add esp, 0xc
jmp 0x4b71f8
push eax
call fcn.004c0d90
add esp, 0x10
mov dword [edi + 0x24], eax
xor eax, eax
mov dword [esp + 0x68], eax
test ebx, ebx
je 0x4b731f
mov ecx, dword [esp + 0x44]
mov esi, 1
shl esi, cl
mov edx, 1
mov ecx, dword [esp + 0x40]
shl edx, cl
mov dword [esp + 0xac], esi
mov dword [esp + 0x98], edx
mov dword [esp + 0x28], eax
xor edx, edx
mov ebx, esi
div dword [edi + 0x10]
imul ebx, edx
mov edx, dword [esp + 0x98]
mov ecx, edx
imul ecx, eax
add ebx, dword [esp + 0x4c]
add ecx, dword [esp + 0x70]
mov dword [esp + 0x9c], ecx
lea eax, [esi + ebx]
mov esi, dword [edi + 0x18]
add esi, dword [esp + 0x28]
mov dword [esp + 0x90], eax
lea eax, [edx + ecx]
mov dword [esp + 0x78], eax
cmp dword [esi + 4], 0
jne 0x4b728b
push 0x18
push 0x64
call fcn.004a2160
add esp, 8
mov dword [esi + 4], eax
test eax, eax
je 0x4b74e1
cmp dword [esi + 8], 0
jne 0x4b72a8
push 0x18
push 0x64
call fcn.004a2160
add esp, 8
mov dword [esi + 8], eax
test eax, eax
je 0x4b74e1
mov eax, dword [edi]
cmp ebx, eax
jg 0x4b72b0
mov ebx, eax
mov eax, dword [esp + 0x9c]
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 4]
cmp eax, ecx
jg 0x4b72c3
mov eax, ecx
mov dword [esi + 0x10], eax
mov eax, dword [edi + 8]
cmp dword [esp + 0x90], eax
jge 0x4b72d9
mov eax, dword [esp + 0x90]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0xc]
cmp dword [esp + 0x78], eax
jge 0x4b72e9
mov eax, dword [esp + 0x78]
push esi
mov dword [esi + 0x18], eax
call fcn.004b4a60
add esp, 4
test eax, eax
je 0x4b74e1
mov eax, dword [esp + 0x68]
add dword [esp + 0x28], 0x34
inc eax
mov esi, dword [esp + 0xac]
mov dword [esp + 0x68], eax
cmp eax, dword [esp + 0xa4]
jb 0x4b7231
mov esi, dword [esp + 0x2c]
add edi, 0x28
mov ebx, dword [esp + 0x80]
inc esi
mov dword [esp + 0x2c], esi
cmp esi, dword [esp + 0x48]
jb 0x4b7064
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x74]
add ebx, 0x24
mov edx, dword [esp + 0x24]
inc eax
mov ecx, dword [esp + 0x7c]
add dword [esp + 0x64], 8
inc ecx
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x88]
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x14], ebx
cmp eax, dword [edx + 0x18]
jb 0x4b6d70
mov eax, dword [esp + 0x54]
add edx, 0x98
mov ebx, dword [esp + 0x10]
inc eax
mov edi, dword [esp + 0x18]
mov esi, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x54], eax
cmp eax, dword [ebx + 0x14]
jb 0x4b6b35
mov edx, dword [esp + 0x6c]
add ebx, 0x4c
mov ecx, dword [esp + 0x1c]
inc edx
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
add edi, 0x438
add eax, 0x34
mov dword [esp + 0x3c], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x6c], edx
cmp edx, dword [ecx + 0x10]
jb 0x4b6960
mov eax, 1
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.004b1600
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_for_tile_resolutions_n
push 1
push eax
call fcn.004b1600
push dword [ebx + 0x1c]
call fcn.004a2180
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.Not_enough_memory_to_handle_band_precints_n
push 1
push eax
call fcn.004b1600
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.004b1600
push dword [ebx + 0x14]
call fcn.004a2180
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.004a2180
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.004b1600
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.004b1600
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 0x4b74d4
push str.Tile_X_coordinates_are_not_supported_n
push 1
push dword [ebp + 0x10]
call fcn.004b1600
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret