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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4ba834
sub esp, 0x7c
mov eax, dword [esp + 0x88]
movzx ecx, byte [eax]
test cl, cl
je 0x4ba552
mov byte [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
nop
lea ecx, [esp + 0x4c]
cmp eax, ecx
je 0x4ba536
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
test edx, edx
jg 0x4ba7ac
mov ebx, edx
xor ebp, ebp
xor esi, esi
cmp edx, ebx
jle 0x4ba7a5
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], edx
mov dword [esp + 0x38], esi
cmp esi, ecx
je 0x4ba510
mov dword [esp], esi
mov dword [esp + 4], ecx
shl ebx, 2
mov dword [esp + 8], ebx
call fcn.004568a0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x88]
movzx eax, byte [eax]
mov byte [esp + 0x4c], al
mov eax, dword [esp + 0x54]
test eax, eax
jle 0x4ba79e
movzx eax, byte [esp + 0x4c]
xor eax, 1
mov byte [esp + 0x4c], al
lea eax, [esp + 0x4c]
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0x84]
movzx edx, byte [ecx]
test dl, dl
jne 0x4ba75d
mov byte [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov byte [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
lea edx, [esp + 0x6c]
mov dword [esp], edx
lea ebx, [esp + 0x3c]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.004b8a60
lea eax, [esp + 0x6c]
mov dword [esp], eax
mov eax, dword [0x5fdc8c]
mov dword [esp + 4], eax
call fcn.004b8590
mov eax, dword [esp + 8]
test eax, eax
jne 0x4ba74e
movzx ecx, byte [esp + 0x3c]
test cl, cl
jne 0x4ba720
nop
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x3c]
cmp ecx, edx
je 0x4ba719
mov edx, dword [ecx + 4]
mov ebx, dword [ecx + 0xc]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
cmp esi, ebx
jg 0x4ba691
mov eax, esi
cmp esi, eax
jle 0x4ba68d
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x38], edx
cmp edx, ebp
je 0x4ba647
mov dword [esp], edx
mov dword [esp + 4], ebp
shl eax, 2
mov dword [esp + 8], eax
call fcn.004568a0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x80]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x20]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x613370]
test ecx, ecx
jne 0x4ba67f
mov eax, dword [esp + 0x38]
mov dword [edx + 4], eax
movzx eax, byte [esp + 0x3c]
mov byte [edx], al
mov dword [esp + 0x8c], edx
add esp, 0x7c
ret
lea edi, [edx + 4]
mov eax, dword [esp + 0x38]
call fcn.00455f20
jmp 0x4ba66d
mov eax, esi
jmp 0x4ba624
mov dword [esp + 0x34], ebp
mov dword [esp + 0x2c], esi
cmp esi, 1
jne 0x4ba6de
lea eax, [0x4ff980]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.004400f0
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x80]
mov ebp, dword [esp + 0x34]
mov ebx, 1
mov esi, 1
jmp 0x4ba620
lea eax, [0x4ff980]
mov dword [esp], eax
mov dword [esp + 4], esi
lea eax, [esi + 4]
mov dword [esp + 0x20], eax
mov dword [esp + 8], eax
call fcn.004400f0
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x80]
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x20]
mov esi, eax
jmp 0x4ba620
mov edx, ecx
jmp 0x4ba674
mov eax, dword [esp + 0x80]
mov dword [esp], eax
lea ecx, [esp + 0x3c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 8], ecx
call fcn.004b7b90
mov edx, dword [esp + 0x80]
jmp 0x4ba674
mov dword [esp + 0x8c], 0
add esp, 0x7c
ret
mov byte [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
lea edx, [esp + 0x5c]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004b8390
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x88]
jmp 0x4ba56b
xor eax, eax
jmp 0x4ba54a
mov ebx, edx
jmp 0x4ba4ed
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], edx
cmp edx, 1
jne 0x4ba7f9
lea eax, [0x4ff980]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.004400f0
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x28]
mov ebp, 1
mov edx, 1
jmp 0x4ba4e5
lea eax, [0x4ff980]
mov dword [esp], eax
mov dword [esp + 4], edx
lea ecx, [edx + 4]
mov dword [esp + 0x24], ecx
mov dword [esp + 8], ecx
call fcn.004400f0
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov edx, ebx
jmp 0x4ba4e5
call fcn.004546e0
jmp fcn.004ba480