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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48bebb
push eax
mov dword fs:[0], esp
sub esp, 0x100
cmp dword [0x49d328], 0
push ebx
push esi
push edi
je 0x5ba38e
cmp dword [0x4a0bb0], 0
jne 0x5ba38e
mov ecx, dword [0x4a1344]
mov ebx, dword [0x4a0bc4]
xor eax, eax
mov dword [esp + 0x24], ecx
test ecx, ecx
jle 0x5ba066
lea edx, [ebx + 4]
mov esi, dword [ebp + 0xc]
cmp dword [edx], esi
je 0x5ba066
inc eax
add edx, 0xc
cmp eax, ecx
jl 0x5ba057
cmp eax, ecx
je 0x5ba38e
mov ecx, dword [0x49d334]
lea eax, [eax + eax*2]
mov esi, dword [ebx + eax*4]
lea ebx, [ebx + eax*4]
mov eax, dword [0x4a0b94]
mov dword [esp + 0x14], esi
cmp eax, ecx
jl 0x5ba0a6
add ecx, 2
cmp eax, ecx
jge 0x5ba38e
mov ecx, dword [esi + 4]
mov al, byte [ecx]
cmp al, 0xd8
je 0x5ba0a6
cmp al, 0xd3
jne 0x5ba38e
mov dx, word [ebx + 8]
cmp dx, word [ebx + 0xa]
jge 0x5ba38e
mov eax, dword [0x49d3c8]
cmp dword [eax + 0x2c], 0
jg 0x5ba38e
mov ecx, dword [0x4a13a4]
mov edi, 1
push edi
call fcn.005b8630
push 0x7f
push eax
lea ecx, [esp + 0x90]
push ecx
call fcn.00631ce0
mov byte [esp + 0x113], 0
mov edx, dword [esi + 4]
movzx eax, byte [edx]
add esp, 0xc
push eax
push 0
push 0
mov al, 1
call fcn.005ba3b0
mov eax, dword [ebp + 8]
add esp, 0xc
call fcn.0061f9d0
mov esi, dword [0x49d3c8]
mov dword [esi + 0xa0], eax
test eax, eax
je 0x5ba186
mov edi, eax
call fcn.005b86d0
mov edi, eax
test edi, edi
je 0x5ba181
mov ecx, dword [edi + 8]
mov eax, dword [ebp + 8]
mov dword [esi + 0x44], ecx
mov edx, dword [edi + 8]
push eax
mov dword [esi + 0x4c], edx
call dword [fcn.0048d614]
lea esi, [eax - 3]
cmp esi, dword [edi + 0xc]
jb 0x5ba15f
mov ecx, dword [ebp + 8]
push ecx
call dword [fcn.0048d610]
test eax, eax
je 0x5ba15f
push eax
call dword [fcn.0048d614]
lea esi, [eax - 3]
mov edi, dword [edi + 0xc]
mov eax, esi
cmp esi, edi
jb 0x5ba16d
mov eax, 0x2af8
mov esi, dword [0x49d3c8]
cmp eax, edi
mov edi, 1
jae 0x5ba186
mov dword [esi + 0x48], eax
jmp 0x5ba186
mov edi, 1
mov eax, dword [ebp + 0x18]
xor ecx, ecx
cmp eax, ecx
je 0x5ba1a1
mov edx, dword [eax + 0x14]
mov dword [esi + 0x3c], edx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x40], edx
mov eax, dword [eax + 0x10]
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 0x10]
lea edx, [esp + 0x48]
mov dword [esp + 0x38], edx
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x14]
lea edx, [esp + 0x58]
mov dword [esp + 0x3c], edx
cdq
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x68]
mov dword [esp + 0x40], eax
mov dword [esp + 0x68], edx
mov edx, dword [ebp + 8]
lea eax, [esp + 0x78]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x60], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x80], edi
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ecx
call dword [fcn.0048d2e4]
xor esi, esi
mov dword [0x4a3104], eax
mov dword [0x4a3100], eax
add word [ebx + 8], di
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
push esi
push 4
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
mov dword [esp + 0x128], esi
mov ecx, dword [esp + 0x28]
push eax
push ecx
call fcn.00606060
test al, al
je 0x5ba28c
lea ecx, [esp + 0x28]
call fcn.005fcc90
test eax, eax
sete al
mov byte [esp + 0x13], al
test al, al
je 0x5ba277
push esi
lea ecx, [esp + 0x2c]
call fcn.005fccf0
mov edx, dword [ebp + 0x1c]
add esp, 4
mov dword [edx], eax
cmp dword [esp + 0x30], 5
jne 0x5ba291
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x5ba291
mov byte [esp + 0x13], 0
mov dword [esp + 0x114], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x5ba2b7
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
call fcn.0061e4b0
add esp, 0xc
mov ecx, dword [0x4a13a4]
sub dword [0x4a0b94], edi
sub dword [0x49d3c8], 0xd8
push edi
push esi
push 0xffffffffffffffff
lea eax, [esp + 0x94]
push eax
call fcn.0061dcb0
push esi
mov eax, 0x4a2c18
call fcn.005cba20
mov ecx, dword [0x4a1344]
cmp ecx, dword [esp + 0x24]
jl 0x5ba324
mov edx, dword [ebp + 0xc]
cmp dword [ebx + 4], edx
jne 0x5ba324
movzx eax, word [ebx + 8]
cmp ax, si
je 0x5ba375
dec eax
mov word [ebx + 8], ax
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp ecx, esi
jle 0x5ba375
mov edx, dword [0x4a0bc4]
add edx, 4
mov ebx, dword [ebp + 0xc]
cmp dword [edx], ebx
je 0x5ba35c
add eax, edi
add edx, 0xc
cmp eax, ecx
jl 0x5ba333
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4a0bc4]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4 + 8]
movzx ecx, word [eax]
cmp cx, si
je 0x5ba375
dec ecx
mov word [eax], cx
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret