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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x30
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp], esi
call fcn.0088c270
mov ecx, dword [ebx + 0x40]
test ecx, ecx
je 0x6679fb
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x6679fb
mov edx, dword [eax + 0x58]
test edx, edx
je 0x6679f0
mov edx, dword [eax + 0x68]
test edx, edx
je 0x667a10
mov ecx, dword [ecx + 0x30]
test ecx, ecx
je 0x667877
test byte [eax + 0x10], 0x20
je 0x667a80
mov dword [esp + 4], esi
mov dword [esp], ebx
call edx
test eax, eax
mov edi, eax
js 0x667898
mov dword [esp], esi
call fcn.0088b880
add edx, 0x80000000
or edx, eax
je 0x6678a2
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0x78]
mov edx, ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x68]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x28], ecx
mov ecx, edx
lea edx, [edx - 0x80000000]
mov dword [esp + 0x14], edx
or edx, eax
je 0x667a35
xor edx, edx
cmp ecx, dword [ebx + 0x3a4]
mov eax, 1
jl 0x6678f9
jg 0x6678f5
mov ecx, dword [esp + 0x18]
cmp ecx, dword [ebx + 0x3a0]
jbe 0x6678f9
xor eax, eax
xor edx, edx
add eax, dword [ebx + 0x390]
adc edx, dword [ebx + 0x394]
mov dword [esp + 0x18], eax
mov dword [ebx + 0x390], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], edx
mov dword [ebx + 0x394], edx
mov dword [ebx + 0x3a0], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x3a4], eax
mov eax, dword [esp + 0x28]
add eax, 0x80000000
mov dword [esp + 0x10], eax
or eax, dword [esp + 0x24]
je 0x667af2
xor edx, edx
mov ecx, dword [esp + 0x28]
cmp ecx, dword [ebx + 0x39c]
mov eax, 1
jl 0x667969
jg 0x667965
mov ecx, dword [esp + 0x24]
cmp ecx, dword [ebx + 0x398]
jbe 0x667969
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0x24]
add eax, dword [ebx + 0x388]
adc edx, dword [ebx + 0x38c]
mov dword [ebx + 0x398], ecx
mov ecx, dword [esp + 0x28]
mov dword [ebx + 0x388], eax
mov dword [ebx + 0x38c], edx
mov dword [ebx + 0x39c], ecx
mov ecx, dword [esp + 0x14]
or ecx, dword [esp + 0x2c]
je 0x6679b1
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp edx, ebx
jl 0x6679b1
jg 0x6679cb
cmp eax, ecx
ja 0x6679cb
mov ecx, dword [esp + 0x10]
or ecx, dword [esp + 0x24]
je 0x6679cb
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], esi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 8], eax
call fcn.0088b8a0
jmp 0x667898
mov edi, dword [eax + 0x64]
test edi, edi
jne 0x66785b
lea esp, [ebp - 0xc]
mov edi, 0xffffffea
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ecx + 0x3c]
mov edx, dword [eax + 0xf8]
test edx, edx
je 0x667a90
mov dword [esp + 4], eax
mov dword [esp], esi
xor edi, edi
call fcn.0088c300
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esp + 0x28]
lea eax, [edx - 0x80000000]
mov ecx, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
or ecx, eax
je 0x6679bf
mov dword [ebx + 0x3a0], eax
mov dword [ebx + 0x3a4], edx
mov eax, dword [ebx + 0x390]
mov edx, dword [ebx + 0x394]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jmp 0x667944
mov edi, 0xdfb9b0bb
jmp 0x667898
mov edx, dword [ecx + 0x34]
mov edi, dword [edx + 0x1c]
test edi, edi
jne 0x667ac1
mov ecx, dword [ecx + 0x30]
test ecx, ecx
jne 0x667ac1
jmp 0x667ae8
mov ecx, dword [ebx + 0x40]
mov eax, dword [ecx + 0x3c]
mov edx, dword [eax + 0xf8]
test edx, edx
jne 0x667a1d
mov edx, dword [ecx + 0x34]
mov edi, dword [edx + 0x1c]
test edi, edi
je 0x667ae1
mov eax, ebx
call fcn.006666d0
test eax, eax
jns 0x667aa3
mov edi, eax
mov eax, dword [ebx + 0x40]
mov eax, dword [eax + 0x34]
mov dword [esp], eax
call fcn.005d23b0
jmp 0x667898
mov eax, dword [ecx + 0x30]
test eax, eax
jne 0x667a80
mov edi, 0xfffffff5
jmp 0x667898
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x398], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x39c], eax
jmp 0x6679cb