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

Disassembly:
push 0xffffffffffffffff
push 0x5efc40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [esp + 0x68]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
mov dword [esp + 0x18], ebp
jne 0x4c5c41
xor eax, eax
jmp 0x4c5f76
mov ecx, ebp
call fcn.004c2f40
mov edi, dword [esp + 0x68]
mov ebx, eax
xor esi, esi
test ebx, ebx
jle 0x4c5c6e
push esi
mov ecx, ebp
call fcn.004c2fa0
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x10], eax
cmp ecx, edi
je 0x4c5c7e
inc esi
cmp esi, ebx
jl 0x4c5c54
jmp 0x4c5c72
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x14], edi
je 0x4c5c7e
xor eax, eax
jmp 0x4c5f76
lea ecx, [esp + 0x2c]
xor ebx, ebx
call fcn.005c3f6e
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
lea eax, [esp + 0x2c]
mov dword [esp + 0x5c], ebx
push eax
mov eax, dword [esp + 0x70]
push ecx
push edx
push eax
push edi
mov ecx, ebp
call fcn.004c3720
mov ebp, eax
test ebp, ebp
jne 0x4c5cc7
lea ecx, [esp + 0x2c]
mov dword [esp + 0x5c], 0xffffffff
call fcn.005c3fa1
xor eax, eax
jmp 0x4c5f76
xor ecx, ecx
test ebp, ebp
jle 0x4c5cec
mov edx, dword [esp + 0x30]
mov eax, dword [edx]
cmp dword [eax + 0x1c], edi
jne 0x4c5d62
mov esi, dword [eax + 0x20]
add edx, 4
sub esi, dword [eax + 0x18]
add ebx, esi
inc ecx
cmp ecx, ebp
jl 0x4c5cd1
lea ecx, [esp + 0x40]
call fcn.005c3f6e
mov ecx, dword [esp + 0x10]
xor edi, edi
mov byte [esp + 0x5c], 1
mov eax, dword [ecx + 0x8c]
test eax, eax
mov dword [esp + 0x14], eax
jle 0x4c5d50
mov ecx, dword [esp + 0x10]
push edi
call fcn.00573900
mov edx, dword [esp + 0x6c]
mov esi, eax
cmp dword [esi + 0x20], edx
jle 0x4c5d47
mov eax, dword [esp + 0x74]
mov ecx, dword [esi + 0x18]
cmp ecx, eax
jge 0x4c5d47
mov ecx, dword [esp + 0x48]
push esi
push ecx
lea ecx, [esp + 0x48]
call fcn.005c382b
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
sub edx, ecx
add ebx, edx
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jl 0x4c5d0e
test ebx, ebx
je 0x4c5d7a
lea ecx, [esp + 0x40]
mov byte [esp + 0x5c], 0
call fcn.005c3fa1
lea ecx, [esp + 0x2c]
mov dword [esp + 0x5c], 0xffffffff
call fcn.005c3fa1
xor eax, eax
jmp 0x4c5f76
mov ebx, dword [esp + 0x78]
test ebx, ebx
jle 0x4c5dc2
mov eax, dword [esp + 0x48]
xor edi, edi
test eax, eax
jle 0x4c5e00
mov eax, dword [esp + 0x44]
mov esi, dword [eax + edi*4]
mov ecx, esi
call fcn.0054ea30
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x14]
sub ecx, edx
sub ecx, ebx
cmp ecx, 0xc
jl 0x4c5d54
mov edx, dword [esi + 0x1c]
mov ebp, dword [esi + 0x14]
sub edx, ebp
sub edx, ebx
cmp edx, eax
jl 0x4c5d54
mov eax, dword [esp + 0x48]
inc edi
cmp edi, eax
jl 0x4c5d8c
jmp 0x4c5e00
xor edi, edi
test ebp, ebp
jle 0x4c5e00
mov eax, dword [esp + 0x30]
mov esi, dword [eax + edi*4]
mov ecx, esi
call fcn.0054ea30
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x14]
sub ecx, edx
add ecx, ebx
cmp ecx, 0xc
jl 0x4c5d54
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x14]
sub edx, ecx
add edx, ebx
cmp edx, eax
jl 0x4c5d54
inc edi
cmp edi, ebp
jl 0x4c5dc8
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x34]
cmp ecx, 1
mov dword [esp + 0x70], ecx
mov dword [esp + 0x68], eax
jne 0x4c5e6a
cmp eax, ecx
jne 0x4c5e6a
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x78]
mov ecx, ebp
mov ebx, dword [eax]
mov esi, dword [ebx + 0x1c]
add esi, edx
call fcn.004c2f40
xor edi, edi
mov dword [esp + 0x18], eax
test eax, eax
jle 0x4c5e6a
push edi
mov ecx, ebp
call fcn.004c2fa0
mov ecx, dword [eax + 0x14]
mov eax, ecx
sub eax, esi
cdq
xor eax, edx
sub eax, edx
je 0x4c5e61
cmp eax, 6
jg 0x4c5e61
sub ecx, dword [ebx + 0x1c]
mov dword [esp + 0x78], ecx
jne 0x4c5e6a
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
jl 0x4c5e3d
mov eax, dword [esp + 0x68]
mov ebp, dword [esp + 0x64]
xor edi, edi
test eax, eax
jle 0x4c5ed6
mov ecx, dword [esp + 0x30]
mov esi, dword [ecx + edi*4]
lea edx, [esi + 0x14]
mov ebx, dword [esi + 0x14]
mov eax, dword [edx + 4]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
mov ecx, dword [edx + 8]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x78]
mov edx, dword [edx + 0xc]
push ecx
mov ecx, esi
mov dword [esp + 0x2c], edx
call dword [eax + 0x28]
mov ecx, dword [esp + 0x20]
sub esp, 0x10
mov eax, esp
mov edx, dword [esi]
push ebp
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xc], ecx
mov ecx, esi
call dword [edx + 0x90]
mov eax, dword [esp + 0x68]
inc edi
cmp edi, eax
jl 0x4c5e78
mov eax, dword [esp + 0x70]
xor edi, edi
test eax, eax
jle 0x4c5f3e
mov edx, dword [esp + 0x44]
mov esi, dword [edx + edi*4]
lea eax, [esi + 0x14]
mov ebx, dword [esi + 0x14]
mov ecx, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov ecx, esi
mov edx, dword [eax + 8]
mov dword [esp + 0x24], edx
mov edx, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x78]
push eax
call dword [edx + 0x20]
mov ecx, dword [esp + 0x20]
sub esp, 0x10
mov eax, esp
mov edx, dword [esi]
push ebp
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xc], ecx
mov ecx, esi
call dword [edx + 0x90]
mov eax, dword [esp + 0x70]
inc edi
cmp edi, eax
jl 0x4c5ee0
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x108]
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0xc]
lea ecx, [esp + 0x40]
mov byte [esp + 0x5c], 0
call fcn.005c3fa1
lea ecx, [esp + 0x2c]
mov dword [esp + 0x5c], 0xffffffff
call fcn.005c3fa1
mov eax, 1
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x50
ret 0x18