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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x457129
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x489d50]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
xor ebx, ebx
lea ecx, [esp + 0x30]
cmp dword [0x48e9a0], ebx
jne 0x4c57f4
push 0x474ad0
call fcn.004b315a
push ebx
lea eax, [esp + 0x34]
push eax
push 2
mov dword [esp + 0x74], ebx
call fcn.004bfd4d
mov ecx, dword [esp + 0x3c]
add esp, 0xc
jmp 0x4c5ad9
push 0x474b0c
call fcn.004b315a
push ebx
lea eax, [esp + 0x34]
push eax
push 2
pop esi
push esi
mov dword [esp + 0x74], 1
call fcn.004bfd4d
or dword [esp + 0x74], 0xffffffff
mov ecx, dword [esp + 0x3c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004b35dc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], ebx
call fcn.004c5350
cmp dword [esp + 0x18], ebx
je 0x4c5ae1
mov eax, 0x473d44
cmp dword [ebp + 8], ebx
jne 0x4c5860
mov eax, 0x473d60
push eax
lea ecx, [esp + 0x44]
call fcn.004b315a
mov dword [esp + 0x68], esi
call fcn.004dbc34
push eax
lea ecx, [esp + 0x24]
call fcn.004c14de
mov byte [esp + 0x68], 3
call fcn.004dbc34
push eax
lea ecx, [esp + 0x20]
call fcn.004c14de
lea eax, [esp + 0x20]
push eax
push dword [ebp + 8]
mov byte [esp + 0x70], 4
call fcn.004c5675
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x38], ebx
call dword [ecx + 0x1c]
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x2c], ebx
jbe 0x4c5a75
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push ebx
lea edx, [esp + 0x18]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x4c5a63
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4c5a63
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
cmp eax, ebx
jl 0x4c5a59
push dword [esp + 0x24]
lea ecx, [esp + 0x14]
call fcn.004b315a
mov byte [esp + 0x68], 5
push dword [esp + 0x24]
call dword [0x4596d0]
push dword [esp + 0x40]
xor ecx, ecx
lea esi, [esp + 0x14]
call fcn.004b9c71
cmp eax, 0xffffffff
jne 0x4c5956
mov eax, dword [esp + 0x20]
cmp dword [eax - 0xc], ebx
je 0x4c5a48
push dword [esp + 0x10]
xor ecx, ecx
lea esi, [esp + 0x24]
call fcn.004b9c71
cmp eax, 0xffffffff
je 0x4c5a48
push 0x474b24
lea ecx, [esp + 0x38]
call fcn.004b315a
push ebx
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
push eax
push 2
mov byte [esp + 0x78], 6
call fcn.004bf8c7
mov byte [esp + 0x78], 5
mov ecx, dword [esp + 0x44]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004b35dc
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
xor eax, eax
lea edi, [esp + 0x4c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x44]
push edx
push eax
xor esi, esi
call dword [ecx + 0x30]
test eax, eax
jne 0x4c59d8
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov edx, ecx
and edx, eax
cmp edx, 0xffffffff
je 0x4c59d8
sub ecx, dword [esp + 0x4c]
sbb eax, dword [esp + 0x50]
shrd ecx, eax, 0xa
shr eax, 0xa
mov esi, ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
cmp eax, ebx
je 0x4c5a1c
push 0x474b44
lea ecx, [esp + 0x3c]
call fcn.004b315a
push ebx
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x40]
push eax
push 2
mov byte [esp + 0x78], 7
call fcn.004bf8c7
mov ecx, dword [esp + 0x48]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004b35dc
jmp 0x4c5a48
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], ebx
je 0x4c5a33
push 0x473d40
lea ecx, [esp + 0x20]
call fcn.004b9e18
mov eax, dword [esp + 0x10]
push dword [eax - 0xc]
lea ecx, [esp + 0x20]
push eax
call fcn.004b2f90
add dword [esp + 0x30], esi
mov byte [esp + 0x68], 4
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.004b35dc
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [esp + 0x28]
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x2c]
jb 0x4c58c4
mov esi, dword [esp + 0x1c]
cmp dword [esi - 0xc], ebx
je 0x4c5aa7
mov eax, dword [0x48ea58]
mov edi, 0x48ea58
cmp dword [eax - 0xc], ebx
je 0x4c5a97
push 0x473d40
call fcn.004c5c5f
push esi
call fcn.004c5c5f
mov eax, dword [esp + 0x30]
add dword [0x48ea5c], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [0x4596cc]
lea ecx, [esi - 0x10]
call fcn.004b35dc
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.004b35dc
mov ecx, dword [esp + 0x40]
add ecx, 0xfffffff0
call fcn.004b35dc
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4