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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5833cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.005830dc
lea eax, [ebx + 0x54]
xor ecx, ecx
mov edx, 0x10
call fcn.004037ec
movzx eax, byte [ebx + 0x50]
mov eax, dword [eax*4 + 0x5a13e4]
mov dword [ebp - 0xc], eax
xor eax, eax
mov esi, 0x5a140c
mov edx, eax
cmp dl, 7
ja 0x583192
and edx, 0x7f
bt dword [ebx + 0x3c], edx
jae 0x583199
mov edx, dword [esi]
add dword [ebp - 0xc], edx
inc eax
add esi, 4
cmp al, 8
jne 0x583184
lea edx, [ebp - 0x58]
mov eax, dword [ebx + 0x34]
call fcn.0040d054
mov esi, dword [ebp - 0x58]
lea edx, [ebp - 0x5c]
mov eax, dword [ebx + 0x40]
call fcn.0040d054
mov edi, dword [ebp - 0x5c]
mov eax, ebx
call fcn.00583078
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x5831d4
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x5831e5
mov eax, ebx
call fcn.00583078
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.004efa60
mov dl, 1
mov eax, dword [0x5823e0]
call fcn.00403f38
mov dword [ebp - 8], eax
mov dl, 1
mov eax, dword [0x5823e0]
call fcn.00403f38
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5833a9
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x54]
mov eax, dword [ebx + 0x4c]
call fcn.00582774
test byte [ebx + 0x65], 2
je 0x583268
test byte [ebx + 0x65], 4
setne cl
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00582494
or dword [ebp - 0x28], 0x100
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.005839fc
mov dword [ebp - 0x18], eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.005839fc
mov dword [ebp - 0x1c], eax
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.005839fc
mov dword [ebp - 0x14], eax
lea eax, [ebx + 0x54]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
test byte [ebx + 0x65], 2
setne al
neg al
sbb eax, eax
push eax
push 0
push 0
mov eax, dword [ebx + 0x38]
call fcn.004063ac
push eax
push esi
call fcn.00409368
test eax, eax
jne 0x5832a8
mov eax, ebx
call fcn.00583020
call fcn.00416988
test byte [ebx + 0x65], 2
je 0x583338
test byte [ebx + 0x65], 4
je 0x5832c6
mov edx, 3
mov eax, ebx
call fcn.00583114
jmp 0x5832d2
mov edx, 2
mov eax, ebx
call fcn.00583114
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.005839ec
push eax
mov ecx, dword [ebx + 0x54]
mov dl, 1
mov eax, dword [0x582228]
call fcn.00582c64
mov esi, eax
mov dword [ebx + 0x70], esi
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], 0x5834e4
mov eax, esi
call fcn.0043044c
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.005839ec
mov edx, eax
mov eax, dword [ebx + 0x74]
call fcn.005835a0
test byte [ebx + 0x65], 4
je 0x583383
mov edx, 2
mov eax, dword [ebp - 8]
call fcn.005839ec
mov edx, eax
mov eax, dword [ebx + 0x78]
call fcn.005835a0
jmp 0x583383
cmp byte [ebx + 0x64], 0
je 0x583371
mov edx, 1
mov eax, ebx
call fcn.00583114
mov ecx, dword [ebx + 0x54]
mov dl, 1
mov eax, dword [0x5821a4]
call fcn.0058281c
mov esi, eax
mov dword [ebx + 0x70], esi
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], 0x5834e4
mov eax, esi
call fcn.0043044c
jmp 0x583383
push 0xffffffffffffffff
mov eax, dword [ebx + 0x54]
push eax
call fcn.0040a14c
mov eax, ebx
call fcn.005830fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5833b0
mov eax, dword [ebp - 4]
call fcn.00403f68
mov eax, dword [ebp - 8]
call fcn.00403f68
lea eax, [ebp - 0x10]
call fcn.004efb98
ret