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

Disassembly:
push 0xffffffffffffffff
push 0x47f568
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov eax, dword [esp + 0x64]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x78]
mov ebx, ecx
lea esi, [eax + 0x14]
push 0
push edi
mov ecx, esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x3c], esi
call fcn.00675060
mov ebp, eax
push edi
mov ecx, esi
mov dword [esp + 0x34], ebp
call fcn.006750b0
mov ecx, dword [ebp]
push 0
push ecx
mov ecx, ebx
mov dword [esp + 0x2c], eax
call fcn.00679b70
mov ebx, eax
mov dword [esp + 0x1c], ebx
mov eax, dword [ebx + 0x14]
test al, 0x10
jne 0x6794e8
shr eax, 8
add ebp, 0x18
and eax, 1
push ebp
mov dword [esp + 0x30], eax
call fcn.006676f0
add ebp, eax
push ebp
call fcn.006676f0
mov esi, dword [ebp + eax]
add ebp, eax
add esp, 8
call 0x8127d2
arpl word [eax - 0x18], dx
xchg ecx, eax
push 5
add byte [ebp - 0x76f98a40], al
inc esp
and al, 0x10
jmp 0x67922c
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x1c]
xor eax, eax
cmp edx, ecx
sete al
push 1
mov dword [esp + 0x3c], eax
call dword [ebx + 0x2c]
push 5
mov dword [esp + 0x2c], eax
call dword [ebx + 0x2c]
push esi
call eax
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x6794e8
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x3c]
push edx
push eax
call dword [0x4835bc]
mov ecx, dword [esi + 0x1c]
mov edi, dword [0x4835d8]
push ecx
call edi
push eax
call fcn.006cfcac
lea edx, [esp + 0x3c]
mov ecx, eax
push edx
call fcn.006d4bc0
mov ecx, esi
mov dword [esp + 0x18], 0
call fcn.006d2704
test eax, eax
jne 0x6792a5
mov dword [esp + 0x18], 0x8000000
mov eax, dword [esi + 0x1c]
push eax
call edi
push eax
call fcn.006cfcac
test eax, eax
jne 0x6792b9
xor edi, edi
jmp 0x6792bc
mov edi, dword [eax + 0x1c]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x70]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x50]
sub edx, ecx
push edx
push eax
push ecx
push 0
mov ecx, esi
call fcn.006d2632
push eax
mov eax, dword [esp + 0x40]
push edi
push eax
push ebx
push edx
call fcn.007e43e5
push eax
push ebx
call dword [0x483340]
push eax
call dword [esp + 0x60]
mov edi, eax
test edi, edi
je 0x6794da
mov ecx, dword [edi + 0x1c]
push ecx
call dword [0x4835e4]
test eax, eax
je 0x6794da
mov edx, dword [esp + 0x1c]
test byte [edx + 0x14], 0x80
je 0x6793b8
lea ecx, [esp + 0x4c]
call fcn.00666d50
mov dword [esp + 0x4c], 0x52b97c
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x68], 0
test eax, eax
je 0x679376
push eax
call 0x816d19
push esi
mov ebx, eax
test ebx, ebx
je 0x679376
push ebx
lea ecx, [esp + 0x50]
call fcn.00667050
push 2
push ebx
call dword [0x48351c]
mov ebx, eax
test ebx, ebx
jne 0x67935d
mov eax, dword [esp + 0x5c]
mov ecx, dword [edi + 0x1c]
shr eax, 2
dec eax
mov dword [esp + 0x70], ecx
mov ebx, eax
js 0x67939f
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x70]
push edx
mov ecx, dword [eax + ebx*4]
push ecx
call 0x802c62
xor eax, 0x8dea794b
dec esp
and al, 0x4c
lea ecx, [esp + 0x4c]
mov dword [esp + 0x68], 0xffffffff
mov dword [esp + 0x4c], 0x52b978
call fcn.00666f50
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x20]
push edx
push eax
mov dword [ebp], edi
call fcn.00679500
mov ecx, dword [edi + 0x1c]
mov ebx, dword [0x4835f0]
push 0
push 0
push 0x806f
push ecx
call ebx
mov edx, dword [edi + 0x1c]
push 0
push 0
push 0x8076
push edx
call ebx
mov eax, dword [esp + 0x1c]
test dword [eax + 0x14], 0x100000
je 0x67941e
mov ecx, dword [edi + 0x1c]
push ecx
call dword [0x4835d8]
push eax
call fcn.006cfcac
mov edx, dword [eax + 0x1c]
push 0
push 0
push 0x8004
push edx
call ebx
mov eax, dword [esi + 0x1c]
push 0xfffffffffffffff0
push eax
call 0x848204
mov ecx, 0xa9
adc byte [ecx + ecx + 0x6a], dh
or byte [ebx - 0x6d5c1731], cl
add eax, 0x24448b00
sub al, 0xbd
add dword [eax], eax
add byte [eax], al
cmp eax, ebp
jne 0x679479
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x130b
push ecx
call ebx
mov edx, dword [edi + 0x1c]
push 0
push eax
push 0x130c
push edx
call ebx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
push 0x7fffffff
push 0
push eax
call fcn.00675930
mov ebx, dword [esp + 0x20]
mov ecx, esi
mov dword [ebx + 0x1e4], ebp
mov edx, dword [esi]
call dword [edx + 0x58]
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x1e4], 0
cmp eax, ebp
jne 0x6794a5
mov ecx, edi
call fcn.006d2746
jmp 0x6794d6
mov esi, dword [esp + 0x10]
test esi, esi
je 0x6794d6
push esi
call dword [0x4835e4]
test eax, eax
je 0x6794d6
call 0x883467
cdq
push eax
call fcn.006cfcac
test eax, eax
je 0x6794cb
mov eax, dword [eax + 0x1c]
cmp eax, esi
je 0x6794d6
push esi
call 0x84fdd8
jg 0x679462
mov ebx, dword [esp + 0x14]
pop esp
and al, 0x14
push ebx
call 0x86dc84
loope 0x679535
push edi
call 0x8389f6
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 0xc