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

Disassembly:
push 0xffffffffffffffff
push 0x4e6ea2
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53450c]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x1c], ebp
mov ecx, dword [esp + 0x80]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [ebp + 0x74]
mov dword [esp + 0x24], eax
call fcn.004c31c0
lea ecx, [ebp + 4]
call fcn.004c31c0
lea ecx, [ebx + 1]
cmp eax, ebx
je 0x4c596a
xor esi, esi
mov edx, 0x800
lea esp, [esp]
cmp eax, edx
jae 0x4c5962
mov edx, dword [esi*8 + 0x4fa868]
inc esi
cmp edx, ebx
jne 0x4c5950
jmp 0x4c596a
mov ecx, dword [esi*8 + 0x4fa864]
inc ecx
mov eax, dword [esp + 0x24]
test al, 1
je 0x4c5975
add ecx, 2
test eax, 0x400
je 0x4c597d
inc ecx
mov edx, 1
shl edx, cl
mov dword [ebp + 0x70], ecx
lea ecx, [ebp + 0x54]
dec edx
push edx
call fcn.004c49f0
mov edi, dword [ebp + 0x68]
lea edi, [edi + edi + 2]
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
push 1
mov dword [esp + 0x7c], ebx
call fcn.0047ffd0
mov esi, eax
xor eax, eax
add esp, 4
mov dword [esp + 0x44], esi
cmp edi, eax
jbe 0x4c59ed
mov edx, dword [esi]
push eax
push eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov edx, dword [esi]
mov edx, dword [edx]
lea eax, [edi*4]
push eax
mov ecx, esi
call edx
mov ebx, eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], edi
xor eax, eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x78], 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
push 1
mov byte [esp + 0x7c], 2
call fcn.0047ffd0
add esp, 4
mov esi, eax
mov dword [esp + 0x34], esi
test edi, edi
je 0x4c5a47
mov eax, dword [esi]
mov edx, dword [eax + 4]
push 0
push 0
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax]
lea ecx, [edi*4]
push ecx
mov ecx, esi
call edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
mov ecx, dword [esp + 0x80]
push 1
lea esi, [ebp + 0x18]
push esi
mov byte [esp + 0x80], 3
call fcn.004c2f90
test eax, eax
js 0x4c5a90
mov eax, dword [esp + 0x80]
push esi
push eax
lea ecx, [esp + 0x64]
push ecx
call fcn.004d0fb0
add esp, 0xc
mov esi, eax
mov byte [esp + 0x78], 4
mov dword [esp + 0x14], 1
jmp 0x4c5ab3
mov edx, dword [esp + 0x80]
push edx
lea ecx, [esp + 0x4c]
call fcn.004c35b0
mov esi, eax
mov dword [esp + 0x78], 5
mov dword [esp + 0x14], 2
mov ecx, dword [ebp + 0x54]
mov dword [esp + 0x80], ecx
cmp ecx, esi
je 0x4c5b04
mov eax, dword [esi + 4]
mov edx, dword [esi]
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
call fcn.00485f40
mov ecx, dword [esp + 0x80]
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x24]
cmp edx, eax
ja 0x4c5ae8
mov eax, edx
mov edx, dword [esp + 0x20]
mov ecx, dword [ecx]
add eax, eax
add eax, eax
push eax
push edx
push ecx
call fcn.0045e5f0
mov ecx, dword [esp + 0x8c]
add esp, 0xc
test byte [esp + 0x14], 2
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x10], eax
mov dword [esp + 0x78], 4
je 0x4c5b37
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
and dword [esp + 0x14], 0xfffffffd
add eax, eax
add eax, eax
push eax
mov eax, dword [esp + 0x4c]
push eax
call edx
test byte [esp + 0x14], 1
mov dword [esp + 0x78], 3
je 0x4c5b5f
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add edx, edx
add edx, edx
push edx
mov edx, dword [esp + 0x60]
push edx
call eax
mov esi, dword [ebp + 0x30]
mov eax, dword [ebp + 0x2c]
test esi, esi
je 0x4c5b7b
lea eax, [eax + esi*4 - 4]
lea ecx, [ecx]
cmp dword [eax], 0
jne 0x4c5b7b
sub eax, 4
dec esi
jne 0x4c5b70
mov ecx, dword [ebp + 0x54]
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
test eax, eax
je 0x4c5b9b
lea edx, [edx + eax*4 - 4]
jmp 0x4c5b90
cmp dword [edx], 0
jne 0x4c5b9b
sub edx, 4
dec eax
jne 0x4c5b90
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
push esi
mov esi, dword [ebp + 0x30]
push esi
mov esi, dword [ebp + 0x2c]
push esi
push eax
push edx
push ecx
mov ecx, dword [esp + 0x40]
push ecx
push edi
push ebx
call fcn.004cfb80
mov eax, dword [ebp + 0x64]
mov esi, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x18]
mov edx, dword [esp + 0x3c]
mov edi, dword [ebp + 0x54]
push eax
push esi
push ecx
push edx
push ebx
call fcn.004cf060
add esp, 0x38
lea eax, [esi + 1]
push eax
mov ecx, edi
call fcn.00485f40
mov eax, dword [edi + 4]
lea ecx, [esi + 1]
cmp ecx, eax
ja 0x4c5bec
mov eax, ecx
mov edi, dword [edi]
add eax, eax
add eax, eax
push eax
lea ecx, [ebx + esi*4]
push ecx
push edi
call fcn.0045e5f0
mov eax, dword [ebp + 0x54]
mov ecx, dword [eax]
mov dword [esp + 0x2c], eax
mov eax, dword [eax + 4]
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
je 0x4c5c27
lea ecx, [ecx + eax*4 - 4]
cmp dword [ecx], 0
jne 0x4c5c23
sub ecx, 4
dec eax
jne 0x4c5c18
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 0x58]
sub ecx, dword [ebp + 0x54]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x24], 1
cmp eax, 1
je 0x4c5d94
mov dword [esp + 0x80], 0x14
jmp 0x4c5c64
mov ebp, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x54]
mov edx, dword [esp + 0x80]
mov esi, dword [edx + ecx - 0x10]
mov eax, dword [edx + ecx - 0x14]
lea edi, [edx + ecx - 0x14]
test esi, esi
je 0x4c5c8d
lea eax, [eax + esi*4 - 4]
cmp dword [eax], 0
jne 0x4c5c8d
sub eax, 4
dec esi
jne 0x4c5c82
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4c5ca5
add eax, eax
add eax, eax
push eax
push 0
push ebx
call fcn.0045f2d0
add esp, 0xc
mov eax, dword [edi + 4]
mov edi, dword [edi]
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 4]
mov edx, dword [esp + 0x20]
mov edx, dword [edx]
push esi
push eax
mov eax, dword [esp + 0x1c]
push edi
push eax
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x30]
push ecx
push edx
push ebx
call fcn.004cfb80
mov eax, dword [ebp + 0x64]
mov ecx, dword [esp + 0x40]
mov ebp, dword [ebp + 0x68]
mov esi, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x18]
add esi, dword [esp + 0xa4]
push eax
mov eax, dword [esp + 0x40]
push ebp
push ecx
push eax
push ebx
call fcn.004cf060
mov eax, dword [esi + 8]
lea edi, [ebp + 1]
add esp, 0x38
cmp edi, eax
ja 0x4c5d1e
mov ecx, dword [esi]
test eax, eax
je 0x4c5d46
lea edx, [eax*4]
push edx
push 0
push ecx
call fcn.0045f2d0
add esp, 0xc
jmp 0x4c5d46
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
add eax, eax
add eax, eax
push eax
mov eax, dword [esi]
push eax
call edx
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [edi*4]
push edx
call eax
mov dword [esi], eax
mov dword [esi + 8], edi
lea ecx, [edi*4]
push ecx
lea edx, [ebx + ebp*4]
mov dword [esi + 4], edi
mov esi, dword [esi]
push edx
push esi
call fcn.0045e5f0
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x58]
sub ecx, dword [eax + 0x54]
mov esi, dword [esp + 0x30]
add dword [esp + 0x8c], 0x14
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add esp, 0xc
mov dword [esp + 0x24], esi
cmp esi, eax
jne 0x4c5c60
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
add eax, eax
add eax, eax
push eax
mov eax, dword [esp + 0x2c]
push eax
mov byte [esp + 0x80], 1
call edx
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add edx, edx
add edx, edx
push edx
push ebx
mov dword [esp + 0x80], 0xffffffff
call eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 4