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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x20]
mov byte [ebp - 9], 0
test edi, edi
je 0x4baf75
cmp dword [ebp + 0x1c], 0
jne 0x4baf84
cmp dword [ebp - 4], 0
je 0x4bb2f5
mov eax, dword [ebp - 4]
mov edi, dword [eax]
mov eax, dword [ebp + 0x10]
and eax, 0x100000
or eax, 0x60000
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [esi], eax
cmp dword [ebp - 4], 0
jne 0x4bafa5
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x4bafca
push 4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
push esi
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x66d2f8]
mov edx, 0x90
mov eax, dword [ebp - 4]
call fcn.004b30c0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4bafd5
cmp dword [esi], 0
je 0x4bafe2
cmp dword [esi], 0
jne 0x4bb023
mov dword [esi], 0x8005
jmp 0x4bb023
mov byte [ebp - 0x1c], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x20
push 0
push 0
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
mov eax, edi
call fcn.004b1dd4
mov dword [esi], eax
cmp dword [esi], 0
jne 0x4bb023
cmp dword [ebp - 0x28], 0x20
je 0x4bb023
mov dword [esi], 0x8005
cmp dword [esi], 0
je 0x4bb05b
cmp dword [ebp - 0x18], 0
je 0x4bb03b
mov eax, dword [ebp - 0x18]
call fcn.004b30a8
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x1c], 0
je 0x4bb2f5
mov eax, dword [edi + 0x90]
lea edx, [ebp - 0x44]
mov dword [edx], eax
mov eax, dword [edi + 0x98]
lea edx, [ebp - 0x40]
mov dword [edx], eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x88
call fcn.004032f4
mov eax, dword [ebp + 0x18]
mov dword [ebx], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 4], eax
mov dword [ebx + 0x14], 0xffffffff
mov eax, dword [ebp - 4]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], edi
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x2c], eax
cmp dword [ebp + 0x1c], 0
setne al
mov byte [ebx + 0x74], al
mov dword [ebx + 0x38], 1
mov eax, dword [edi + 0x88]
mov dword [ebx + 0x44], eax
lea eax, [ebp - 0x44]
mov eax, dword [eax]
mov dword [ebx + 0x48], eax
lea eax, [ebp - 0x40]
mov eax, dword [eax]
mov dword [ebx + 0x3c], eax
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
je 0x4bb0d2
mov eax, dword [ebx + 0x48]
xor edx, edx
div ecx
test edx, edx
je 0x4bb0dd
mov dword [esi], 0x8005
jmp 0x4bb2f5
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x4c], eax
cmp dword [ebp + 0x1c], 0
je 0x4bb0f5
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [esi], eax
jmp 0x4bb132
push 4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
push esi
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x66d2f8]
mov edx, 0xa0
mov eax, dword [ebp - 4]
call fcn.004b30c0
mov dword [ebx + 0x50], eax
cmp dword [ebx + 0x50], 0
je 0x4bb132
cmp dword [esi], 0
je 0x4bb132
mov eax, dword [ebx + 0x50]
call fcn.004b30a8
xor eax, eax
mov dword [ebx + 0x50], eax
cmp dword [ebx + 0x50], 0
je 0x4bb14b
mov eax, dword [ebx + 0x50]
cmp dword [eax + 0x30], 0
jne 0x4bb149
cmp dword [eax + 0x2c], 0
ja 0x4bb15b
jmp 0x4bb14b
jg 0x4bb15b
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
jmp 0x4bb17a
mov eax, dword [edi + 0x84]
xor edx, edx
push edx
push eax
mov edx, dword [ebx + 0x50]
mov eax, edi
call fcn.004af088
call fcn.00405158
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], edx
mov eax, dword [edi + 0x88]
mov dword [ebx + 0x78], eax
cmp byte [ebx + 0x74], 0
je 0x4bb1e4
mov edx, dword [ebx + 0x48]
cmp eax, edx
jae 0x4bb193
mov dword [ebx + 0x78], edx
mov eax, dword [ebx + 0x78]
xor edx, edx
cmp edx, dword [ebx + 0x5c]
jne 0x4bb1a4
cmp eax, dword [ebx + 0x58]
jae 0x4bb1e4
jmp 0x4bb1a6
jge 0x4bb1e4
mov eax, dword [edi + 4]
xor edx, edx
call fcn.00480ac8
cmp eax, dword [ebx + 0x78]
jbe 0x4bb1e4
mov eax, dword [edi + 4]
xor edx, edx
call fcn.00480ac8
xor edx, edx
cmp edx, dword [ebx + 0x5c]
jne 0x4bb1cd
cmp eax, dword [ebx + 0x58]
jb 0x4bb1d7
jmp 0x4bb1cf
jl 0x4bb1d7
mov eax, dword [ebx + 0x58]
mov dword [ebx + 0x78], eax
jmp 0x4bb1e4
mov eax, dword [edi + 4]
xor edx, edx
call fcn.00480ac8
mov dword [ebx + 0x78], eax
mov eax, dword [ebx + 0x78]
call fcn.0040d7d8
mov dword [ebx + 0x7c], eax
mov eax, dword [ebx + 0x7c]
mov dword [ebx + 0x24], eax
xor eax, eax
mov dword [ebx + 0x80], eax
xor eax, eax
mov dword [ebx + 0x84], eax
cmp dword [ebx + 0x4c], 0
jne 0x4bb213
mov dword [esi], 0x8005
jmp 0x4bb232
mov eax, dword [ebx + 0x24]
push eax
lea eax, [ebx + 0x1c]
push eax
mov eax, dword [ebx + 0x28]
push eax
mov eax, dword [ebx + 0x2c]
push eax
mov ecx, dword [ebx + 0x4c]
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.004ba524
mov dword [esi], eax
cmp dword [esi], 0
je 0x4bb24e
cmp byte [ebx + 0x74], 0
jne 0x4bb2d0
lea eax, [ebx + 0x24]
call fcn.0040d7e8
jmp 0x4bb2f5
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 0x24]
add eax, 0x10
movzx eax, word [eax]
add eax, 0x10
mov dword [ebx + 0x18], eax
add eax, 0x10
cmp eax, dword [ebx + 0x1c]
jbe 0x4bb281
mov dword [esi], 0x8005
cmp byte [ebx + 0x74], 0
jne 0x4bb2d0
lea eax, [ebx + 0x24]
call fcn.0040d7e8
jmp 0x4bb2f5
xor eax, eax
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x24]
add eax, dword [ebx + 0x18]
mov dword [ebx + 0x30], eax
add eax, 8
movzx eax, word [eax]
cmp eax, 0x10
jb 0x4bb2a2
add eax, dword [ebx + 0x18]
cmp eax, dword [ebx + 0x1c]
jbe 0x4bb2b8
mov dword [esi], 0x8005
cmp byte [ebx + 0x74], 0
jne 0x4bb2d0
lea eax, [ebx + 0x24]
call fcn.0040d7e8
jmp 0x4bb2f5
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x54], eax
mov eax, dword [ebx + 0x30]
call fcn.004abafc
mov byte [ebx + 0x34], al
mov dword [ebx + 0x38], 1
cmp dword [esi], 0
je 0x4bb2db
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 0x18], eax
mov edx, esi
mov eax, ebx
call fcn.004bae4c
test al, al
jne 0x4bb2f1
mov eax, ebx
call fcn.004baf24
jmp 0x4bb2f5
mov byte [ebp - 9], 1
movzx eax, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c