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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov ecx, dword [ebp + 0x254]
xor edi, edi
cmp ecx, edi
je 0x5ba4b9
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [ebp + 0x254], edi
mov eax, dword [ebp + 0x134]
cmp eax, edi
mov dword [ebp + 0x26c], 1
je 0x5bac0f
cmp dword [eax + 0x58], edi
je 0x5bac0f
mov eax, dword [ebp + 0x270]
cmp eax, edi
je 0x5bac0f
cmp dword [eax + 0x78], edi
je 0x5bac0f
add eax, 0x34
call fcn.0057a810
test eax, eax
jbe 0x5babe9
mov eax, dword [ebp]
mov edx, dword [eax + 0x150]
push edi
mov ecx, ebp
call edx
mov esi, dword [ebp + 0xd4]
mov ecx, dword [ebp + 0xdc]
mov edx, dword [ebp + 0xe0]
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0xd8]
push 0x70
mov dword [esp + 0x30], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
call fcn.005d2776
add esp, 4
cmp eax, edi
je 0x5ba562
call fcn.00580c60
jmp 0x5ba564
xor eax, eax
mov ecx, dword [ebp + 0x134]
mov dword [ebp + 0x254], eax
mov ecx, dword [ecx + 0x58]
mov edx, dword [ecx + 0x24]
cmp edx, edi
mov dword [esp + 0x1c], edx
je 0x5ba6de
mov ecx, dword [ecx + 0xb4]
push esi
push 4
push ecx
mov ecx, dword [ebp + 0x1c4]
push 1
push 1
push eax
mov eax, dword [ebp + 0xd0]
push edx
mov edx, dword [ebp + 0x1c0]
call fcn.005a60e0
test eax, eax
jne 0x5ba6de
mov edx, dword [ebp + 0x1c4]
mov eax, dword [ebp + 0x1c0]
push edx
push eax
mov eax, dword [ebp + 0x254]
call fcn.00580d80
mov esi, dword [ebp + 0x254]
xor eax, eax
call fcn.00580e90
push 1
push edi
xor edi, edi
lea ebx, [esp + 0x1c]
mov esi, ebp
call fcn.0059d540
test eax, eax
je 0x5ba690
mov esi, dword [esp + 0x14]
test esi, esi
je 0x5ba6a9
mov ecx, dword [ebp + 0x134]
mov edx, dword [ecx + 0x58]
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x5ba694
call fcn.0057d6f0
mov esi, eax
test esi, esi
je 0x5ba690
mov eax, dword [ebp + 0x1c0]
mov ecx, dword [ebp + 0x1c4]
mov edx, dword [esi]
mov dword [esp + 0x54], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x58], ecx
mov ecx, esi
xor ebx, ebx
call eax
mov edx, dword [esi]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x54]
sub esp, 0x10
mov dword [esp + 0x44], eax
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp + 0x254]
push ebx
lea edx, [esp + 0x40]
push edx
push eax
mov cl, 1
lea edx, [ebp + 0xd0]
mov eax, esi
call fcn.005805a0
mov esi, dword [esp + 0x14]
test esi, esi
je 0x5ba6a9
push esi
call fcn.005d28c2
add esp, 4
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x3c]
mov edx, dword [ebp + 0x134]
mov eax, dword [edx + 0x58]
mov ebx, dword [ebp + 0x254]
push ecx
mov ecx, dword [eax + 0xb4]
mov eax, dword [ebp + 0xd0]
push 4
push ecx
mov ecx, dword [esp + 0x28]
push 1
push 1
add ecx, 4
call fcn.005a6160
xor edi, edi
mov ecx, dword [ebp + 0x508]
cmp ecx, edi
je 0x5ba6f9
mov eax, dword [ebp + 0x270]
mov edx, dword [ecx]
mov eax, dword [eax + 0x18]
mov edx, dword [edx + 0x50]
push eax
call edx
mov eax, dword [ebp + 0x254]
push eax
mov ecx, ebp
call fcn.005b0be0
mov ebx, dword [ebp + 0x254]
cmp ebx, edi
je 0x5ba76f
mov eax, dword [ebp + 0x270]
cmp eax, edi
je 0x5ba76f
cmp dword [eax + 0x6c], edi
je 0x5ba76f
mov eax, dword [ebp + 0x134]
cmp eax, edi
je 0x5ba76f
mov esi, dword [eax + 0x54]
cmp esi, edi
je 0x5ba76f
mov eax, esi
call fcn.005aaee0
test eax, eax
jne 0x5ba76f
mov eax, dword [ebp + 0x510]
mov ecx, dword [ebp + 0x50c]
push ebx
push esi
call fcn.0058b410
cmp eax, edi
je 0x5ba76f
mov ecx, dword [ebp + 0x254]
mov ebx, dword [ebp + 0x510]
mov edi, dword [ebp + 0x50c]
push ecx
mov esi, eax
call fcn.0057f980
xor edi, edi
mov ecx, dword [ebp + 0x500]
cmp ecx, edi
je 0x5ba7a3
cmp dword [ebp + 0x504], edi
je 0x5ba7a3
mov edx, dword [ecx]
mov eax, dword [ebp + 0x254]
mov edx, dword [edx + 0x20]
push eax
call edx
mov ecx, dword [ebp + 0x504]
mov eax, dword [ecx]
mov edx, dword [ebp + 0x254]
mov eax, dword [eax + 0x20]
push edx
call eax
mov eax, dword [ebp + 0x270]
cmp dword [eax + 0x18], edi
je 0x5ba85f
cmp dword [ebp + 0x508], edi
jne 0x5ba85f
mov ecx, dword [eax + 0x14]
mov esi, dword [ebp + ecx*4 + 0x52c]
cmp esi, edi
je 0x5ba85f
mov edx, dword [esi + 0xc]
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x10]
push edi
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x528]
sub eax, dword [ebp + 0x520]
mov dword [esp + 0x48], edx
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [ebp + 0x51c]
lea edx, [esp + 0x44]
push edx
mov edx, dword [ebp + 0x524]
sub edx, dword [ebp + 0x51c]
push eax
mov eax, dword [ebp + 0x254]
push ecx
push eax
mov eax, dword [ebp + 0x520]
mov bl, 1
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], 0x1b
mov dword [esp + 0x6c], 1
mov dword [esp + 0x70], 0xc
mov dword [esp + 0x74], 0x14
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
call fcn.00580620
call fcn.004062c0
mov ecx, dword [0x678ec4]
cmp dword [ecx + 0xd94], edi
mov dword [0x678ec0], 1
je 0x5ba93c
mov esi, dword [ebp + 0x3bc]
cmp esi, edi
je 0x5ba93c
mov ebx, dword [ebp + 0x114]
mov eax, dword [esi + 0xc]
mov edx, dword [ebp + 0x110]
mov ecx, dword [esi + 0x10]
add ebx, 0xfffffffe
mov dword [esp + 0x30], ebx
mov ebx, dword [ebp + 0x114]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
lea edi, [edx - 8]
lea edx, [edx + eax - 8]
mov dword [esp + 0x44], eax
mov dword [esp + 0x34], edx
mov edx, dword [ebp + 0x254]
lea ebx, [ebx + ecx - 2]
lea eax, [esp + 0x2c]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x38], ebx
call fcn.005812a0
sub ebx, dword [esp + 0x30]
mov ecx, dword [ebp + 0x254]
mov edx, dword [esp + 0x34]
push 0
push 0
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x3c]
push ebx
push edi
sub edx, edi
push ecx
mov bl, 1
call fcn.00580620
mov eax, dword [esi + 0x10]
mov esi, dword [esi + 0xc]
mov ecx, dword [esp + 0x30]
add eax, ecx
add esi, edi
mov dword [ebp + 0x3ac], edi
mov dword [ebp + 0x3b0], ecx
mov dword [ebp + 0x3b4], esi
mov dword [ebp + 0x3b8], eax
mov dword [ebp + 0x3dc], 1
xor edi, edi
mov edx, dword [ebp + 0x270]
mov eax, dword [edx + 0x340]
cmp eax, edi
je 0x5ba967
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x5ba950
sub eax, edx
sar eax, 1
je 0x5ba967
push ebp
call fcn.00592090
mov eax, dword [ebp + 0x270]
cmp dword [eax + 0x3b0], edi
je 0x5ba9b0
lea esi, [ebp + 0x244]
mov eax, esi
call fcn.0057a810
test eax, eax
jbe 0x5ba9b0
mov eax, dword [ebp + 0x4e8]
mov ecx, dword [ebp + 0x4f4]
mov edx, dword [ebp + 0x4ec]
push 1
push edi
push edi
push edi
push ecx
push eax
push edx
push eax
mov eax, dword [ebp + 0x254]
push eax
call fcn.0057f6d0
add esp, 0x24
mov ebx, dword [ebp + 0x270]
mov esi, dword [ebp + 0x134]
add ebx, 0x34
cmp esi, edi
je 0x5ba9ce
call fcn.0057b9f0
mov dword [esp + 0x20], eax
jmp 0x5ba9d2
mov dword [esp + 0x20], edi
mov eax, ebx
mov dword [esp + 0x10], edi
call fcn.0057a810
test eax, eax
jle 0x5bab1b
mov edi, dword [esp + 0x10]
mov esi, ebx
call fcn.0057a830
mov ecx, dword [eax]
cmp dword [ecx + 0x18], 0
je 0x5bab19
call fcn.0057a830
mov eax, dword [eax]
test byte [eax + 0x14], 2
jne 0x5baa23
call fcn.0057a830
mov eax, dword [eax]
test byte [eax + 0x14], 4
jne 0x5baa23
lea edi, [ebp + 0x1d4]
call fcn.00577d00
jmp 0x5baa2e
lea edi, [ebp + 0x1d4]
call fcn.00577cb0
mov edi, dword [esp + 0x10]
mov esi, ebx
mov dword [esp + 0x1c], eax
call fcn.0057a830
mov eax, dword [eax]
test byte [eax + 0x14], 2
je 0x5baa51
mov edx, dword [ebp + 0x1f0]
mov dword [esp + 0x18], edx
jmp 0x5baa5b
mov eax, dword [ebp + 0x1ec]
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x10]
call fcn.0057a830
mov eax, dword [eax]
test byte [eax + 0x14], 4
je 0x5baa76
mov ecx, dword [ebp + 0x218]
mov dword [esp + 0x18], ecx
mov edi, dword [esp + 0x10]
call fcn.0057a830
mov eax, dword [eax]
test byte [eax + 0x14], 8
je 0x5baa91
mov edx, dword [ebp + 0x1ec]
mov dword [esp + 0x18], edx
mov edi, dword [esp + 0x10]
call fcn.0057a830
mov eax, dword [eax]
test byte [eax + 0x14], 0x10
je 0x5baaac
mov eax, dword [ebp + 0x1f0]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x1c], 0
je 0x5baaff
mov edi, dword [esp + 0x10]
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
call fcn.0057a830
mov dword [esp + 0x24], eax
call fcn.0057a830
mov edx, dword [esp + 0x24]
mov ecx, dword [edx]
movzx edx, byte [ecx + 0x1c]
mov ecx, dword [esp + 0x1c]
shl edx, 0x18
or edx, dword [esp + 0x18]
push edx
mov edx, dword [eax]
mov eax, dword [ebp + 0x254]
push ecx
mov ecx, dword [esp + 0x30]
push eax
add edx, 4
push ebp
call fcn.00592710
mov esi, dword [esp + 0x10]
add esi, 1
mov eax, ebx
mov dword [esp + 0x10], esi
call fcn.0057a810
cmp esi, eax
jl 0x5ba9e5
xor edi, edi
mov ecx, dword [ebp + 0x254]
push ecx
mov ecx, ebp
call fcn.005bb990
mov eax, dword [ebp + 0x270]
mov edx, dword [eax + 0x3c4]
cmp dword [edx - 0xc], edi
je 0x5bab8b
cmp dword [eax + 0x3d4], edi
je 0x5bab8b
mov ecx, edx
cmp dword [ecx - 0xc], edi
je 0x5bab8b
lea edx, [ebp + 0x46c]
cmp edx, edi
je 0x5bab8b
mov ebx, ecx
xor esi, esi
cmp dword [ebx - 0xc], edi
je 0x5bab69
cmp dword [eax + 0x3c8], edi
je 0x5bab69
mov esi, 1
movzx edi, byte [eax + 0x3d0]
shl edi, 0x18
or edi, dword [edx + 0x18]
add eax, 0x3d8
push edi
push esi
push eax
mov eax, dword [ebp + 0x254]
push eax
push ebp
call fcn.00592c20
mov edi, ebp
call fcn.005925c0
test eax, eax
je 0x5babe7
mov ecx, dword [ebp + 0x270]
mov edx, dword [ecx + 0x48]
cmp dword [edx - 0xc], 0
je 0x5babe7
lea esi, [ebp + 0x4bc]
test esi, esi
je 0x5babb7
mov esi, dword [ebp + 0x4d4]
jmp 0x5babbc
mov esi, 0x8c7a6b
mov edi, dword [esp + 0x20]
push 0xffffffffffffffff
push edi
mov edi, dword [ebp + 0x254]
push esi
push eax
mov eax, dword [ecx + 0x64]
sub eax, dword [ecx + 0x5c]
push edx
mov edx, dword [ecx + 0x68]
sub edx, dword [ecx + 0x60]
push edx
mov edx, dword [ecx + 0x60]
push eax
mov eax, dword [ecx + 0x5c]
push edx
push eax
call fcn.005aec90
xor edi, edi
mov eax, dword [ebp + 0x254]
cmp eax, edi
je 0x5bac08
cmp dword [ebp + 0x268], edi
jne 0x5bac08
mov ecx, dword [0x680794]
push ecx
push eax
call fcn.00580200
mov ecx, ebp
call fcn.00591ab0
pop edi
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 4