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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x9c]
cmp eax, dword [ecx + 8]
jbe 0x4c8ec1
sub esp, 0x11c
lea eax, [0x4fd000]
mov dword [esp], eax
call fcn.0040b480
mov eax, dword [esp + 4]
mov dword [esp + 0x7c], eax
mov dword [eax], 0
mov ecx, dword [0x5df3e8]
mov dword [esp], ecx
mov ecx, dword [esp + 0x120]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x124]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0xffffffff
call fcn.004c67f0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
test eax, eax
je 0x4c8655
test edx, edx
jle 0x4c864e
mov dword [esp + 0x48], edx
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x124]
mov esi, dword [esp + 0x120]
xor eax, eax
xor edi, edi
jmp 0x4c8a1a
xor eax, eax
jmp 0x4c86fe
mov dword [esp], 0
lea eax, [0x516589]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x1c
mov eax, dword [esp + 0x120]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x10], eax
call fcn.0044a020
mov eax, dword [esp + 0x14]
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x3c], ecx
lea edx, [0x4fcf40]
mov dword [esp], edx
call fcn.0040b480
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x3c]
mov dword [edi + 4], eax
mov eax, dword [0x605b20]
test eax, eax
jne 0x4c86c4
mov eax, dword [esp + 0x64]
mov dword [edi], eax
jmp 0x4c86cd
mov eax, dword [esp + 0x64]
call fcn.0045d600
mov dword [esp + 0x128], 0
mov dword [esp + 0x12c], 0
lea eax, [0x53b92c]
mov dword [esp + 0x130], eax
mov dword [esp + 0x134], edi
add esp, 0x11c
ret
mov ecx, dword [esp + 0x124]
cmp ecx, eax
jb 0x4c89f2
sub ecx, eax
mov edx, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
mov ecx, dword [esp + 0x120]
add eax, ecx
test edx, edx
je 0x4c87ce
nop
mov ecx, dword [esp + 0x7c]
mov ebx, dword [ecx + 4]
lea ebp, [ebx + 1]
mov esi, dword [ecx]
mov edi, edx
mov edx, dword [ecx + 8]
cmp edx, ebp
jae 0x4c87a1
mov dword [esp + 0x60], edi
mov dword [esp + 0x80], eax
lea eax, [0x4fea40]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
call fcn.00446d70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x7c]
mov dword [edi + 8], edx
mov edx, dword [0x605b20]
test edx, edx
jne 0x4c8789
mov dword [edi], eax
jmp 0x4c878e
call fcn.0045d600
mov edi, dword [esp + 0x60]
mov esi, eax
mov ebx, ecx
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
lea edx, [ebx + 1]
mov dword [ecx + 4], edx
lea edx, [ebx + ebx*2]
mov dword [esi + edx*4], 0x10
mov dword [esi + edx*4 + 8], edi
mov ebx, dword [0x605b20]
lea edi, [esi + edx*4 + 4]
test ebx, ebx
jne 0x4c87c9
mov dword [esi + edx*4 + 4], eax
jmp 0x4c87ce
call fcn.0045d600
lea edi, [esp + 0xbc]
xor eax, eax
call fcn.0045d7db
lea edi, [esp + 0xa8]
call fcn.0045d7db
mov ecx, dword [0x5db4cc]
mov edx, dword [0x5db4c8]
lea ebx, [0x5155ae]
mov dword [esp], ebx
mov dword [esp + 4], 0x19
lea ebx, [0x5155c7]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0x19
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.00491a90
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
lea edi, [esp + 0xa8]
lea esi, [esp + 0x18]
call fcn.0045dcbe
lea edi, [esp + 0xbc]
lea esi, [esp + 0xa8]
call fcn.0045dcbe
lea edi, [esp + 0x94]
lea esi, [esp + 0xbc]
call fcn.0045dcbe
mov ecx, dword [esp + 0x58]
test ecx, ecx
jne 0x4c89df
lea eax, [0x4f9fa0]
mov dword [esp], eax
call fcn.0040b480
mov eax, dword [esp + 4]
mov dword [esp + 0x90], eax
mov dword [eax + 4], 8
lea ecx, [0x510b6a]
mov dword [eax], ecx
lea edi, [esp + 0xd0]
xor eax, eax
call fcn.0045d7cd
mov dword [esp + 0xd0], 0x3039
lea edi, [esp + 0xd8]
lea esi, [esp + 0x94]
call fcn.0045dcbe
lea eax, [0x5105dd]
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], 6
lea eax, [0x4f7800]
mov dword [esp], eax
call fcn.0040b480
mov eax, dword [esp + 4]
lea ecx, [0x4f9fa0]
mov dword [eax], ecx
lea ecx, [0x53ae38]
mov dword [eax + 4], ecx
mov dword [esp + 0xfc], 1
mov dword [esp + 0x100], 1
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x108], eax
lea eax, [0x501d40]
mov dword [esp], eax
call fcn.0040b480
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x7c]
mov dword [esp], ecx
mov dword [esp + 4], 0
lea edx, [esp + 0xd0]
mov dword [esp + 8], edx
lea edx, [0x53b918]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
call fcn.004c8f90
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
test eax, eax
je 0x4c89aa
mov dword [esp + 0x128], 0
mov dword [esp + 0x12c], 0
mov dword [esp + 0x130], ecx
mov dword [esp + 0x134], edx
add esp, 0x11c
ret
lea eax, [0x53b968]
mov dword [esp + 0x128], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], 0
add esp, 0x11c
ret
test edx, edx
je 0x4c89e6
mov edx, dword [edx + 4]
mov dword [esp], edx
mov dword [esp + 4], ebx
call fcn.00433110
call fcn.0045d6e0
mov ecx, dword [esp + 0x8c]
add ecx, 0xc
mov esi, dword [esp + 0x40]
mov edx, ebp
mov ebp, dword [esp + 0x124]
mov esi, edi
mov eax, ebx
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x7c]
mov ebx, dword [ecx + 4]
mov esi, dword [ecx]
test ebx, ebx
jbe 0x4c8eb7
mov ebp, dword [esi]
cmp ebx, 1
jbe 0x4c8eab
mov dword [esp + 0x60], eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x70], esi
mov esi, dword [esi + 4]
mov dword [esp + 0x40], esi
cmp edi, ebp
jge 0x4c8b70
mov esi, dword [esp + 0x124]
cmp esi, ebp
jb 0x4c8ea2
cmp edi, ebp
ja 0x4c8e99
sub ebp, edi
mov dword [esp + 0x50], ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and edi, ebp
mov ebp, dword [esp + 0x120]
add ebp, edi
mov dword [esp + 0x78], ebp
mov edi, esi
mov esi, dword [esp + 0x7c]
mov ebx, dword [esi + 4]
mov dword [esp + 0x5c], ebx
lea ebp, [ebx + 1]
mov ebx, dword [esi]
mov esi, dword [esi + 8]
cmp esi, ebp
jb 0x4c8aa8
mov ebp, dword [esp + 0x5c]
jmp 0x4c8b0a
lea eax, [0x4fea40]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebp
call fcn.00446d70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x7c]
mov dword [edi + 8], edx
mov edx, dword [0x605b20]
test edx, edx
jne 0x4c8aeb
mov dword [edi], eax
jmp 0x4c8af0
call fcn.0045d600
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x124]
mov ebx, eax
mov ebp, ecx
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x88], ebx
lea esi, [ebp + 1]
mov ebx, dword [esp + 0x7c]
mov dword [ebx + 4], esi
lea ebp, [ebp + ebp*2]
mov dword [esp + 0x5c], ebp
mov esi, dword [esp + 0x88]
mov dword [esi + ebp*4], 0x10
mov ebx, dword [esp + 0x50]
mov dword [esi + ebp*4 + 8], ebx
mov ebx, dword [0x605b20]
lea ebp, [esi + ebp*4 + 4]
test ebx, ebx
jne 0x4c8b55
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x78]
mov dword [esi + ebx*4 + 4], ebp
jmp 0x4c8b68
mov ebx, edi
mov edi, ebp
mov esi, eax
mov eax, dword [esp + 0x78]
call fcn.0045d600
mov eax, esi
mov edi, ebx
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x40]
cmp ebx, 2
jbe 0x4c8e8d
mov ebp, dword [esp + 0x70]
mov edi, dword [ebp + 8]
cmp ebx, 3
jbe 0x4c8e81
mov esi, dword [ebp + 0xc]
mov ebp, dword [esp + 0x124]
cmp ebp, esi
jb 0x4c8e78
cmp esi, edi
jb 0x4c8e6f
sub esi, edi
mov dword [esp + 0x44], esi
mov eax, esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and edi, esi
mov ecx, dword [esp + 0x120]
lea edx, [ecx + edi]
mov dword [esp + 0x6c], edx
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.004c83c0
mov eax, dword [esp + 8]
cmp eax, 0xf
je 0x4c8da7
mov ecx, dword [0x5db9a4]
mov ebx, dword [0x5db9a0]
cmp ecx, eax
jbe 0x4c8e6a
lea ebx, [ebx + eax*8]
mov ebp, dword [ebx]
mov ebx, dword [ebx + 4]
mov ecx, dword [esp + 0x4c]
cmp ecx, 4
jbe 0x4c8e60
mov esi, dword [esp + 0x70]
mov edx, ebx
mov ebx, dword [esi + 0x10]
cmp ebx, 0xffffffff
je 0x4c8c50
cmp ecx, 5
jbe 0x4c8e56
mov ecx, dword [esi + 0x14]
mov edx, dword [esp + 0x124]
cmp edx, ecx
jb 0x4c8e51
cmp ecx, ebx
jb 0x4c8e4a
sub ecx, ebx
mov esi, ecx
neg ecx
sar ecx, 0x1f
and ebx, ecx
mov ecx, esi
mov esi, dword [esp + 0x120]
lea ebp, [esi + ebx]
jmp 0x4c8c60
mov esi, dword [esp + 0x120]
mov ecx, edx
mov edx, dword [esp + 0x124]
mov dword [esp + 0x34], eax
test eax, eax
je 0x4c8cb2
cmp eax, 0xe
je 0x4c8cb2
cmp eax, 0xd
je 0x4c8cb2
mov dword [esp], 0
lea eax, [0x50fe25]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ecx
call fcn.0044a020
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x124]
mov esi, dword [esp + 0x120]
mov dword [esp + 0x74], ebp
mov ebx, dword [esp + 0x7c]
mov edi, esi
mov esi, dword [ebx + 4]
mov dword [esp + 0x5c], esi
lea ebp, [esi + 1]
mov esi, dword [ebx]
mov ebx, dword [ebx + 8]
cmp ebx, ebp
jb 0x4c8cd5
mov ebx, dword [esp + 0x5c]
jmp 0x4c8d3b
mov dword [esp + 0x54], ecx
lea eax, [0x4fea40]
mov dword [esp], eax
mov dword [esp + 4], esi
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.00446d70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x7c]
mov dword [edi + 8], edx
mov edx, dword [0x605b20]
test edx, edx
jne 0x4c8d1c
mov dword [edi], eax
jmp 0x4c8d21
call fcn.0045d600
mov edx, dword [esp + 0x124]
mov edi, dword [esp + 0x120]
mov esi, eax
mov ebx, ecx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x84], esi
lea ebp, [ebx + 1]
mov esi, dword [esp + 0x7c]
mov dword [esi + 4], ebp
lea ebx, [ebx + ebx*2]
mov ebp, dword [esp + 0x84]
mov dword [ebp + ebx*4], eax
mov dword [ebp + ebx*4 + 8], ecx
mov eax, esi
mov esi, dword [0x605b20]
mov ecx, ebx
lea ebx, [ebp + ebx*4 + 4]
test esi, esi
jne 0x4c8d7a
mov ebx, dword [esp + 0x74]
mov dword [ebp + ecx*4 + 4], ebx
jmp 0x4c8d8d
mov ecx, edi
mov edi, ebx
mov ebp, eax
mov eax, dword [esp + 0x74]
call fcn.0045d600
mov eax, ebp
mov edi, ecx
mov ebx, dword [esp + 0x60]
inc ebx
mov ebp, dword [esp + 0x48]
cmp ebp, ebx
jg 0x4c89f7
mov eax, dword [esp + 0x40]
jmp 0x4c86fe
mov dword [esp], 0
lea eax, [0x515d98]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x1a
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
call fcn.0044a020
mov eax, dword [esp + 0x14]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], ecx
lea edx, [0x4fcf40]
mov dword [esp], edx
call fcn.0040b480
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x38]
mov dword [edi + 4], eax
mov eax, dword [0x605b20]
test eax, eax
jne 0x4c8e10
mov eax, dword [esp + 0x68]
mov dword [edi], eax
jmp 0x4c8e19
mov eax, dword [esp + 0x68]
call fcn.0045d600
mov dword [esp + 0x128], 0
mov dword [esp + 0x12c], 0
lea eax, [0x53b92c]
mov dword [esp + 0x130], eax
mov dword [esp + 0x134], edi
add esp, 0x11c
ret
mov eax, ebx
call fcn.0045d6e0
call fcn.0045d6a0
mov eax, 5
call fcn.0045d680
mov eax, 4
call fcn.0045d680
call fcn.0045d680
mov eax, edi
mov ecx, esi
call fcn.0045d6e0
mov ecx, esi
mov edx, ebp
call fcn.0045d6a0
mov eax, 3
mov ecx, ebx
call fcn.0045d680
mov eax, 2
mov ecx, ebx
call fcn.0045d680
mov eax, edi
mov ecx, ebp
call fcn.0045d6e0
mov ecx, ebp
mov edx, esi
call fcn.0045d6a0
mov eax, 1
mov ecx, ebx
call fcn.0045d680
xor eax, eax
mov ecx, ebx
call fcn.0045d680
nop
call fcn.0045c1c0
jmp fcn.004c85b0