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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x74e110
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x78]
push edi
mov edi, dword [esp + 0x74]
cmp edi, eax
jge 0x61480f
mov dword [esp + 0x74], eax
mov edi, eax
mov eax, dword [esi + 0x7c]
cmp dword [esp + 0x78], eax
jge 0x61481c
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x80]
mov ebp, dword [esp + 0x7c]
cmp ebp, eax
jle 0x614830
mov dword [esp + 0x7c], eax
mov ebp, eax
mov eax, dword [esi + 0x84]
mov ecx, dword [esp + 0x80]
cmp ecx, eax
jle 0x61484a
mov dword [esp + 0x80], eax
mov ecx, eax
mov edx, dword [esp + 0x78]
cmp edx, ecx
mov ebx, edx
jg 0x614889
cmp edi, ebp
jg 0x61487e
mov eax, dword [esi]
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebx
call dword [eax + 0x58]
add edi, 1
cmp edi, ebp
jle 0x614858
mov edi, dword [esp + 0x74]
mov ecx, dword [esp + 0x80]
add ebx, 1
cmp ebx, ecx
jle 0x614854
mov edx, dword [esp + 0x78]
test byte [esi + 0x18], 1
jne 0x614b7d
mov ebx, dword [0x912e94]
xor eax, eax
cmp dword [ebx + 0x188], eax
jne 0x614b7d
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], vtable.CBSList_class_CMapObj__.0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], eax
mov ebx, ebp
sub ebx, edi
mov edi, ecx
mov ecx, dword [0x86fb70]
sub edi, edx
mov edx, dword [ecx]
add ebx, 1
add edi, 1
imul edi, ebx
push eax
push eax
push edi
mov dword [esp + 0x78], eax
mov dword [esp + 0x2c], ebx
call dword [edx + 8]
mov edx, eax
mov ecx, edi
xor eax, eax
mov edi, edx
mov dword [esp + 0x14], edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x5c]
mov edx, eax
imul edx, dword [esp + 0x80]
mov edi, eax
mov ecx, eax
imul eax, dword [esp + 0x74]
imul edi, ebp
mov ebp, dword [esi + 0x5c]
imul ecx, dword [esp + 0x78]
mov dword [esp + 0x40], eax
mov eax, ebp
shl eax, 4
sub eax, ebp
mov ebp, dword [esp + 0x40]
add edi, eax
sub ecx, eax
add edx, eax
push 0
push 0
lea eax, [esp + 0x58]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edx
mov dword [esp + 0x54], edi
mov edi, dword [esi]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x38], esp
call fcn.00593640
push eax
mov ecx, esi
call dword [edi + 0x168]
mov eax, dword [esp + 0x58]
test eax, eax
mov ecx, eax
je 0x614a7c
jmp 0x614983
mov ecx, dword [esp + 0x18]
push 0
push 0x85e35c
mov eax, ecx
mov eax, dword [eax]
mov ecx, dword [ecx + 4]
push 0x85da04
push 0
push eax
mov dword [esp + 0x2c], ecx
call fcn.0071f44c
mov edi, eax
add esp, 0x14
test edi, edi
je 0x614a71
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x290]
test ax, ax
je 0x614a71
movsx eax, ax
xor ebp, ebp
test eax, eax
mov dword [esp + 0x1c], eax
jle 0x614a71
lea ecx, [esp + 0x10]
push ecx
xor eax, eax
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [edi]
push ebp
mov ecx, edi
call dword [eax + 0x26c]
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x40]
jl 0x614a64
cmp eax, dword [esp + 0x38]
jg 0x614a64
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x34]
jl 0x614a64
cmp eax, dword [esp + 0x3c]
jg 0x614a64
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x90]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x94]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
movsx eax, word [esp + 0x24]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x38], esp
push eax
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esp + 0x4c]
mov dword [eax + 4], edx
mov eax, dword [esi]
mov ecx, esi
mov dword [esp + 0x44], esp
call dword [eax + 0x50]
add ebp, 1
cmp ebp, dword [esp + 0x1c]
jl 0x6149d3
cmp dword [esp + 0x18], 0
jne 0x61497f
cmp dword [0x91c438], 0
je 0x614b3a
mov ebp, dword [esp + 0x78]
cmp ebp, dword [esp + 0x80]
jg 0x614b30
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x74]
sub eax, edi
mov dword [esp + 0x18], eax
cmp edi, dword [esp + 0x7c]
jg 0x614b1a
mov edi, edi
mov bl, byte [eax + edi]
test bl, bl
je 0x614b09
push 0
sub esp, 8
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebp
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x30], esp
call dword [edx + 0xd8]
movzx ecx, bl
lea eax, [eax + ecx - 0x12]
test eax, eax
jge 0x614ae0
xor eax, eax
jmp 0x614aea
cmp eax, 0x1f
jle 0x614aea
mov eax, 0x1f
push 0
push eax
sub esp, 8
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebp
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x34], esp
call dword [edx + 0xdc]
mov eax, dword [esp + 0x18]
add edi, 1
cmp edi, dword [esp + 0x7c]
jle 0x614ab0
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x74]
add ebp, 1
add eax, ebx
cmp ebp, dword [esp + 0x80]
mov dword [esp + 0x18], eax
jle 0x614aa8
mov dword [0x91c438], 0
mov ecx, dword [0x86fb70]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx]
push edx
call dword [eax + 0xc]
mov dword [esp + 0x50], vtable.CBSList_class_CMapObj__.0
mov eax, dword [esp + 0x58]
test eax, eax
mov dword [esp + 0x6c], 1
je 0x614b7d
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x58], ecx
push eax
lea ecx, [esp + 0x54]
call dword [edx + 0x64]
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x614b62
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret 0x10