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

Disassembly:
sub esp, 0x114
push esi
mov esi, ecx
mov eax, dword [esi + 0x118]
test eax, eax
mov dword [esp + 4], 0
je 0x5bb151
mov eax, dword [esi + 0x110]
push ebx
mov ebx, dword [esp + 0x120]
push ebp
mov ebp, ebx
imul ebp, ebp, 0x2dc
mov ecx, dword [eax + ebp + 0x270]
add eax, ebp
test ecx, ecx
mov dword [esp + 0x1c], ebp
je 0x5bb14f
mov ecx, dword [eax + 0x268]
test ecx, ecx
je 0x5bb14f
mov eax, dword [esi + 0x38]
lea edx, [esp + 0x20]
push edx
push pe_nt_image_headers32
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x64], 0x3f800000
mov dword [esp + 0x50], 0x3f800000
mov dword [esp + 0x3c], 0x3f800000
mov dword [esp + 0x28], 0x3f800000
mov ecx, dword [eax]
push eax
call dword [ecx + 0x94]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
push 1
push 0x16
push eax
call dword [ecx + 0xc8]
mov edx, dword [esi + 0x110]
mov al, byte [edx + ebp + 0x288]
test al, al
je 0x5baaa9
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
lea edx, [esp + 0xe0]
push edx
push 2
push eax
call dword [ecx + 0x98]
lea eax, [esp + 0xe0]
push eax
push 0
lea ecx, [esp + 0xa8]
push ecx
mov dword [esp + 0x124], 0
mov dword [esp + 0x120], 0
mov dword [esp + 0x11c], 0
call fcn.004f87c0
lea edx, [esp + 0xa0]
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, eax
push ecx
call fcn.004f82b4
mov eax, dword [esi + 0x38]
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
push pe_nt_image_headers32
push eax
call dword [edx + 0x94]
mov edx, dword [esi + 0x110]
mov al, byte [edx + ebp + 0x28a]
test al, al
je 0x5bac18
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
lea edx, [esp + 0xa0]
push edx
push 2
push eax
call dword [ecx + 0x98]
lea eax, [esp + 0xa0]
push eax
push 0
lea ecx, [esp + 0xe8]
push ecx
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe0], 0
mov dword [esp + 0xdc], 0
call fcn.004f87c0
fld dword [esp + 0x100]
fcomp dword [0x64fe74]
mov dword [esp + 0x98], 0
fld dword [esp + 0x108]
mov dword [esp + 0x94], 0
fdiv dword [esp + 0x100]
mov dword [esp + 0x90], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x9c], 0x3f800000
mov dword [esp + 0x88], 0x3f800000
mov dword [esp + 0x74], 0x3f800000
mov dword [esp + 0x60], 0x3f800000
push ecx
fld1
fpatan
fnstsw ax
test ah, 0x41
jne 0x5babdb
fsubr dword [0x64ff20]
lea edx, [esp + 0x64]
fstp dword [esp]
push edx
jmp 0x5babeb
fchs
lea eax, [esp + 0x64]
fsub dword [0x64ff20]
fstp dword [esp]
push eax
call fcn.004f8d2b
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x24]
push edx
mov eax, edx
push eax
call fcn.004f82b4
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push pe_nt_image_headers32
push eax
call dword [ecx + 0x94]
mov eax, dword [esi + 0x110]
mov ecx, dword [eax + ebp + 0x284]
test ecx, ecx
push edi
jne 0x5bad06
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
mov ecx, esi
call fcn.005b7cf0
mov eax, dword [esi + 0x110]
mov cl, byte [eax + ebp + 0x200]
test cl, cl
mov dword [esp + 0x1c], ebx
je 0x5bad1a
lea esp, [esp]
mov eax, dword [esi + 0x18]
xor edi, edi
test eax, eax
mov dword [esp + 0x18], edi
jle 0x5bacfb
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 0x110]
imul ecx, ecx, 0x2dc
lea edx, [ecx + eax + 0x100]
mov dword [esp + 0x14], edx
mov edx, eax
mov edi, edi
mov eax, dword [esp + 0x14]
mov edi, edx
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [edi]
jne 0x5bacba
test cl, cl
je 0x5bacb6
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [edi + 1]
jne 0x5bacba
add eax, 2
add edi, 2
test cl, cl
jne 0x5bac96
xor eax, eax
jmp 0x5bacbf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov edi, dword [esp + 0x18]
je 0x5bacdb
mov eax, dword [esi + 0x18]
inc edi
add edx, 0x2dc
cmp edi, eax
mov dword [esp + 0x18], edi
jl 0x5bac90
jmp 0x5bacf4
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
mov ecx, esi
call fcn.005b7cf0
mov dword [esp + 0x1c], edi
mov ebx, dword [esp + 0x128]
cmp edi, dword [esi + 0x18]
jne 0x5bac60
jmp 0x5bad1a
push ebx
mov ecx, esi
call fcn.005b6c40
test al, al
je 0x5bad1a
push ebx
mov ecx, esi
call fcn.005b8ca0
mov edx, dword [esi + 0x110]
mov eax, dword [edx + ebp + 0x280]
test eax, eax
je 0x5bad4f
push ebx
mov ecx, esi
call fcn.005b5d70
mov edx, dword [esi + 0x110]
mov edx, dword [edx + ebp + 0x2d0]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
push edx
push 0x3c
push eax
call dword [ecx + 0xc8]
mov eax, dword [esi + 0x110]
mov cl, byte [eax + ebp + 0x289]
test cl, cl
je 0x5badd9
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
lea edx, [esp + 0xa4]
push edx
push 2
push eax
call dword [ecx + 0x98]
lea eax, [esp + 0xa4]
push eax
push 0
lea ecx, [esp + 0xec]
push ecx
mov dword [esp + 0xe8], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe0], 0
call fcn.004f87c0
lea edx, [esp + 0xe4]
push edx
lea eax, [esp + 0x28]
push eax
mov ecx, eax
push ecx
call fcn.004f82b4
mov eax, dword [esi + 0x38]
mov edx, dword [eax]
lea ecx, [esp + 0x24]
push ecx
push pe_nt_image_headers32
push eax
call dword [edx + 0x94]
lea edx, [esi + 0x3c]
push edx
lea eax, [esp + 0x28]
push eax
mov ecx, eax
push ecx
call fcn.004f82b4
mov ecx, dword [esi + 0xc4]
mov eax, dword [esi + 0xc0]
mov edx, dword [esi + 0xbc]
mov dword [esi + 0x74], ecx
lea ecx, [esp + 0x24]
push ecx
mov dword [esi + 0x70], eax
mov eax, dword [esi + 0x38]
push pe_nt_image_headers32
mov dword [esi + 0x6c], edx
mov edx, dword [eax]
push eax
call dword [edx + 0x94]
mov edx, dword [esi + 0x110]
mov al, byte [edx + ebp + 0x2b8]
test al, al
mov eax, dword [esi + 0x38]
je 0x5bae3e
mov ecx, dword [eax]
push 1
push 0xe
push eax
call dword [ecx + 0xc8]
jmp 0x5bae4b
mov edx, dword [eax]
push 0
push 0xe
push eax
call dword [edx + 0xc8]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
push 1
push 0xf
push eax
call dword [ecx + 0xc8]
mov eax, dword [esi + 0x38]
mov edx, dword [eax]
push 5
push 0x19
push eax
call dword [edx + 0xc8]
mov eax, dword [esi + 0x110]
mov edi, dword [eax + ebp + 0x25c]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
push 1
push 0x16
push eax
mov dword [esp + 0x20], edi
call dword [ecx + 0xc8]
mov edx, dword [esi + 0x110]
mov eax, dword [edx + ebp + 0x25c]
mov ecx, dword [esi + 0x10c]
imul eax, eax, 0x108
mov edx, dword [eax + ecx + 0x100]
test edx, edx
je 0x5bb008
mov edx, dword [esi + 0x114]
lea ebp, [ebx + ebx*2]
shl ebp, 2
mov ecx, dword [edx + ebp + 8]
lea eax, [edx + ebp]
xor edi, edi
test ecx, ecx
jle 0x5bb13e
mov eax, dword [eax + 4]
mov ebx, dword [eax + edi*4]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
push 0
push 0
push eax
call dword [ecx + 0xf4]
imul ebx, ebx, 0x118
mov eax, dword [esi + 0x38]
mov edx, dword [eax]
mov eax, dword [esi + 0x128]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + ecx*8]
mov ecx, dword [eax + ebx + 0xc]
mov eax, dword [esi + 0x38]
push ecx
push 0
push eax
call dword [edx + 0xf4]
mov eax, dword [esi + 0x38]
mov edx, dword [eax]
push 3
push 5
push 0
push eax
call dword [edx + 0xfc]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
push 2
push 6
push 0
push eax
call dword [ecx + 0xfc]
mov eax, dword [esi + 0x38]
mov edx, dword [eax]
push 4
push 4
push 0
push eax
call dword [edx + 0xfc]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
push 1
push 4
push 1
push eax
call dword [ecx + 0xfc]
mov eax, dword [esi + 0x38]
mov edx, dword [eax]
push 3
push 2
push 0
push eax
call dword [edx + 0xfc]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
push 2
push 3
push 0
push eax
call dword [ecx + 0xfc]
mov eax, dword [esi + 0x38]
mov edx, dword [eax]
push 4
push 1
push 0
push eax
call dword [edx + 0xfc]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
push 1
push 1
push 1
push eax
call dword [ecx + 0xfc]
mov eax, dword [esi + 0x38]
mov edx, dword [eax]
mov eax, dword [esi + 0x114]
mov ecx, dword [eax + ebp]
mov eax, dword [ecx + edi*4]
mov ecx, dword [esi + 0x110]
mov ebx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
lea eax, [eax + eax*2]
add eax, dword [ebx + ecx + 0x26c]
push eax
mov eax, dword [esi + 0x38]
push 4
push eax
call dword [edx + 0x118]
mov ecx, dword [esi + 0x114]
mov edx, dword [ecx + ebp]
mov ebx, dword [esp + 0x10]
lea eax, [ecx + ebp]
mov ecx, dword [edx + edi*4]
mov edx, dword [esi + 0x114]
add ebx, ecx
mov ecx, dword [edx + ebp + 8]
inc edi
cmp edi, ecx
mov dword [esp + 0x10], ebx
jl 0x5baed1
jmp 0x5bb13e
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
push 0
push 0
push eax
call dword [ecx + 0xf4]
mov edx, dword [esi + 0x110]
mov cl, byte [edx + ebp + 0x28d]
test cl, cl
lea eax, [edx + ebp]
jne 0x5bb061
mov dl, byte [eax + 0x28c]
test dl, dl
jne 0x5bb053
mov edx, dword [esi + 0x128]
mov edx, dword [edx + edi*8]
mov edx, dword [edx + 0xc]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
push edx
push 0
push eax
call dword [ecx + 0xf4]
jmp 0x5bb089
test cl, cl
jne 0x5bb061
mov cl, byte [eax + 0x28c]
test cl, cl
je 0x5bb089
mov eax, dword [eax + 0x298]
mov edi, dword [esi + 0x12c]
imul eax, eax, 0x118
mov edi, dword [edi + ebx*8]
mov eax, dword [edi + eax + 0xc]
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
push eax
push 0
push ecx
call dword [edx + 0xf4]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
push 3
push 5
push 0
push eax
call dword [ecx + 0xfc]
mov eax, dword [esi + 0x38]
mov edx, dword [eax]
push 2
push 6
push 0
push eax
call dword [edx + 0xfc]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
push 4
push 4
push 0
push eax
call dword [ecx + 0xfc]
mov eax, dword [esi + 0x38]
mov edx, dword [eax]
push 1
push 4
push 1
push eax
call dword [edx + 0xfc]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
push 3
push 2
push 0
push eax
call dword [ecx + 0xfc]
mov eax, dword [esi + 0x38]
mov edx, dword [eax]
push 2
push 3
push 0
push eax
call dword [edx + 0xfc]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
push 4
push 1
push 0
push eax
call dword [ecx + 0xfc]
mov eax, dword [esi + 0x38]
mov edx, dword [eax]
push 1
push 1
push 1
push eax
call dword [edx + 0xfc]
mov ecx, dword [esi + 0x110]
mov edi, dword [ecx + ebp + 0x270]
mov eax, dword [esi + 0x38]
mov edx, dword [eax]
add ecx, ebp
mov ecx, dword [ecx + 0x26c]
push edi
push ecx
push 4
push eax
call dword [edx + 0x118]
mov esi, dword [esi + 0x38]
mov edx, dword [esi]
push 3
push 0x16
push esi
call dword [edx + 0xc8]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x114
ret 4