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

Disassembly:
mov ecx, dword [0x90eeac]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4ba9d6
sub esp, 0x6c
mov edx, dword [esp + 0x80]
lea ebx, [edx + 1]
mov ebp, dword [esp + 0x84]
xor eax, eax
jmp 0x4ba4f5
mov esi, dword [esp + 0x34]
lea eax, [esi + 1]
mov ebx, ecx
cmp eax, 5
jge 0x4ba5df
mov dword [esp + 0x34], eax
jmp 0x4ba5ec
cmp ebp, ebx
je 0x4ba6e8
sub ebp, edx
cmp ebp, 0x32
jl 0x4ba6dc
mov ecx, dword [esp + 0x78]
cmp ecx, ebx
jbe 0x4ba9c0
lea ebp, [ebx - 1]
mov edi, dword [esp + 0x74]
lea eax, [edi + ebx*8]
mov esi, dword [eax + 4]
cmp ecx, ebp
jbe 0x4ba9b9
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], esi
lea ecx, [edi + ebx*8 + 4]
lea ebp, [edi + ebx*8 - 8]
mov dword [esp + 0x68], ebp
mov esi, dword [ebp + 4]
lea edi, [edi + ebx*8 - 4]
mov dword [esp + 0x64], edi
mov ebp, dword [ebp]
mov edi, dword [eax]
mov dword [ecx], esi
mov esi, dword [0x90f128]
mov ecx, ebx
sub ebx, edx
test esi, esi
je 0x4ba596
mov esi, edi
call fcn.00471490
mov dword [edi], ebp
mov edx, dword [eax]
mov dword [edi + 4], edx
mov dword [edi + 8], esi
mov edx, dword [esp + 0x68]
mov ecx, dword [edx]
mov dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x80]
mov edi, esi
mov dword [eax], ebp
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x64]
mov dword [esi], ebp
mov ebp, dword [esp + 0x68]
mov dword [ebp], edi
cmp ebx, 2
jl 0x4ba5b7
mov eax, dword [esp + 0x40]
jmp 0x4ba895
mov ebx, dword [esp + 0x84]
mov ebp, ebx
sub ebx, ecx
cmp ebx, 2
jl 0x4ba4ec
lea ebx, [ecx + 1]
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x70]
jmp 0x4ba724
mov byte [esp + 0x88], 0
add esp, 0x6c
ret
inc ebx
mov dword [esp + 0x38], ebx
cmp ebp, ebx
jg 0x4ba5fb
xor ecx, ecx
jmp 0x4ba6cf
mov ecx, dword [esp + 0x78]
cmp ecx, ebx
jbe 0x4ba9ce
lea esi, [ebx - 1]
mov edi, dword [esp + 0x74]
lea eax, [edi + ebx*8]
cmp ecx, esi
jbe 0x4ba9c7
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx]
test byte [edx], al
mov edx, dword [eax]
mov dword [esp + 0x58], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
lea ebp, [edi + ebx*8 - 8]
mov esi, dword [ebp]
mov dword [esp + 0x4c], esi
mov ebp, dword [ebp + 4]
mov dword [esp + 0x1c], ebp
mov dword [esp], edx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.00402430
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
je 0x4ba687
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 8], ecx
call fcn.00402430
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
jne 0x4ba687
mov eax, 1
jmp 0x4ba6b4
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
call fcn.00402340
mov eax, dword [esp + 0x10]
test eax, eax
setl al
xor eax, 1
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x84]
mov ecx, eax
mov eax, dword [esp + 0x34]
test cl, cl
jne 0x4ba5eb
jmp 0x4ba507
mov byte [esp + 0x88], 0
add esp, 0x6c
ret
mov byte [esp + 0x88], 1
add esp, 0x6c
ret
mov dword [ebp], ecx
mov dword [ebx], edx
mov eax, dword [esp + 0x5c]
mov dword [esi], eax
mov eax, dword [esp + 0x2c]
lea ebx, [eax + 1]
mov ebp, dword [esp + 0x84]
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x80]
cmp ebp, ebx
jle 0x4ba4ec
cmp edi, ebx
jbe 0x4ba86f
lea edx, [ebx - 1]
lea ecx, [esi + ebx*8]
cmp edi, edx
jbe 0x4ba866
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x68], ecx
mov edx, dword [eax]
test byte [edx], al
mov edx, dword [ecx]
mov dword [esp + 0x50], edx
mov ebp, dword [ecx + 4]
mov dword [esp + 0x20], ebp
lea edi, [esi + ebx*8 - 8]
mov dword [esp + 0x60], edi
mov eax, dword [edi]
mov dword [esp + 0x44], eax
mov ecx, dword [edi + 4]
mov dword [esp + 0x14], ecx
mov dword [esp], edx
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
call fcn.00402430
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
je 0x4ba7b7
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 8], ecx
call fcn.00402430
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
jne 0x4ba7b7
mov eax, 1
jmp 0x4ba7e4
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
call fcn.00402340
mov eax, dword [esp + 0x10]
test eax, eax
setl al
test al, al
je 0x4ba843
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x74]
lea ebp, [ebx + edx*8 + 4]
mov esi, dword [esp + 0x60]
mov edi, dword [esi + 4]
mov eax, ebp
mov ebp, dword [esp + 0x68]
mov ecx, dword [ebp]
mov dword [esp + 0x5c], ecx
lea ebx, [ebx + edx*8 - 4]
mov edx, dword [ebp + 4]
mov ecx, dword [esi]
mov dword [eax], edi
mov edi, dword [0x90f128]
test edi, edi
je 0x4ba6f4
call fcn.00471490
mov dword [edi], ecx
mov eax, dword [ebp]
mov dword [edi + 4], eax
mov eax, edx
mov edx, dword [esp + 0x5c]
mov dword [edi + 8], edx
mov edx, dword [esi]
mov dword [edi + 0xc], edx
mov edx, eax
jmp 0x4ba6f4
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x80]
mov ebp, dword [esp + 0x84]
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
jmp 0x4ba4ec
mov eax, edx
mov ecx, edi
call fcn.004714e0
mov eax, ebx
mov ecx, edi
call fcn.004714e0
mov dword [ebp], ecx
mov dword [ebx], edx
mov ebx, dword [esp + 0x5c]
mov dword [esi], ebx
mov ebx, dword [esp + 0x30]
lea eax, [ebx - 1]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x80]
test eax, eax
jle 0x4ba5b7
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx]
test byte [edx], al
mov edx, dword [esp + 0x74]
lea ebx, [edx + eax*8]
mov dword [esp + 0x68], ebx
mov ebp, dword [ebx]
mov dword [esp + 0x54], ebp
mov esi, dword [ebx + 4]
mov dword [esp + 0x24], esi
lea edi, [edx + eax*8 - 8]
mov dword [esp + 0x60], edi
mov ecx, dword [edi]
mov dword [esp + 0x48], ecx
mov ebx, dword [edi + 4]
mov dword [esp + 0x18], ebx
mov dword [esp], ebp
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
call fcn.00402430
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
je 0x4ba91d
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 8], ecx
call fcn.00402430
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
jne 0x4ba91d
mov eax, 1
jmp 0x4ba94a
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], eax
call fcn.00402340
mov eax, dword [esp + 0x10]
test eax, eax
setl al
test al, al
je 0x4ba9a9
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x74]
lea ebp, [ebx + edx*8 + 4]
mov esi, dword [esp + 0x60]
mov edi, dword [esi + 4]
mov eax, ebp
mov ebp, dword [esp + 0x68]
mov ecx, dword [ebp]
mov dword [esp + 0x5c], ecx
lea ebx, [ebx + edx*8 - 4]
mov edx, dword [ebp + 4]
mov ecx, dword [esi]
mov dword [eax], edi
mov edi, dword [0x90f128]
test edi, edi
je 0x4ba878
call fcn.00471490
mov dword [edi], ecx
mov eax, dword [ebp]
mov dword [edi + 4], eax
mov eax, edx
mov edx, dword [esp + 0x5c]
mov dword [edi + 8], edx
mov edx, dword [esi]
mov dword [edi + 0xc], edx
mov edx, eax
jmp 0x4ba878
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x80]
jmp 0x4ba5b7
mov eax, ebp
call fcn.004714e0
mov eax, ebx
call fcn.004714e0
mov eax, esi
call fcn.004714e0
mov eax, ebx
call fcn.004714e0
nop
call fcn.00470060
jmp fcn.004ba4c0