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

Disassembly:
sub esp, 0x30
push ebx
mov ebx, dword [esp + 0x38]
xorps xmm0, xmm0
push ebp
push esi
mov esi, ecx
movlpd qword [esp + 0x34], xmm0
mov eax, dword [ebx]
mov ecx, ebx
push edi
mov eax, dword [eax + 0x4c]
call eax
or eax, edx
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
je 0x640409ba
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebp
nop word [eax + eax]
mov edx, dword [esi + 0x90]
mov eax, edx
mov ecx, dword [esi + 0x94]
or eax, ecx
je 0x64040674
cmp edi, ecx
jg 0x640409ba
jl 0x64040674
cmp ebp, edx
ja 0x640409ba
cmp byte [esi + 0x7f], 0
jne 0x6404081d
mov eax, dword [esi + 0x8c]
cmp eax, dword [esi + 0x84]
jl 0x6404081d
jg 0x640406a4
mov eax, dword [esi + 0x88]
cmp eax, dword [esi + 0x80]
jb 0x6404081d
mov eax, ebp
mov dword [esi + 0x80], 0
or eax, edi
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
je 0x64040701
push 0
push 2
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
call dword [0x640b02d8]
cmp eax, 2
jne 0x640409ba
test edx, edx
jne 0x640409ba
add ebp, 2
mov dword [esp + 0x1c], ebp
adc edi, edx
mov dword [esp + 0x20], edi
mov dword [esi + 0x80], 0xffffffff
xorps xmm0, xmm0
mov dword [esi + 0x84], 0xffffffff
mov ecx, ebx
mov eax, dword [ebx]
movlpd qword [esp + 0x38], xmm0
mov eax, dword [eax + 0x4c]
call eax
cdq
mov ecx, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
test ecx, ecx
jl 0x64040946
jg 0x64040744
test eax, eax
je 0x64040946
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
nop dword [eax]
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x14]
push 0
push 2
push eax
call dword [0x640b08a0]
mov ecx, dword [esi + 0x78]
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x640407a7
cmp eax, 2
jne 0x64040788
test edx, edx
jne 0x64040788
mov ax, word [esp + 0x14]
cmp al, 0xd
jne 0x64040788
cmp ah, 0xa
je 0x6404088e
cmp ecx, 1
jle 0x640407a7
push 0xd
lea ecx, [esi + 0x78]
call dword [0x640b0cfc]
test al, al
je 0x640407a7
cmp byte [esp + 0x14], 0xa
je 0x6404088e
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x24]
push 0
push 1
push eax
mov byte [esp + 0x30], 0
call dword [0x640b02d8]
test edx, edx
jl 0x6404093c
jg 0x640407d1
test eax, eax
jb 0x6404093c
push dword [esp + 0x24]
add edi, eax
lea ecx, [esi + 0x78]
adc ebx, edx
call dword [0x640b0cf8]
cmp dword [esp + 0x28], ebx
jl 0x640407f8
jg 0x64040750
cmp dword [esp + 0x2c], edi
ja 0x64040750
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi + 0x80]
add ebp, edi
mov edi, dword [esp + 0x20]
adc edi, ebx
and eax, dword [esi + 0x84]
cmp eax, 0xffffffff
je 0x640409ba
mov ebx, dword [esp + 0x44]
mov ecx, dword [esi + 0x80]
mov eax, ecx
mov edx, dword [esi + 0x84]
or eax, edx
je 0x64040953
cmp byte [esi + 0x7f], 0
jne 0x64040953
sub ecx, dword [esi + 0x88]
sbb edx, dword [esi + 0x8c]
push edx
push ecx
push dword [esp + 0x50]
mov ecx, esi
push ebx
call fcn.640409d0
add dword [esi + 0x88], eax
mov ecx, ebx
adc dword [esi + 0x8c], edx
add ebp, eax
mov eax, dword [ebx]
adc edi, edx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], edi
mov eax, dword [eax + 0x4c]
call eax
or eax, edx
jne 0x64040650
mov edx, edi
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x14]
push 0
push 1
push eax
call dword [0x640b02d8]
add edi, eax
adc ebx, edx
cmp byte [esp + 0x14], 0xd
jne 0x640408c3
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x14]
push 0
push 1
push eax
call dword [0x640b02d8]
add edi, eax
adc ebx, edx
push 0
push 0x3b
lea ecx, [esi + 0x78]
mov byte [esp + 0x1b], 0
call dword [0x640b0358]
push eax
push 0
lea eax, [esp + 0x3c]
push eax
lea ecx, [esi + 0x78]
call dword [0x640b035c]
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call dword [0x640b0364]
push eax
lea ecx, [esi + 0x78]
call dword [0x640b034c]
lea ecx, [esp + 0x30]
call dword [0x640b0df0]
lea ecx, [esp + 0x34]
call dword [0x640b0df0]
push 0x10
lea eax, [esp + 0x17]
push eax
lea ecx, [esi + 0x78]
call dword [0x640b089c]
cdq
lea ecx, [esi + 0x78]
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], edx
call dword [0x640b0264]
jmp 0x640407f8
or edi, 0xffffffff
or ebx, edi
jmp 0x640407f8
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
jmp 0x640407fc
push 0
push 2
lea eax, [esp + 0x4c]
mov byte [esi + 0x7f], 1
push eax
mov ecx, ebx
call dword [0x640b02d8]
test edx, edx
jl 0x64040976
jg 0x64040972
test eax, eax
je 0x64040976
add ebp, eax
adc edi, edx
cmp eax, 2
jne 0x6404098f
test edx, edx
jne 0x6404098f
mov ax, word [esp + 0x44]
cmp al, 0xd
jne 0x640409af
cmp ah, 0xa
je 0x640409b3
jmp 0x640409af
cmp eax, 1
jne 0x640409a5
test edx, edx
jne 0x640409a7
mov ax, word [esp + 0x44]
cmp al, 0xa
je 0x640409b3
cmp al, 0xd
jmp 0x640409ad
test edx, edx
jl 0x640409ba
jg 0x640409af
test eax, eax
je 0x640409ba
mov byte [esi + 0x7e], 1
mov dword [esi + 0x3c], 4
mov edx, edi
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8