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

Disassembly:
sub esp, 0xa0
mov eax, dword [0x57f7c4]
xor eax, esp
mov dword [esp + 0x9c], eax
push ebx
push ebp
mov ebp, dword [esp + 0xb0]
push esi
mov esi, dword [esp + 0xb0]
push edi
mov edi, edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ecx
test esi, esi
je 0x4bb47a
cmp dword [esp + 0xbc], 0
jne 0x4bafda
mov eax, dword [esi + 0xa0]
cmp eax, 0x10
je 0x4bb47a
cmp eax, 0x18
je 0x4bb47a
test ecx, ecx
je 0x4bb027
test ebp, ebp
je 0x4bb01f
cmp dword [ebp + 0x104], 4
jne 0x4bb003
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + eax*8 + 0x18]
call fcn.004baf40
test al, al
je 0x4bb003
mov edi, dword [edx + 0xdc]
jmp 0x4bb009
mov edi, dword [ecx + 0xdc]
cmp dword [esi + 0xa0], 0x1b
jne 0x4bb018
mov edi, dword [ecx + 0xdc]
cmp word [esi + 0x38], 0
jne 0x4bb029
mov edi, dword [ecx + 0xdc]
jmp 0x4bb029
xor edi, edi
call fcn.004116d0
mov ebx, eax
test ebx, ebx
je 0x4bb47a
push 0x44
push ecx
mov dword [ebx + 0x30], esi
call fcn.004e1a50
movzx ecx, byte [esi + 0x25]
movzx edx, byte [esi + 0x24]
add esp, 4
push eax
push 1
push ecx
push edx
mov eax, ebx
call fcn.004d21c0
mov eax, 0x5828d4
call fcn.004e2040
mov ecx, eax
movzx eax, byte [0x5827c8]
mov esi, edx
cdq
add ecx, eax
adc esi, edx
mov dword [ebx + 0x3c], esi
mov dword [ebx + 0x70], edi
mov edi, dword [esp + 0x10]
lea esi, [esp + 0x1c]
mov dword [ebx + 0x38], ecx
call fcn.004a16a0
fld dword [eax]
fstp dword [ebx + 8]
fld dword [eax + 4]
fstp dword [ebx + 0xc]
fld dword [eax + 8]
fstp dword [ebx + 0x10]
mov byte [ebx + 0x78], 1
movzx edx, word [edi + 0x2a4]
mov dword [ebx + 0x7c], edx
test ebp, ebp
je 0x4bb0b5
mov eax, dword [ebp + 8]
mov dword [ebx + 0x74], eax
jmp 0x4bb0bc
mov dword [ebx + 0x74], 0
mov esi, ebx
call fcn.004d24c0
cmp dword [esp + 0xbc], 0
je 0x4bb1c1
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x3c]
mov esi, dword [ebx + 0x30]
mov dword [esp + 0x2a], edx
mov byte [ebx + 0x68], 0x56
mov dx, word [edi + 0x2a4]
mov ecx, 0xa06
mov dword [esp + 0x2e], eax
mov eax, dword [edi + 0xd4]
mov word [esp + 0x28], cx
mov ecx, dword [esi]
mov word [esp + 0x36], dx
add eax, 2
lea edx, [esp + 0x38]
mov dword [esp + 0x32], ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4bb111
mov eax, dword [edi + 0x88]
fld dword [edi + 0x7c]
mov ecx, dword [edi + 0x8c]
mov dword [esp + 0x58], eax
mov edx, dword [ecx + 0x28]
mov ax, word [edx + 0x78]
fstp dword [esp + 0x5e]
fld dword [edi + 0x80]
mov ecx, dword [ebx + 0x64]
fstp dword [esp + 0x66]
mov word [esp + 0x5c], ax
fld dword [edi + 0x84]
lea eax, [esi + 4]
lea edx, [esp + 0x6e]
fstp dword [esp + 0x62]
mov dword [esp + 0x6a], ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4bb162
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4bb19c
mov edx, dword [eax + 0x128]
mov dword [esp + 0x8e], edx
add eax, 0x184
lea edx, [esp + 0x92]
sub edx, eax
nop
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x4bb190
jmp 0x4bb1af
mov dword [esp + 0x8e], 0
mov byte [esp + 0x92], 0
mov ecx, dword [0x587974]
push 0x7f
lea eax, [esp + 0x2c]
push eax
call fcn.004ed210
mov ecx, dword [esp + 0xb4]
cmp dword [ecx + 0xa0], 0x1b
je 0x4bb438
test ebp, ebp
je 0x4bb438
cmp byte [ebp + 0x114], 1
jne 0x4bb25b
cmp dword [ebp + 0x104], 4
jne 0x4bb25b
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + edx*8 + 0x18]
test esi, esi
je 0x4bb25b
mov eax, dword [esp + 0x18]
mov ecx, esi
call fcn.004baed0
test al, al
je 0x4bb25b
mov eax, edi
call fcn.004585f0
test al, al
je 0x4bb22e
mov eax, dword [ebx + 0x30]
mov edx, dword [esp + 0x10]
push 0
add eax, 4
push eax
lea edi, [esi + 0x184]
push 7
call fcn.004b62c0
mov ecx, dword [ebx + 0x30]
cmp word [ecx + 0x38], 0
jne 0x4bb249
mov edx, dword [esp + 0x10]
mov eax, ebx
mov ebx, dword [edx + 0x8c]
jmp 0x4bb473
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + eax*8 + 0x18]
push ebx
call fcn.0046ae60
jmp 0x4bb47a
mov eax, dword [ebp + 0x104]
cmp eax, 2
jne 0x4bb2d2
call fcn.0051bd66
cdq
idiv dword [ebp + 0x10]
mov esi, dword [ebp + edx*8 + 0x18]
mov dword [esp + 0x14], edx
test esi, esi
je 0x4bb438
mov eax, dword [esp + 0x18]
mov ecx, esi
call fcn.004baed0
test al, al
je 0x4bb434
push ebx
mov ecx, esi
call fcn.0046ae60
mov esi, dword [esp + 0x10]
mov eax, esi
call fcn.004585f0
test al, al
je 0x4bb47a
mov ecx, dword [ebx + 0x30]
mov edx, dword [esp + 0x14]
mov edi, dword [ebp + edx*8 + 0x18]
push 0
add ecx, 4
push ecx
add edi, 0x184
push 7
mov edx, esi
call fcn.004b62c0
jmp 0x4bb47a
cmp eax, 1
jne 0x4bb37b
cmp dword [ebp + 0x10], 0
mov dword [esp + 0x14], 0
jle 0x4bb438
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 0x108], eax
jl 0x4bb302
mov dword [ebp + 0x108], 0
mov esi, dword [ebp + 0x108]
mov ecx, dword [ebp + esi*8 + 0x18]
test ecx, ecx
je 0x4bb321
mov eax, dword [esp + 0x18]
call fcn.004baed0
test al, al
jne 0x4bb33b
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc esi
inc eax
mov dword [ebp + 0x108], esi
cmp eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
jl 0x4bb2ed
jmp 0x4bb438
mov eax, dword [esp + 0x10]
call fcn.004585f0
test al, al
je 0x4bb366
mov eax, dword [ebx + 0x30]
mov edi, dword [ebp + esi*8 + 0x18]
mov edx, dword [esp + 0x10]
push 0
add eax, 4
push eax
add edi, 0x184
push 7
call fcn.004b62c0
mov ecx, dword [ebp + esi*8 + 0x18]
push ebx
call fcn.0046ae60
inc dword [ebp + 0x108]
jmp 0x4bb47a
cmp eax, 3
jne 0x4bb438
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], 0
test eax, eax
jle 0x4bb438
cmp dword [ebp + 0x108], eax
jl 0x4bb3a9
mov dword [ebp + 0x108], 0
mov esi, dword [ebp + 0x108]
mov ecx, dword [ebp + esi*8 + 0x18]
test ecx, ecx
je 0x4bb3c8
mov eax, dword [esp + 0x18]
call fcn.004baed0
test al, al
jne 0x4bb3e1
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 0x10]
inc ecx
inc esi
cmp ecx, eax
mov dword [ebp + 0x108], esi
mov dword [esp + 0x14], ecx
jl 0x4bb397
jmp 0x4bb438
mov eax, dword [esp + 0x10]
call fcn.004585f0
test al, al
je 0x4bb40c
mov ecx, dword [ebx + 0x30]
mov edi, dword [ebp + esi*8 + 0x18]
mov edx, dword [esp + 0x10]
push 0
add ecx, 4
push ecx
add edi, 0x184
push 7
call fcn.004b62c0
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x74], 0
mov edx, dword [ebp + esi*8 + 0x18]
mov eax, dword [edx + 0xdc]
mov dword [ebx + 0x70], eax
inc dword [ebp + 0x108]
mov eax, ebx
mov ebx, dword [ecx + 0x8c]
jmp 0x4bb473
mov edi, dword [esp + 0x10]
cmp dword [edi + 0x308], 0
jne 0x4bb451
mov eax, dword [edi + 0xd10]
test eax, eax
je 0x4bb46b
cmp byte [eax + 0x1c], 0
je 0x4bb46b
mov edx, dword [ebx + 0x30]
push 0
add edx, 4
push edx
mov edx, dword [esp + 0x18]
push 7
xor edi, edi
call fcn.004b62c0
mov edi, dword [esp + 0x10]
mov eax, ebx
mov ebx, dword [edi + 0x8c]
push 2
call fcn.0041d9b0
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051a8be
add esp, 0xa0
ret 0xc