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

Disassembly:
push 0xffffffffffffffff
push 0x5ab5da
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor ecx, ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x80], ecx
mov edi, dword [esp + 0x88]
mov esi, dword [edi + 0x3c]
mov ebp, dword [edi + 0x40]
sub ebp, esi
mov eax, 0xb21642c9
imul ebp
add edx, ebp
sar edx, 7
mov eax, edx
shr eax, 0x1f
xor ebx, ebx
add eax, edx
je 0x4ba56c
xor ebp, ebp
jmp 0x4ba4e0
mov edx, dword [esi + ebp + 0xa4]
shr edx, 0xd
test dl, 1
je 0x4ba540
mov eax, dword [esi + ebp + 0xb0]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x4c]
lea edi, [esp + 0x68]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ebx
call fcn.00518930
mov ecx, dword [esp + 0x88]
mov eax, dword [ecx + 0x3c]
mov edx, dword [eax + ebp + 0xb4]
lea eax, [esp + 0x40]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 1
mov dword [esp + 0x48], ebx
call fcn.00518930
mov edi, dword [esp + 0x88]
mov esi, dword [edi + 0x3c]
mov ecx, dword [edi + 0x40]
sub ecx, esi
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
add ebp, 0xb8
xor ecx, ecx
cmp ebx, eax
jb 0x4ba4e0
mov edx, dword [edi + 0x30]
mov ebx, 2
lea eax, [esp + 0x4c]
lea edi, [esp + 0x68]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ecx
call fcn.00518930
mov esi, dword [esp + 0x6c]
mov ebp, dword [esp + 0x68]
cmp ebp, esi
je 0x4ba5a0
mov edi, ebp
call fcn.004bebc0
mov edi, dword [esp + 0x88]
mov eax, dword [edi + 0xf4]
shr eax, 0xd
test al, 1
je 0x4ba5c0
mov cl, byte [edi + 0xf0]
mov byte [esp + 0x17], cl
jmp 0x4ba5da
mov eax, dword [edi + 0xf8]
test eax, eax
je 0x4ba5d5
call fcn.004880f0
mov byte [esp + 0x17], al
jmp 0x4ba5da
mov byte [esp + 0x17], 0
xor eax, eax
push 0x14
mov dword [esp + 0x1c], eax
mov dword [esp + 0x64], eax
call fcn.00548a50
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x4ba8b8
mov dword [esp + 0x5c], eax
mov dword [eax], eax
mov eax, dword [esp + 0x5c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [eax + 8], eax
mov edx, dword [esp + 0x5c]
mov byte [edx + 0x10], 1
mov eax, dword [esp + 0x5c]
mov byte [eax + 0x11], 1
sub esi, ebp
mov eax, 0x2aaaaaab
imul esi
mov byte [esp + 0x80], bl
sar edx, 1
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebx
je 0x4ba834
add ebp, 8
mov ecx, dword [ebp - 8]
mov edx, dword [esp + 0x18]
cmp edx, ecx
jge 0x4ba682
mov edi, dword [esp + 0x8c]
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov cl, byte [esp + 0x17]
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], edx
mov byte [esp + 0x54], cl
call fcn.004be1c0
mov edi, dword [esp + 0x88]
mov eax, dword [ebp - 4]
sub eax, 0
mov edx, dword [ebp - 8]
mov dword [esp + 0x18], edx
je 0x4ba792
dec eax
jne 0x4ba81c
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x5c]
push ecx
mov eax, ebp
call fcn.004be740
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push edx
push eax
lea esi, [esp + 0x2c]
lea eax, [esp + 0x60]
call fcn.004a42e0
cmp dword [esp + 0x60], 0
jne 0x4ba6f3
mov ecx, dword [edi + 0xf4]
shr ecx, 0xd
test cl, 1
je 0x4ba6e8
mov dl, byte [edi + 0xf0]
mov byte [esp + 0x17], dl
jmp 0x4ba81c
mov eax, dword [edi + 0xf8]
jmp 0x4ba776
mov ecx, dword [esp + 0x5c]
cmp byte [ecx + 0x11], 0
je 0x4ba702
mov ecx, dword [ecx + 8]
jmp 0x4ba747
mov eax, dword [ecx]
cmp byte [eax + 0x11], 0
jne 0x4ba722
mov ecx, eax
mov eax, dword [ecx + 8]
cmp byte [eax + 0x11], 0
jne 0x4ba747
mov ecx, eax
mov eax, dword [ecx + 8]
cmp byte [eax + 0x11], 0
je 0x4ba715
jmp 0x4ba747
mov eax, dword [ecx + 4]
cmp byte [eax + 0x11], 0
jne 0x4ba73f
jmp 0x4ba730
cmp ecx, dword [eax]
jne 0x4ba73f
mov ecx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x11], 0
je 0x4ba730
cmp byte [ecx + 0x11], 0
jne 0x4ba747
mov ecx, eax
mov eax, dword [ecx + 0xc]
imul eax, eax, 0xb8
add eax, dword [edi + 0x3c]
mov ecx, dword [eax + 0xa4]
shr ecx, 0xd
test cl, 1
je 0x4ba770
mov dl, byte [eax + 0xa0]
mov byte [esp + 0x17], dl
jmp 0x4ba81c
mov eax, dword [eax + 0xa8]
test eax, eax
je 0x4ba788
call fcn.004880f0
mov byte [esp + 0x17], al
jmp 0x4ba81c
mov byte [esp + 0x17], 0
jmp 0x4ba81c
mov eax, dword [ebp]
imul eax, eax, 0xb8
add eax, dword [edi + 0x3c]
mov ecx, dword [eax + 0xa4]
shr ecx, 0xd
test cl, 1
je 0x4ba7b8
mov dl, byte [eax + 0xa0]
mov byte [esp + 0x17], dl
jmp 0x4ba7d2
mov eax, dword [eax + 0xa8]
test eax, eax
je 0x4ba7cd
call fcn.004880f0
mov byte [esp + 0x17], al
jmp 0x4ba7d2
mov byte [esp + 0x17], 0
push 0x14
call fcn.00548a50
add esp, 4
test eax, eax
je 0x4ba897
mov ecx, dword [esp + 0x5c]
mov dword [eax], ecx
mov edx, dword [esp + 0x5c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 8], ecx
lea ecx, [eax + 0xc]
mov word [eax + 0x10], 0
test ecx, ecx
je 0x4ba80a
mov edx, dword [ebp]
mov dword [ecx], edx
push eax
lea esi, [esp + 0x44]
lea ebx, [esp + 0x5c]
call fcn.004beaf0
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
inc eax
add ebp, 0xc
mov dword [esp + 0x1c], eax
cmp eax, ebx
jb 0x4ba646
mov ebp, dword [esp + 0x68]
mov byte [esp + 0x80], 4
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx]
push ecx
push eax
lea esi, [esp + 0x90]
lea eax, [esp + 0x60]
call fcn.004a42e0
mov byte [esp + 0x80], 0
mov eax, dword [esp + 0x5c]
push eax
call fcn.00548a36
add esp, 4
mov dword [esp + 0x80], 0xffffffff
test ebp, ebp
je 0x4ba881
push ebp
call fcn.00548a36
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 8
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], vtable.stdext::bad_alloc.0
lea ecx, [esp + 0x30]
mov byte [esp + 0x80], 3
call fcn.00404df0
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], vtable.stdext::bad_alloc.0
lea ecx, [esp + 0x38]
mov byte [esp + 0x80], 1
call fcn.00404df0
int3