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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x10]
cmp eax, dword [ecx + 8]
jbe 0x6794a0
sub esp, 0x90
mov eax, dword [esp + 0xa0]
test eax, eax
jne 0x67948e
mov eax, 3
lea ecx, [0x7e069f]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], ecx
test eax, eax
jg 0x67945e
xor edx, edx
test dl, dl
je 0x6793da
mov edx, dword [esp + 0x94]
test edx, edx
je 0x679393
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 4], eax
call fcn.005e2a10
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test ecx, ecx
jne 0x679373
mov dword [esp + 0x30], eax
lea eax, [0x79c020]
mov dword [esp], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0xb0]
mov dword [esp + 8], ecx
call fcn.00409010
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test al, al
je 0x679322
mov dword [esp + 0x3c], edx
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x30]
mov ebx, dword [eax + 0x14]
mov ebp, dword [eax + 0x18]
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.006769a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
mov dword [edx + 0x18], ecx
mov ecx, dword [0xa8c6b0]
test ecx, ecx
jne 0x679315
mov dword [edx + 0x14], eax
call fcn.0040c010
mov eax, dword [esp]
mov dword [esp + 0x50], eax
lea ecx, [0x7d4540]
mov dword [esp], ecx
call fcn.0040b570
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x94]
mov dword [edi + 0x78], eax
mov eax, dword [0xa8c6b0]
test eax, eax
jne 0x6792f9
mov edx, dword [esp + 0x98]
mov dword [edi + 0x7c], edx
mov edx, dword [esp + 0x1c]
mov dword [edi + 4], edx
mov edx, dword [0xa8c6b0]
test edx, edx
jne 0x6792d5
mov edx, dword [esp + 0x34]
mov dword [edi], edx
mov edx, dword [esp + 0x30]
mov dword [edi + 8], edx
mov dword [edi + 0x10], 8
lea ebx, [0x7e4448]
mov dword [edi + 0xc], ebx
mov dword [edi + 0x14], 1
mov dword [edi + 0x18], 1
mov ebx, dword [0xa8c6b0]
test ebx, ebx
jne 0x6792bc
mov ebx, dword [esp + 0x50]
mov dword [edi + 0x1c], ebx
mov ebx, dword [esp + 0x20]
mov dword [edi + 0x20], ebx
mov ebx, dword [0xa8c6b0]
lea ebp, [edi + 0x24]
test ebx, ebx
jne 0x6792a6
mov ebx, dword [esp + 0x3c]
mov dword [edi + 0x24], ebx
mov eax, dword [edx + 0x14]
mov edx, dword [edx + 0x18]
mov dword [edi + 0x48], edx
mov edx, dword [0xa8c6b0]
test edx, edx
jne 0x679293
mov dword [edi + 0x44], eax
mov edx, dword [esp + 0xac]
test edx, edx
je 0x67928c
mov dword [esp + 0x4c], ebp
je 0x6790e6
mov dword [esp + 0x38], edi
mov ebx, dword [edx + 8]
cmp ebx, 0x4128187d
jne 0x6790ed
lea ecx, [0x86cde0]
cmp ecx, edx
jne 0x6790e6
mov esi, dword [esp + 0xb0]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov edx, ecx
sar ecx, 0x1f
cmp ecx, eax
sete al
setl cl
mov ebx, dword [esi + 8]
cmp ebx, edx
xchg ebp, ebx
setae bl
xchg ebp, ebx
and ebp, eax
or ecx, ebp
test cl, cl
je 0x6790dd
xor eax, eax
mov dword [edi + 0x2c], eax
sar eax, 0x1f
mov dword [edi + 0x30], eax
lea edi, [esp + 0x64]
call fcn.0045caae
lea ecx, [0x797f40]
mov dword [esp], ecx
call fcn.0040b570
mov eax, dword [esp + 4]
lea ecx, [0x692870]
mov dword [eax], ecx
mov ecx, dword [0xa8c6b0]
lea edi, [eax + 4]
test ecx, ecx
jne 0x6790aa
lea esi, [esp + 0x64]
call fcn.0045caae
mov ecx, dword [esp + 0x38]
mov dword [ecx + 0x28], eax
mov edx, dword [ecx + 0x28]
test edx, edx
je 0x679067
mov edx, dword [ecx + 0x30]
test edx, edx
sete dl
mov ebx, dword [ecx + 0x2c]
test ebx, ebx
sete bl
and edx, ebx
test dl, dl
je 0x679067
lea edx, [0x86f7e0]
mov dword [ecx + 0x20], edx
mov edx, dword [0xa8c6b0]
test edx, edx
jne 0x67908b
lea eax, [0xa8c444]
mov dword [ecx + 0x24], eax
lea eax, [0x80a164]
mov dword [ecx + 0x28], eax
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
add esp, 0x90
ret
mov edi, dword [esp + 0x4c]
lea eax, [0xa8c444]
call fcn.0045c330
lea edi, [ecx + 0x28]
lea eax, [0x80a164]
call fcn.0045c330
jmp 0x679067
mov dword [esp + 0x48], eax
lea eax, [0x7b0080]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x64]
mov dword [esp + 8], eax
call fcn.00410dc0
mov ecx, dword [esp + 0x38]
lea edi, [ecx + 0x28]
mov eax, dword [esp + 0x48]
call fcn.0045c330
jmp 0x679025
sub edx, ebx
mov eax, edx
jmp 0x678fd8
mov ecx, edi
jmp 0x679025
cmp ebx, 0xa5164854
jne 0x6791c3
lea ecx, [0x86c380]
cmp ecx, edx
jne 0x6790e6
mov esi, dword [esp + 0xb0]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov dword [esp + 0x28], ecx
cmp eax, ecx
setae dl
mov ebx, dword [esi + 0x10]
sar ecx, 0x1f
cmp ecx, ebx
sete cl
setl bl
and ecx, edx
or ebx, ecx
test bl, bl
je 0x6791b6
xor eax, eax
mov dword [edi + 0x2c], eax
sar eax, 0x1f
mov dword [edi + 0x30], eax
lea edi, [esp + 0x78]
call fcn.0045caa4
lea ecx, [0x797ee0]
mov dword [esp], ecx
call fcn.0040b570
mov eax, dword [esp + 4]
lea ecx, [0x6927a0]
mov dword [eax], ecx
mov ecx, dword [0xa8c6b0]
lea edi, [eax + 4]
test ecx, ecx
jne 0x679183
lea esi, [esp + 0x78]
call fcn.0045caa4
mov ecx, dword [esp + 0x38]
mov dword [ecx + 0x28], eax
jmp 0x679025
mov dword [esp + 0x44], eax
lea eax, [0x7acf80]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x78]
mov dword [esp + 8], eax
call fcn.00410dc0
mov ecx, dword [esp + 0x38]
lea edi, [ecx + 0x28]
mov eax, dword [esp + 0x44]
call fcn.0045c330
jmp 0x679025
mov ecx, dword [esp + 0x28]
sub ecx, eax
mov eax, ecx
jmp 0x679135
cmp ebx, 0xe763bb76
jne 0x6790e6
lea ebx, [0x86c340]
cmp ebx, edx
jne 0x6790e6
mov edx, dword [esp + 0xb0]
mov ebx, dword [edx + 4]
sub ebx, dword [edx + 0xc]
mov dword [edi + 0x2c], ebx
sar ebx, 0x1f
mov dword [edi + 0x30], ebx
nop
mov ecx, dword [edx + 4]
mov ebx, dword [edx]
mov esi, dword [edx + 8]
mov eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x67949a
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x2c], eax
lea eax, [0x797b80]
mov dword [esp], eax
call fcn.0040b570
mov eax, dword [esp + 4]
lea ecx, [0x6926c0]
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
sub ecx, edx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x28]
sub ecx, edx
mov dword [eax + 0xc], ecx
mov ebx, dword [0xa8c6b0]
neg ecx
sar ecx, 0x1f
and edx, ecx
mov ecx, dword [esp + 0x40]
add ecx, edx
test ebx, ebx
jne 0x67926d
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [ecx + 0x28], eax
jmp 0x679025
lea edi, [eax + 4]
mov edx, eax
mov eax, ecx
call fcn.0045c330
mov ecx, dword [esp + 0x38]
lea edi, [ecx + 0x28]
mov eax, edx
call fcn.0045c330
jmp 0x679025
mov ecx, edi
jmp 0x679067
lea edx, [edi + 0x44]
mov ecx, edi
mov edi, edx
call fcn.0045c330
mov edi, ecx
jmp 0x678f6a
mov eax, edi
mov edi, ebp
mov ecx, eax
mov eax, dword [esp + 0x3c]
call fcn.0045c330
mov edi, ecx
jmp 0x678f50
lea ebx, [edi + 0x1c]
mov eax, edi
mov edi, ebx
mov ecx, eax
mov eax, dword [esp + 0x50]
call fcn.0045c330
mov edi, ecx
jmp 0x678f31
mov eax, dword [esp + 0x34]
call fcn.0045c330
lea ebx, [edi + 8]
mov eax, edi
mov edi, ebx
mov ecx, eax
mov eax, dword [esp + 0x30]
call fcn.0045c330
mov edx, eax
mov edi, ecx
jmp 0x678efe
lea edx, [edi + 0x7c]
mov eax, edi
mov edi, edx
mov ecx, eax
mov eax, dword [esp + 0x98]
call fcn.0045c330
mov edi, ecx
jmp 0x678edc
lea edi, [edx + 0x14]
call fcn.0045c330
jmp 0x678e9c
mov eax, dword [esp + 0xac]
test eax, eax
je 0x678e5e
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x58], ecx
lea edx, [0x86f740]
mov dword [esp], edx
lea edx, [esp + 0x54]
mov dword [esp + 4], edx
call fcn.00408e60
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
jmp 0x678e5e
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], edx
add esp, 0x90
ret
lea eax, [0x799500]
mov dword [esp], eax
call fcn.0040b570
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x15
lea ecx, [0x7ee1bd]
mov dword [eax], ecx
mov dword [esp + 0xb4], 0
lea ecx, [0x86c560]
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], eax
add esp, 0x90
ret
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00408cf0
mov eax, dword [esp + 8]
lea ecx, [0x7878a0]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
lea eax, [0x7f2796]
mov dword [esp], eax
mov dword [esp + 4], 0x1b
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004cbbb0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
add esp, 0x90
ret
mov dword [esp], ecx
mov dword [esp + 4], eax
lea edx, [0x80a1c8]
mov dword [esp + 8], edx
mov byte [esp + 0xc], 1
call fcn.004e3380
cmp dword [esp + 0x10], 0xffffffff
sete dl
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
jmp 0x678ddc
mov ecx, dword [esp + 0x9c]
jmp 0x678dca
call fcn.0045c410
nop
call fcn.0045ade0
jmp fcn.00678d90