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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebx], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebx + 4], eax
mov byte [eax + 0x3931d], 0
mov dword [ebx + 8], esi
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2c]
mov byte [ebx + 0xc], al
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2d]
mov byte [ebx + 0xd], al
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2e]
mov byte [ebx + 0xe], al
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x30]
mov byte [ebx + 0xf], al
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x31]
mov byte [ebx + 0x10], al
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x36]
mov byte [ebx + 0x11], al
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x44]
mov byte [ebx + 0x12], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
mov dword [ebx + 0x24], eax
mov byte [ebx + 0x7d], 0
lea eax, [ebx + 0x80]
xor ecx, ecx
mov edx, 0x80
call fcn.004032f4
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x80], edi
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x8c], eax
lea eax, [edi + edi*8]
mov edx, dword [esi + 0x30]
movzx eax, word [edx + eax*4 + 0x1e]
mov dword [ebx + 0x90], eax
lea eax, [edi + edi*8]
mov edx, dword [esi + 0x30]
mov eax, dword [edx + eax*4 + 0xc]
mov dword [ebx + 0x98], eax
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0xa0], eax
xor eax, eax
mov dword [ebx + 0xac], eax
lea eax, [edi + edi*8]
mov edx, dword [esi + 0x30]
mov eax, dword [edx + eax*4 + 8]
mov dword [ebx + 0x94], eax
mov dword [ebx + 0xbc], 0xffffffff
lea eax, [edi + edi*8]
mov edx, dword [esi + 0x30]
mov eax, dword [edx + eax*4 + 0x10]
mov dword [ebx + 0xc0], eax
xor eax, eax
mov dword [ebx + 0xc4], eax
lea eax, [edi + edi*8]
mov edx, dword [esi + 0x30]
mov ecx, dword [edx + eax*4 + 0x14]
mov dword [ebx + 0xc8], ecx
mov ecx, dword [edx + eax*4 + 0x18]
mov dword [ebx + 0xcc], ecx
mov ecx, dword [ebx + 0x98]
add ecx, 7
shr ecx, 3
mov eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb0]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x5ba1fa
cmp eax, dword [esp]
pop edx
pop eax
jae 0x5ba231
jmp 0x5ba1fe
pop edx
pop eax
jge 0x5ba231
mov eax, ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0xb0], eax
mov edx, dword [ebp - 4]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, 0x90
call fcn.0040d7f8
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xb0]
mov eax, dword [ebp - 4]
add eax, 0xa0
call fcn.0040d7f8
mov eax, dword [ebp - 4]
lea esi, [eax + 0x90]
lea edi, [ebx + 0xd0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
lea esi, [eax + 0xa0]
lea edi, [ebx + 0xe0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0xa0]
add eax, dword [ebx + 0x98]
mov edx, dword [ebp - 4]
imul dword [edx + 0x40]
test eax, eax
jns 0x5ba272
add eax, 0xff
sar eax, 8
mov dword [ebx + 0x28], eax
cmp byte [ebx + 0xf], 0
je 0x5ba287
mov dword [ebx + 0x28], 2
jmp 0x5ba2b8
cmp byte [ebx + 0xd], 0
je 0x5ba29d
mov ecx, 0x10
mov eax, dword [ebx + 0x28]
cdq
idiv ecx
mov dword [ebx + 0x28], eax
jmp 0x5ba2ab
mov ecx, 8
mov eax, dword [ebx + 0x28]
cdq
idiv ecx
mov dword [ebx + 0x28], eax
cmp dword [ebx + 0x28], 2
jge 0x5ba2b8
mov dword [ebx + 0x28], 2
cmp byte [ebx + 0xd], 0
jne 0x5ba2c4
cmp byte [ebx + 0xf], 0
je 0x5ba2d0
xor eax, eax
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x30], eax
jmp 0x5ba2f4
cmp byte [ebx + 0xc], 0
je 0x5ba2e6
mov dword [ebx + 0x2c], 4
mov dword [ebx + 0x30], 2
jmp 0x5ba2f4
mov dword [ebx + 0x2c], 0x400
mov dword [ebx + 0x30], 0x40
lea eax, [ebx + 0xf0]
xor ecx, ecx
mov edx, 0x10
call fcn.004032f4
push ebp
mov eax, dword [ebx + 0x98]
call fcn.005ba034
pop ecx
mov dword [ebx + 0x88], eax
xor eax, eax
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0xa0]
add eax, dword [ebx + 0x98]
test eax, eax
jns 0x5ba333
add eax, 0x3ff
sar eax, 0xa
inc eax
mov dword [ebx + 0x38], eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x88], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov dword [ebx + 0x40], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov dword [ebx + 0x44], eax
xor eax, eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x68], eax
xor eax, eax
mov dword [ebx + 0x6c], eax
push 0
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebx + 0x68]
push eax
lea eax, [ebx + 0x7c]
push eax
lea edx, [ebx + 0x80]
movzx eax, byte [ebx + 0xd]
xor ecx, ecx
call fcn.005b82d8
mov dword [ebx + 0x78], eax
xor eax, eax
mov dword [ebx + 0x70], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x5c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov dword [ebx + 0x60], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x8c]
mov byte [ebx + 0x64], al
xor eax, eax
mov dword [ebx + 0x4c], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x54], eax
xor eax, eax
mov dword [ebx + 0x58], eax
cmp byte [ebx + 0xf], 0
jne 0x5ba3e7
cmp byte [ebx + 0xe], 0
jne 0x5ba405
cmp byte [ebx + 0x10], 0
jne 0x5ba405
cmp dword [ebp + 8], 0
je 0x5ba405
mov eax, dword [ebp - 4]
push dword [eax + 0x20]
push dword [eax + 0x1c]
mov eax, dword [ebp - 4]
push dword [eax + 0x28]
push dword [eax + 0x24]
mov eax, ebx
mov edx, dword [ebp + 8]
call fcn.005b9f18
jmp 0x5ba41e
mov eax, dword [ebp - 4]
push dword [eax + 0x20]
push dword [eax + 0x1c]
mov eax, dword [ebp - 4]
push dword [eax + 0x28]
push dword [eax + 0x24]
mov eax, ebx
call fcn.005b9cc8
mov eax, ebx
call fcn.005b9980
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x14