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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffc0
mov ebp, edx
mov ebx, eax
mov byte [ebp], 0
cmp byte [ebx + 0x74], 0
je 0x4ba8ce
cmp dword [ebx + 0x50], 0
je 0x4ba72f
cmp dword [ebx + 0x5c], 0
jne 0x4ba72d
cmp dword [ebx + 0x58], 0
ja 0x4ba73d
jmp 0x4ba72f
jg 0x4ba73d
mov byte [ebp], 1
mov eax, 0x8005
jmp 0x4bad14
mov eax, dword [ebx + 0x14]
test eax, eax
jge 0x4ba750
xor edi, edi
xor eax, eax
mov dword [ebx + 0x80], eax
jmp 0x4ba776
mov edi, eax
add edi, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x48]
cmp eax, dword [ebx + 0x80]
jb 0x4ba76a
xor eax, eax
mov dword [ebx + 0x80], eax
jmp 0x4ba776
add dword [ebx + 0x24], eax
mov eax, dword [ebx + 0x48]
sub dword [ebx + 0x80], eax
mov eax, dword [ebx + 0x48]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x3c]
xor edx, edx
push edx
push eax
mov eax, edi
cdq
call fcn.0040517c
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
call fcn.00405158
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [ebx + 0x48]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
cmp edx, dword [ebx + 0x5c]
jne 0x4ba7c0
cmp eax, dword [ebx + 0x58]
jbe 0x4ba7cd
jmp 0x4ba7c2
jle 0x4ba7cd
mov byte [ebp], 1
xor eax, eax
jmp 0x4bad14
mov eax, dword [ebx + 0x44]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
push edx
push eax
mov eax, dword [ebx + 0x48]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
cmp edx, 0
jne 0x4ba7f8
cmp eax, 0x7ffff000
jbe 0x4ba808
jmp 0x4ba7fa
jle 0x4ba808
mov byte [ebp], 1
mov eax, 0x8005
jmp 0x4bad14
mov eax, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x80]
cmp eax, ecx
ja 0x4ba81a
mov esi, dword [ebx + 0x48]
jmp 0x4ba885
mov esi, dword [ebx + 0x78]
mov eax, esi
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x58]
mov edx, dword [ebx + 0x5c]
sub eax, dword [esp + 8]
sbb edx, dword [esp + 0xc]
cmp edx, dword [esp + 4]
jne 0x4ba840
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4ba853
jmp 0x4ba844
pop edx
pop eax
jge 0x4ba853
mov eax, dword [ebx + 0x58]
mov edx, dword [ebx + 0x5c]
sub eax, dword [esp]
sbb edx, dword [esp + 4]
mov esi, eax
cmp esi, dword [ebx + 0x48]
jae 0x4ba866
mov byte [ebp], 1
mov eax, 0x8005
jmp 0x4bad14
test ecx, ecx
jne 0x4ba874
xor eax, eax
mov dword [ebx + 0x84], eax
jmp 0x4ba87f
mov edx, dword [ebx + 0x7c]
mov eax, dword [ebx + 0x24]
call fcn.00402da0
mov eax, dword [ebx + 0x7c]
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x14], edi
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x18], eax
push edi
mov eax, dword [ebx + 0x3c]
push eax
mov eax, dword [ebx + 0x48]
push eax
mov eax, dword [esp + 0x24]
push eax
push esi
lea eax, [ebx + 0x80]
push eax
lea eax, [ebx + 0x84]
push eax
mov eax, dword [ebx + 0x28]
or eax, 0x80
push eax
mov eax, dword [ebx + 0x2c]
push eax
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
call fcn.004ba5b0
mov esi, eax
jmp 0x4bac04
cmp dword [ebx + 0x50], 0
je 0x4ba8e0
mov eax, dword [ebx + 0x30]
call fcn.004abb08
test al, al
jne 0x4ba8ea
mov eax, 0x8005
jmp 0x4bad14
mov eax, dword [ebx + 0x30]
add eax, 8
movzx eax, word [eax]
cmp eax, 0x12
jb 0x4ba902
mov edx, dword [ebx + 0x18]
add edx, eax
cmp edx, dword [ebx + 0x1c]
jbe 0x4ba90c
mov eax, 0x8005
jmp 0x4bad14
add eax, dword [ebx + 0x30]
sub eax, 8
mov edx, dword [eax]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
cmp dword [esp + 0x14], 0
jne 0x4ba92f
cmp dword [esp + 0x10], 0
jae 0x4ba938
jmp 0x4ba931
jge 0x4ba938
mov al, 1
jmp 0x4baa94
cmp dword [esp + 0x14], 0
jne 0x4ba948
cmp dword [esp + 0x10], 0
jae 0x4ba9aa
jmp 0x4ba94a
jge 0x4ba9aa
mov eax, dword [ebx + 0x3c]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
neg eax
adc edx, 0
neg edx
call fcn.00405210
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
jbe 0x4ba97b
mov eax, dword [ebx + 0x3c]
sub eax, dword [esp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x3c]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x18]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040517c
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
jmp 0x4ba9de
mov eax, dword [ebx + 0x3c]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
call fcn.00405210
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x3c]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
call fcn.0040517c
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
cmp dword [ebx + 0x5c], 0
jne 0x4ba9ec
cmp dword [ebx + 0x58], 0
jae 0x4baa4a
jmp 0x4ba9ee
jge 0x4baa4a
mov eax, dword [ebx + 0x48]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x58]
mov edx, dword [ebx + 0x5c]
neg eax
adc edx, 0
neg edx
call fcn.00405210
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
jbe 0x4baa1d
mov eax, dword [ebx + 0x48]
sub eax, dword [esp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x48]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x58]
mov edx, dword [ebx + 0x5c]
push edx
push eax
mov eax, dword [esp + 0x18]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040517c
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
jmp 0x4baa7a
mov eax, dword [ebx + 0x48]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x58]
mov edx, dword [ebx + 0x5c]
call fcn.00405210
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x48]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x58]
mov edx, dword [ebx + 0x5c]
call fcn.0040517c
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
cmp edx, dword [esp + 0x34]
jne 0x4baa91
cmp eax, dword [esp + 0x30]
setae al
jmp 0x4baa94
setge al
test al, al
je 0x4baaa2
mov eax, 0x8005
jmp 0x4bad14
cmp dword [esp + 0x14], 0
jne 0x4baab2
cmp dword [esp + 0x10], 0
jae 0x4bab14
jmp 0x4baab4
jge 0x4bab14
mov eax, dword [ebx + 0x3c]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
neg eax
adc edx, 0
neg edx
call fcn.00405210
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
jbe 0x4baae5
mov eax, dword [ebx + 0x3c]
sub eax, dword [esp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x3c]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x18]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040517c
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
jmp 0x4bab48
mov eax, dword [ebx + 0x3c]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
call fcn.00405210
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x3c]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
call fcn.0040517c
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov eax, dword [ebx + 0x48]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
call fcn.00405158
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [ebx + 0x44]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
push edx
push eax
mov eax, dword [ebx + 0x48]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
cmp edx, 0
jne 0x4bab8e
cmp eax, 0x7ffff000
jbe 0x4bab9a
jmp 0x4bab90
jle 0x4bab9a
mov eax, 0x8005
jmp 0x4bad14
mov edi, dword [esp + 0x10]
cmp edi, dword [ebx + 0x14]
jne 0x4babad
mov eax, 0x8005
jmp 0x4bad14
mov eax, dword [ebx + 0x68]
dec eax
test eax, eax
jl 0x4babd2
inc eax
xor edx, edx
mov ecx, edx
add ecx, ecx
mov esi, dword [ebx + 0x70]
cmp edi, dword [esi + ecx*8]
jne 0x4babce
mov eax, 0x8005
jmp 0x4bad14
inc edx
dec eax
jne 0x4babb8
mov eax, dword [ebx + 0x48]
call fcn.0040d7d8
mov dword [esp + 0x18], eax
push edi
mov eax, dword [ebx + 0x3c]
push eax
mov eax, dword [ebx + 0x48]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [ebx + 0x28]
push eax
mov eax, dword [ebx + 0x2c]
push eax
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
call fcn.004ba6c0
mov esi, eax
test esi, esi
je 0x4bac1e
cmp byte [ebx + 0x74], 0
jne 0x4bac17
lea eax, [esp + 0x18]
call fcn.0040d7e8
mov eax, esi
jmp 0x4bad14
mov eax, dword [esp + 0x18]
add eax, 0x18
movzx ebp, word [eax]
add ebp, 0x18
mov eax, dword [esp + 0x18]
add eax, ebp
mov edx, dword [esp + 0x18]
movzx esi, word [edx + 0x1c]
add esi, 0x18
mov edx, dword [ebx + 0x48]
cmp esi, edx
jbe 0x4bac45
mov esi, edx
lea edx, [ebp + 0x10]
cmp esi, edx
jb 0x4bac61
lea edx, [eax + 8]
cmp word [edx], 0x10
jb 0x4bac61
add eax, 8
movzx eax, word [eax]
add eax, ebp
cmp esi, eax
jae 0x4bac7a
cmp byte [ebx + 0x74], 0
jne 0x4bac70
lea eax, [esp + 0x18]
call fcn.0040d7e8
mov eax, 0x8005
jmp 0x4bad14
cmp byte [ebx + 0x74], 0
jne 0x4bacdd
mov edx, dword [ebx + 0x68]
inc edx
mov eax, dword [ebx + 0x6c]
cmp edx, eax
jle 0x4bac9f
add eax, 8
mov edx, eax
shl edx, 4
lea eax, [ebx + 0x70]
call fcn.0040d7f8
add dword [ebx + 0x6c], 8
mov eax, dword [ebx + 0x68]
add eax, eax
mov edx, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x18]
mov dword [edx + eax*8 + 4], ecx
mov eax, dword [ebx + 0x68]
add eax, eax
mov edx, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x20]
mov dword [edx + eax*8 + 0xc], ecx
mov eax, dword [ebx + 0x68]
add eax, eax
mov edx, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x14]
mov dword [edx + eax*8], ecx
mov eax, dword [ebx + 0x68]
add eax, eax
mov edx, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x24]
mov dword [edx + eax*8 + 8], ecx
inc dword [ebx + 0x68]
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x18], ebp
mov dword [ebx + 0x1c], esi
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x24], eax
xor eax, eax
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x24]
add eax, dword [ebx + 0x18]
mov dword [ebx + 0x30], eax
mov eax, dword [esp]
add eax, dword [ebx + 0x44]
add eax, dword [ebx + 0x18]
mov dword [ebx + 0x54], eax
mov eax, dword [ebx + 0x30]
call fcn.004abafc
mov byte [ebx + 0x34], al
xor eax, eax
add esp, 0x40
pop ebp
pop edi
pop esi
pop ebx
ret