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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov edi, ecx
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov ebx, dword [ecx]
mov dword [esp], 0
mov ecx, esp
push ecx
push 0
push eax
push edx
call fcn.004c01c0
add esp, 0x10
mov ebp, 0xa
test eax, eax
je 0x4b5bf7
push dword [esp]
call fcn.004c18c0
add esp, 4
mov eax, ebp
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [edi + 0x90]
push dword [esp]
call fcn.004c1900
add esp, 4
movzx eax, ax
push eax
push esi
call fcn.004bd0b0
add esp, 8
xor ebp, ebp
test eax, eax
je 0x4b5be2
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], edi
mov edi, dword [esp]
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x18], ecx
mov dword [esp + 8], eax
mov esi, dword [eax + 0x3c]
push esi
call fcn.004c1960
add esp, 4
mov ebx, eax
push edi
call fcn.004c1960
add esp, 4
cmp ebx, eax
jne 0x4b5be2
push esi
call fcn.004c1960
add esp, 4
test eax, eax
je 0x4b5d27
xor ebx, ebx
nop
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x18]
push eax
push ebx
push esi
call fcn.004c1b00
add esp, 0x14
test eax, eax
jne 0x4b5d20
cmp dword [esp + 0x10], 0
je 0x4b5d20
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x24]
push eax
push ebx
push edi
call fcn.004c1b00
add esp, 0x14
test eax, eax
jne 0x4b5d20
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4b5d20
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esp + 0x28]
jne 0x4b5d20
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esp + 0x20]
jne 0x4b5d20
mov ecx, dword [esp + 0x18]
test byte [ecx + 1], 4
je 0x4b5ce9
mov ecx, dword [esp + 8]
cmp dword [ecx + 0x50], 0
je 0x4b5d0f
push eax
push dword [esp + 0x14]
call dword [0xadbb68]
add esp, 8
test eax, eax
jne 0x4b5d20
inc ebx
push esi
call fcn.004c1960
add esp, 4
cmp ebx, eax
jb 0x4b5c60
jmp 0x4b5d27
push eax
push dword [esp + 0x14]
call fcn.00786b78
add esp, 8
test eax, eax
je 0x4b5cfb
xor ebp, ebp
jmp 0x4b5be2
mov ebx, dword [esp + 0x50]
push ebx
push dword [esp + 0x4c]
push dword [esp + 8]
mov esi, dword [esp + 0x14]
push esi
call fcn.004ca670
add esp, 0x10
test eax, eax
jne 0x4b5be2
push dword [esi + 0x30]
call fcn.004bd4b0
add esp, 4
mov dword [esi + 0x30], 0
push dword [esp]
call fcn.004c1950
add esp, 4
cmp eax, 1
jne 0x4b5d8d
push dword [esi + 0x3c]
call fcn.004c2d50
add esp, 4
test eax, eax
je 0x4b5d8d
push dword [esp]
call fcn.004c2d50
add esp, 4
test eax, eax
je 0x4b5eb2
mov esi, dword [esp + 0x4c]
push dword [esp]
call fcn.004c1930
add esp, 4
and eax, 4
shr eax, 2
mov edi, dword [esp + 0x14]
mov ecx, dword [edi]
mov edx, ecx
and edx, 4
or edx, esi
sete dl
and dl, al
cmp dl, 1
jne 0x4b5dd3
mov eax, dword [esp + 8]
mov dword [eax + 0x50], 1
push ebx
push eax
call fcn.004b4a40
add esp, 8
jmp 0x4b5be2
test cl, cl
mov esi, dword [esp + 8]
js 0x4b5e07
push dword [esp]
call fcn.004c1950
add esp, 4
cmp eax, 2
je 0x4b5edf
cmp eax, 5
je 0x4b5ed8
cmp eax, 4
jne 0x4b5e07
mov esi, 5
jmp 0x4b5ee4
push dword [esp]
push esi
push ebx
push edi
call fcn.004b6500
add esp, 0x10
mov dword [esp + 0x18], eax
mov esi, dword [esi + 0x50]
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x208]
push ebx
push dword [eax + 0x84]
call fcn.004bdc40
add esp, 8
test eax, eax
je 0x4b5f51
cmp dword [ebx + 0x60], 0
je 0x4b5e53
mov dword [ebx + 0x60], 0
push eax
call fcn.004bdb70
add esp, 4
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x78], 0
cmp esi, 1
sete byte [esp + 7]
mov esi, dword [ebx + 0x208]
cmp dword [esi + 0xd8], 0
je 0x4b5f51
call fcn.004c4690
test eax, eax
je 0x4b5f51
mov ebp, eax
push eax
push ebx
call fcn.004bacc0
add esp, 8
test eax, eax
je 0x4b5f10
push ebp
call fcn.004c46f0
add esp, 4
mov ebx, dword [esp + 0xc]
jmp 0x4b5f51
mov ecx, esi
call fcn.004b6010
test eax, eax
mov ecx, dword [esp + 0x14]
je 0x4b5f09
mov edx, dword [esp + 0xc]
push 0
push eax
push esi
mov ebp, eax
call fcn.004b5690
add esp, 0xc
jmp 0x4b5be2
mov esi, 6
jmp 0x4b5ee4
mov esi, 3
mov edi, dword [esp + 8]
mov edx, dword [edi + 0x50]
mov ecx, dword [esp + 0xc]
call fcn.004b5740
push dword [esp]
push 1
push esi
push ebx
push edi
call fcn.004b48e0
add esp, 0x14
jmp 0x4b5be2
push ebx
push esi
jmp 0x4b5dc6
push 0
push ebp
call fcn.004c4b40
add esp, 8
test eax, eax
mov ebx, dword [esp + 0xc]
je 0x4b5f51
xor ecx, ecx
movzx edx, byte [esp + 7]
mov cl, dl
inc ecx
push dword [esi + 0xdc]
push ecx
push 1
push eax
mov edi, eax
call dword [esi + 0xd8]
add esp, 0x10
mov eax, dword [0xad26c4]
push edi
mov edi, dword [esp + 0x18]
call dword [eax]
add esp, 4
mov esi, dword [esp]
push esi
push 0
push ebx
mov ebx, dword [esp + 0x14]
push ebx
call fcn.004cad10
add esp, 0x10
push esi
push dword [ebx + 0x58]
push 0
push dword [ebx + 0x44]
call dword [ebx + 0x40]
add esp, 0x10
push dword [ebx + 0x2c]
call fcn.004bddf0
add esp, 4
push dword [ebx + 0x30]
call fcn.004bd4b0
add esp, 4
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x38], 0
mov eax, dword [ebx + 0x28]
movzx ecx, word [ebx]
push ecx
push dword [eax + 0x90]
call fcn.004bd0e0
add esp, 8
push dword [ebx + 0x34]
call fcn.004bd4b0
add esp, 4
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
push dword [ebx + 0x3c]
call fcn.004c18c0
add esp, 4
mov eax, dword [0xad26c4]
push ebx
call dword [eax]
add esp, 4
push edi
call fcn.004c7270
add esp, 4
xor ebp, ebp
cmp dword [esp + 0x18], 0
jne 0x4b5be2
jmp 0x4b5bed