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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x30]
cmp eax, dword [ecx + 8]
jbe 0x4ba9d7
sub esp, 0xb0
xor ebx, ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
xor ebx, ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ebx
call fcn.004ba180
mov edx, dword [esp + 0xb4]
mov edi, dword [esp]
mov esi, dword [esp + 4]
mov ebp, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], eax
cmp eax, 0
je 0x4ba61f
xor ebx, ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], ecx
add esp, 0xb0
ret
xor ebx, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x84], edi
mov ecx, edi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x80], ebp
xor edi, edi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x78], ecx
mov esi, ecx
mov ebp, dword [esp + 0x24]
cmp edi, ebp
jge 0x4ba695
mov dword [esp + 0x2c], esi
mov eax, dword [esi]
mov dword [esp + 0x28], edi
mov ecx, dword [eax + 4]
mov dword [esp + 0x20], ecx
cmp ecx, 0
jne 0x4ba680
mov ecx, dword [eax + 0x48]
mov dword [esp + 0x20], ecx
cmp edx, 0
je 0x4ba6cd
cmp ecx, edx
je 0x4ba6cd
add esi, 4
inc edi
mov ebp, dword [esp + 0x24]
cmp edi, ebp
jl 0x4ba663
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0xb8], ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0xbc], ebx
mov ebx, dword [esp + 0x44]
mov dword [esp + 0xc0], ebx
xor ebx, ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ebx
add esp, 0xb0
ret
mov dword [esp + 0x30], eax
mov eax, dword [eax + 0x28]
cmp eax, 0
je 0x4ba9d0
mov edx, 0x2710
mov ecx, 0x2710
mov dword [esp + 0x6c], eax
mov dword [esp], eax
mov dword [esp + 0x70], edx
mov dword [esp + 4], edx
mov dword [esp + 0x74], ecx
mov dword [esp + 8], ecx
call fcn.00457030
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
xor ebx, ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], eax
mov ebp, dword [ecx + 0x44]
cmp ebp, 1
jne 0x4ba77b
mov ebx, dword [esp + 0xac]
or ebx, 1
mov dword [esp + 0xac], ebx
mov ebp, dword [ecx + 0x40]
cmp ebp, 0x18
ja 0x4ba989
cmp ebp, 9
ja 0x4ba94f
cmp ebp, 6
jne 0x4ba941
mov ebx, dword [esp + 0xac]
or ebx, 0x12
mov dword [esp + 0xac], ebx
mov ebp, dword [ecx + 0x3c]
cmp ebp, 0xffffffff
jne 0x4ba932
mov eax, 0xffffffff
mov dword [esp + 0x94], eax
mov ebp, dword [ecx + 0x34]
cmp ebp, 0
jbe 0x4ba887
mov dword [esp], 0x5c5000
mov ebp, dword [ecx + 0x34]
xor edx, edx
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov ebp, dword [ecx + 0x34]
xor ecx, ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ecx
call fcn.0043cbf0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
mov ebp, dword [esp + 0x30]
cmp ebp, 0
je 0x4ba92a
add ebp, 0x2c
cmp ebp, 0
je 0x4ba922
mov edx, 8
mov ecx, 8
mov edi, dword [esp + 0xa0]
mov eax, dword [esp + 0xa4]
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x4c], edx
cmp edx, eax
jge 0x4ba86f
mov eax, edx
mov dword [esp + 0x60], edi
mov dword [esp], edi
mov dword [esp + 0x48], ebp
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
call fcn.004540c0
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, ebx
inc ebx
cmp ebx, edx
ja 0x4ba8e6
mov dword [esp + 0x40], ebx
mov ebx, ecx
mov ebp, eax
imul ebp, ebp, 0x20
add ebx, ebp
lea ebp, [esp + 0x90]
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov ebp, 0x5dee00
mov dword [esp], ebp
call fcn.0040fdf0
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0xb4]
mov eax, dword [esp + 0x90]
cmp eax, edx
je 0x4ba695
jmp 0x4ba689
mov dword [esp], 0x5dee00
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
call fcn.0043cd90
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, ebx
inc ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], edx
mov dword [esp + 0x3c], ecx
jmp 0x4ba89e
mov dword [ebp], eax
jmp 0x4ba82e
mov dword [ebp], eax
jmp 0x4ba822
mov ebp, dword [ecx + 0x3c]
mov dword [esp + 0x94], ebp
jmp 0x4ba7c2
cmp ebp, 9
je 0x4ba799
jmp 0x4ba7aa
cmp ebp, 0x17
jne 0x4ba96a
mov ebx, dword [esp + 0xac]
or ebx, 0x18
mov dword [esp + 0xac], ebx
jmp 0x4ba7aa
cmp ebp, 0x18
jne 0x4ba7aa
mov ebx, dword [esp + 0xac]
or ebx, 0x14
mov dword [esp + 0xac], ebx
jmp 0x4ba7aa
cmp ebp, 0x47
ja 0x4ba9b7
cmp ebp, 0x25
jne 0x4ba9a9
mov ebx, dword [esp + 0xac]
or ebx, 0x1a
mov dword [esp + 0xac], ebx
jmp 0x4ba7aa
cmp ebp, 0x47
je 0x4ba799
jmp 0x4ba7aa
cmp ebp, 0x83
je 0x4ba954
cmp ebp, 0x90
je 0x4ba799
jmp 0x4ba7aa
mov dword [eax], eax
jmp 0x4ba6dd
call fcn.004518d0
jmp fcn.004ba580