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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x18], edx
mov edi, eax
xor eax, eax
push ebp
push 0x5bae0c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
lea eax, [edi + 0xad]
mov ecx, 4
call fcn.0040310c
lea edx, [ebp - 0x10]
lea eax, [edi + 0xb1]
mov ecx, 8
call fcn.0040310c
lea edx, [ebp - 0x12]
lea eax, [edi + 0xb9]
mov ecx, 2
call fcn.0040310c
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp edx, dword [edi + 0x2c24]
jne 0x5ba908
cmp eax, dword [edi + 0x2c20]
jb 0x5ba918
jmp 0x5ba90a
jl 0x5ba918
mov dl, 5
mov eax, edi
call fcn.005bb3c0
jmp 0x5bade1
mov eax, dword [edi + 0x27a8]
cmp eax, 0x23
jle 0x5ba993
mov bl, 1
mov edx, eax
sub edx, 0x23
lea eax, [ebp - 0x18]
call fcn.0040566c
mov eax, dword [ebp - 0x18]
call fcn.004052e0
push eax
lea eax, [ebp - 0x18]
call fcn.00405538
mov edx, eax
lea eax, [edi + 0xbb]
pop ecx
call fcn.0040310c
lea ecx, [ebp - 0x21]
mov edx, dword [ebp - 0x18]
mov eax, edi
call fcn.005bb460
cmp byte [ebp - 0x21], 0
je 0x5ba995
mov eax, edi
call fcn.005bae3c
mov dword [ebp - 0x1c], eax
push 0x1c
lea eax, [edi + 0x7c]
push eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [edi + 0x98]
push eax
mov eax, dword [edi + 0x78]
push eax
mov eax, dword [0x604eec]
mov eax, dword [eax]
call eax
jmp 0x5bade1
xor ebx, ebx
mov eax, dword [edi + 0x80]
mov dword [edi + 0x2c28], eax
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.005bb3ec
mov esi, eax
test esi, esi
jne 0x5bacac
test bl, bl
jne 0x5ba9c7
mov dl, 2
mov eax, edi
call fcn.005bb3c0
jmp 0x5bade1
mov eax, edi
call fcn.005b79e4
cmp eax, dword [edi + 0x44]
jb 0x5baa37
mov eax, edi
call 0x5b6910
test al, al
jne 0x5baa37
mov eax, dword [edi + 0x2c64]
xor edx, edx
cmp edx, dword [edi + 0x2c24]
jne 0x5ba9f8
cmp eax, dword [edi + 0x2c20]
jae 0x5baa37
jmp 0x5ba9fa
jge 0x5baa37
mov byte [edi + 0x98], 0x20
mov dword [ebp - 0x1c], 0x21
lea edx, [ebp - 0x1c]
mov eax, edi
call fcn.005bb05c
push 0x1c
lea eax, [edi + 0x7c]
push eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [edi + 0x98]
push eax
mov eax, dword [edi + 0x78]
push eax
mov eax, dword [0x604eec]
mov eax, dword [eax]
call eax
jmp 0x5bade1
lea edx, [ebp - 0x28]
mov eax, dword [edi + 0x2c18]
call fcn.004dc728
mov eax, dword [ebp - 0x28]
xor edx, edx
call fcn.005fa5c4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x5baa66
mov dl, 3
mov eax, edi
call fcn.005bb3c0
jmp 0x5bade1
cmp word [ebp - 0x12], 0
jne 0x5baa75
mov word [ebp - 0x12], 0x2000
jmp 0x5baa83
cmp word [ebp - 0x12], 0x2000
jbe 0x5baa83
mov word [ebp - 0x12], 0x2000
mov ecx, dword [edi + 0x27b0]
mov dl, 1
mov eax, dword [0x5f6fe4]
call fcn.005f83dc
mov esi, eax
mov byte [esi + 0x4a], 1
mov byte [esi + 0xa4], 1
mov eax, dword [edi + 0x27b0]
mov dword [esi + 0x50], eax
lea eax, [esi + 0x1c]
call fcn.00405010
mov eax, dword [ebp - 4]
mov dword [esi + 0x4c], eax
lea eax, [esi + 0xc]
mov edx, dword [edi + 0x2c18]
call fcn.00405064
mov ax, word [edi + 0x2c1c]
mov word [esi + 0x10], ax
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x2c3c]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x2c48]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x2c30]
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [esi + 0x98], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x60], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x64], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x68], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x68]
mov dword [esi + 0x90], eax
mov eax, dword [esi + 0x6c]
mov dword [esi + 0x94], eax
lea eax, [esi + 0x34]
mov edx, dword [edi + 0x2c50]
call fcn.00405064
mov al, byte [edi + 0x2c38]
mov byte [esi + 0x20], al
mov ax, word [edi + 0x2c4c]
mov word [esi + 0x4b4], ax
mov eax, dword [edi + 0x2c40]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x2c44]
test eax, eax
jne 0x5bab66
mov dword [esi + 0x28], 1
jmp 0x5bab69
mov dword [esi + 0x28], eax
mov al, byte [edi + 0x2c61]
mov byte [esi + 0xa5], al
mov ax, word [edi + 0x2c36]
mov word [esi + 0x40], ax
mov eax, dword [edi + 0x2c2c]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x2c28]
mov dword [esi + 0x44], eax
mov ax, word [edi + 0x2c34]
mov word [esi + 0x48], ax
mov eax, dword [edi + 0x2bfc]
call fcn.004052e0
test eax, eax
jne 0x5babfa
push 0x5bae24
mov eax, 0xff
call fcn.00403944
lea ecx, [ebp - 0x2c]
mov edx, 2
call fcn.0040c98c
push dword [ebp - 0x2c]
mov eax, 0xff
call fcn.00403944
lea ecx, [ebp - 0x30]
mov edx, 2
call fcn.0040c98c
push dword [ebp - 0x30]
push 0x5bae34
lea eax, [edi + 0x2bfc]
mov edx, 4
call fcn.004053a0
lea eax, [esi + 0x14]
mov edx, dword [edi + 0x2bfc]
call fcn.00405064
mov dl, 1
mov eax, dword [edi + 0x2bfc]
call fcn.005f3360
mov word [esi + 0x18], ax
mov eax, dword [edi + 0x2c20]
mov dword [esi + 0x80], eax
mov eax, dword [edi + 0x2c24]
mov dword [esi + 0x84], eax
push dword [edi + 0x2c24]
push dword [edi + 0x2c20]
call 0x503374
xor edx, edx
add eax, dword [esi + 0x68]
adc edx, dword [esi + 0x6c]
sub eax, 1
sbb edx, 0
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], edx
mov eax, dword [esi + 0x70]
mov edx, dword [esi + 0x74]
sub eax, dword [esi + 0x68]
sbb edx, dword [esi + 0x6c]
add eax, 1
adc edx, 0
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], edx
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov edx, esi
mov eax, dword [edi + 0x5c]
call fcn.0049f414
push edi
push 0x5bc390
mov eax, edi
call fcn.00427474
jmp 0x5bad31
cmp word [ebp - 0x12], 0
jne 0x5bacbb
mov word [ebp - 0x12], 0x2000
jmp 0x5bacc9
cmp word [ebp - 0x12], 0x2000
jbe 0x5bacc9
mov word [ebp - 0x12], 0x2000
mov eax, dword [edi + 0x27b0]
mov dword [esi + 0x50], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x60], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x70]
mov edx, dword [esi + 0x74]
add eax, 0x2000
adc edx, 0
cmp edx, dword [esi + 0x74]
jne 0x5bacf8
cmp eax, dword [esi + 0x70]
jbe 0x5bad31
jmp 0x5bacfa
jle 0x5bad31
push dword [esi + 0x84]
push dword [esi + 0x80]
call 0x503374
xor edx, edx
add eax, dword [esi + 0x70]
adc edx, dword [esi + 0x74]
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], edx
mov eax, dword [esi + 0x70]
mov edx, dword [esi + 0x74]
sub eax, dword [esi + 0x68]
sbb edx, dword [esi + 0x6c]
add eax, 1
adc edx, 0
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], edx
push dword [esi + 0x64]
push dword [esi + 0x60]
xor edx, edx
mov eax, dword [esi + 8]
call fcn.005f8c1c
push 0
push 0
mov edx, 1
mov eax, dword [esi + 8]
call fcn.005f8c1c
cmp edx, dword [esi + 0x64]
jne 0x5bad5a
cmp eax, dword [esi + 0x60]
je 0x5bad67
mov dl, 4
mov eax, edi
call fcn.005bb3c0
jmp 0x5bade1
mov eax, dword [esi + 8]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
movzx eax, word [ebp - 0x12]
xor edx, edx
add eax, dword [esi + 0x60]
adc edx, dword [esi + 0x64]
cmp edx, dword [esp + 4]
jne 0x5bad8b
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x5bad9e
jmp 0x5bad8f
pop edx
pop eax
jle 0x5bad9e
mov eax, dword [esi + 8]
mov edx, dword [eax]
call dword [edx]
sub ax, word [esi + 0x60]
mov word [ebp - 0x12], ax
cmp word [ebp - 0x12], 0
jne 0x5badb0
mov dl, 4
mov eax, edi
call fcn.005bb3c0
jmp 0x5bade1
push ebx
movzx ecx, word [ebp - 0x12]
mov edx, esi
mov eax, edi
call fcn.005bb208
mov dword [ebp - 0x1c], eax
push 0x1c
lea eax, [edi + 0x7c]
push eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [edi + 0x98]
push eax
mov eax, dword [edi + 0x78]
push eax
mov eax, dword [0x604eec]
mov eax, dword [eax]
call eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bae13
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00405034
lea eax, [ebp - 0x28]
call fcn.00405700
lea eax, [ebp - 0x18]
call fcn.00405010
ret