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

Disassembly:
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x20], edx
mov ebp, ecx
mov dword [esp + 0x1c], ebx
mov edi, ebx
lea ecx, [esp + 0x24]
push 3
mov dword [esp + 0x1c], edi
call fcn.004b686a
lea eax, [esp + 0x24]
mov ecx, ebp
push eax
call fcn.004b82ba
push dword [esp + 0x2c]
mov esi, eax
push dword [esp + 0x34]
call fcn.00472a06
test esi, esi
jg 0x4c22ee
push 2
lea ecx, [esp + 0x78]
call fcn.004b686a
inc ebx
mov ecx, ebp
mov eax, ebx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x74]
push eax
call fcn.004b82ba
test eax, eax
je 0x4c22c2
push 3
lea ecx, [esp + 0x28]
call fcn.004b686a
push 3
pop eax
mov dword [esp + 0x1c], eax
mov ecx, ebp
lea eax, [esp + 0x24]
push eax
call fcn.004b82ba
test eax, eax
je 0x4c22c2
push 3
pop eax
xor ebx, ebx
jmp 0x4c22c6
mov eax, dword [esp + 0x1c]
test al, 2
je 0x4c22d7
push dword [esp + 0x2c]
push dword [esp + 0x34]
call fcn.00472a06
push dword [esp + 0x7c]
push dword [esp + 0x84]
call fcn.00472a06
mov al, bl
jmp 0x4c25c1
push ebx
mov ecx, ebp
call fcn.004b69fa
xor ebx, ebx
inc ebx
test al, al
jne 0x4c231f
push 2
lea ecx, [esp + 0x3c]
call fcn.004b686a
push 4
pop edi
lea eax, [esp + 0x38]
mov dword [esp + 0x18], edi
push eax
mov ecx, ebp
call fcn.004b82ba
test eax, eax
jne 0x4c2359
push ebx
lea ecx, [esp + 0x28]
call fcn.004b686a
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x74]
or edi, 0x18
mov edx, esi
push ebp
mov dword [esp + 0x1c], edi
call fcn.004b84b2
pop ecx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x78]
call fcn.004b82ba
test eax, eax
jne 0x4c235d
mov byte [esp + 0x17], al
jmp 0x4c2361
mov esi, dword [esp + 0x20]
mov byte [esp + 0x17], bl
mov eax, dword [esp + 0x18]
test al, 0x10
je 0x4c2384
push dword [esp + 0x7c]
and eax, 0xffffffef
push dword [esp + 0x84]
mov dword [esp + 0x20], eax
call fcn.00472a06
mov eax, dword [esp + 0x18]
test al, 8
je 0x4c23a0
push dword [esp + 0x2c]
and eax, 0xfffffff7
push dword [esp + 0x34]
mov dword [esp + 0x20], eax
call fcn.00472a06
mov eax, dword [esp + 0x18]
test al, 4
je 0x4c23b1
push dword [esp + 0x40]
push dword [esp + 0x48]
call fcn.00472a06
cmp byte [esp + 0x17], 0
je 0x4c23bf
xor al, al
jmp 0x4c25c1
push ebx
lea ecx, [esp + 0x28]
call fcn.004b686a
mov eax, dword [ebp + 8]
cmp eax, dword [esp + 0x2c]
cmovb eax, dword [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.004b6a9d
lea ecx, [esp + 0x4c]
cmp dword [ebp + 0x10], ebx
je 0x4c23fd
lea eax, [esp + 0x24]
mov edx, ebp
push eax
cmp dword [esp + 0x38], ebx
jne 0x4c241a
call fcn.004b79d8
jmp 0x4c241f
cmp dword [esp + 0x34], ebx
je 0x4c2415
lea eax, [esp + 0x24]
mov edx, ebp
push eax
call fcn.004b79d8
mov dword [esp + 0x60], ebx
jmp 0x4c241f
push ebp
lea edx, [esp + 0x28]
call fcn.004b7abc
pop ecx
push dword [esp + 0x2c]
push dword [esp + 0x34]
call fcn.00472a06
xor eax, eax
mov edi, eax
push eax
jmp 0x4c2436
inc edi
push edi
lea ecx, [esp + 0x50]
call fcn.004b69fa
test al, al
je 0x4c2434
push edi
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x54]
call fcn.004aae74
lea eax, [esp + 0x88]
mov edx, esi
push ebp
push eax
lea ecx, [esp + 0x68]
call fcn.004b8478
pop ecx
pop ecx
push ebx
lea ecx, [esp + 0x3c]
call fcn.004b686a
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x64]
call fcn.004b82ba
test eax, eax
je 0x4c249e
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x64]
call fcn.004b82ba
mov byte [esp + 0x17], 0
test eax, eax
jne 0x4c24a2
mov byte [esp + 0x17], bl
push dword [esp + 0x40]
push dword [esp + 0x48]
call fcn.00472a06
cmp byte [esp + 0x17], 0
je 0x4c24e3
push dword [esp + 0x68]
push dword [esp + 0x70]
call fcn.00472a06
push dword [esp + 0x90]
push dword [esp + 0x98]
call fcn.00472a06
push dword [esp + 0x54]
push dword [esp + 0x5c]
jmp 0x4c22e2
mov dword [esp + 0x20], ebx
cmp edi, ebx
jbe 0x4c258a
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x68]
call fcn.004b7ec7
push ebp
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x7c]
call fcn.004b8148
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x64]
call fcn.004b698c
push dword [esp + 0x40]
push dword [esp + 0x48]
call fcn.00472a06
push dword [esp + 0x7c]
push dword [esp + 0x84]
call fcn.00472a06
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x64]
call fcn.004b82ba
test eax, eax
je 0x4c25cc
push ebx
lea ecx, [esp + 0x3c]
call fcn.004b686a
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x64]
call fcn.004b82ba
push dword [esp + 0x40]
mov esi, eax
push dword [esp + 0x48]
call fcn.00472a06
test esi, esi
je 0x4c2590
mov esi, dword [esp + 0x20]
inc esi
mov dword [esp + 0x20], esi
cmp esi, edi
jb 0x4c24ef
xor eax, eax
mov dword [esp + 0x1c], eax
push dword [esp + 0x68]
push dword [esp + 0x70]
call fcn.00472a06
push dword [esp + 0x90]
push dword [esp + 0x98]
call fcn.00472a06
push dword [esp + 0x54]
push dword [esp + 0x5c]
call fcn.00472a06
mov al, byte [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret
mov byte [esp + 0x1c], bl
jmp 0x4c2590