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

Disassembly:
mov ecx, dword [0x98cddc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0xb0]
cmp eax, dword [ecx + 8]
jbe 0x678ced
sub esp, 0x130
mov eax, 0
mov dword [esp + 0x12c], eax
mov byte [esp + 0x22], 0
mov dword [esp + 0x140], 0
mov dword [esp + 0x144], 0
mov eax, dword [esp + 0x134]
mov ecx, dword [eax]
mov dword [esp + 0x94], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x90], edx
mov ebx, dword [eax + 4]
mov dword [esp + 0x6c], ebx
mov ebp, dword [esp + 0x138]
mov dword [esp], ebp
call fcn.00677250
mov eax, dword [esp + 4]
test eax, eax
jne 0x678535
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0xbc]
test ecx, ecx
je 0x678cc8
mov dword [esp + 0x128], ecx
mov eax, dword [esp + 0x134]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x124], ecx
mov edx, dword [esp + 0x6c]
mov ebx, dword [edx + 0x10]
mov ebp, dword [esp + 0x90]
mov dword [esp], ebp
call ebx
mov eax, dword [esp + 4]
mov dword [esp + 0x120], eax
lea edi, [esp + 0xfc]
xor eax, eax
call fcn.00471d4a
mov ecx, dword [esp + 0x128]
mov dword [esp + 0xfc], ecx
lea ecx, [esp + 0x23]
mov dword [esp + 0x100], ecx
mov ecx, dword [esp + 0x124]
mov dword [esp + 0x10c], ecx
mov ecx, dword [esp + 0x120]
mov dword [esp + 0x104], ecx
lea ecx, [esp + 0xfc]
mov dword [esp], ecx
lea ecx, [esp + 0x50]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 2
mov byte [esp + 0x14], 1
call fcn.00449f20
mov eax, dword [esp + 0x18]
test eax, eax
je 0x6782e4
cmp eax, 1
jne 0x6782c3
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0x90]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
add esp, 0x130
ret
mov eax, dword [0x95fed8]
mov ecx, dword [0x95fedc]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
add esp, 0x130
ret
mov eax, dword [esp + 0x94]
lea ecx, [eax + 0x34]
mov dword [esp + 0x11c], ecx
mov dword [esp], ecx
call fcn.0047b9f0
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
je 0x67831d
mov edx, dword [eax + 0x30]
mov ecx, dword [ecx + 0x14]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0x68]
nop
test ecx, ecx
jle 0x678329
dec ecx
mov dword [eax + 0x68], ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x134]
mov dword [esp + 4], ecx
call fcn.00679510
mov eax, dword [esp + 8]
test eax, eax
jne 0x6784da
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0xb8]
mov edx, dword [esp + 0x134]
mov ebx, dword [edx + 0x94]
lea ebp, [ebx + ecx]
nop
cmp ecx, ebp
setl cl
test ebx, ebx
setg bl
cmp bl, cl
jne 0x67837a
mov dword [edx + 0x94], ebp
mov ecx, dword [0x98d0b8]
lea ebx, [eax + 0x40]
test ecx, ecx
je 0x678397
call fcn.00471ac0
mov dword [edi], ebx
mov ecx, dword [edx + 0x98]
mov dword [edi + 4], ecx
mov dword [edx + 0x98], ebx
nop
mov dword [edx + 0x9c], 0x400000
mov ecx, dword [eax + 0x6c]
mov dword [edx + 0x14], ecx
add dword [eax + 0x6c], 2
mov ecx, dword [eax + 0x64]
mov ebx, dword [edx + 0x14]
lea ebp, [0x6e36a0]
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.004686c0
mov eax, dword [esp + 0xc]
test byte [eax], al
mov ecx, dword [0x98d0b8]
test ecx, ecx
jne 0x6783e7
mov ecx, dword [esp + 0x134]
jmp 0x6783fa
call fcn.00471ac0
mov ecx, dword [esp + 0x134]
mov dword [edi], ecx
mov edx, dword [eax]
mov dword [edi + 4], edx
mov dword [eax], ecx
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x678cb0
mov eax, dword [esp + 0x138]
mov dword [esp], eax
call fcn.00681110
movzx eax, byte [esp + 4]
test al, al
je 0x67842a
mov eax, dword [esp + 0x94]
mov byte [eax + 0x50], 1
mov eax, dword [esp + 0x11c]
mov dword [esp], eax
call fcn.0047bd70
mov edx, dword [esp + 0x13c]
test edx, edx
je 0x678452
mov eax, dword [edx]
mov ecx, dword [esp + 0x134]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 0x94]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x50]
test ecx, ecx
je 0x678470
mov edx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xac]
jmp 0x678474
xor ecx, ecx
xor edx, edx
test ecx, ecx
setne bl
test edx, edx
xchg ebp, ebx
setne bl
xchg ebp, ebx
or ebx, ebp
test bl, bl
je 0x6785f4
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], edx
mov eax, dword [esp + 0x138]
mov ecx, dword [eax + 0x1c]
lea edx, [0x717520]
mov dword [esp], edx
mov dword [esp + 4], ecx
lea ecx, [0x72916f]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 6
call fcn.0040e1c0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov dword [esp + 0x7c], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x64], eax
xor edx, edx
jmp 0x67855d
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x8c], eax
mov ecx, dword [esp + 0x11c]
mov dword [esp], ecx
call fcn.0047bd70
mov eax, dword [esp + 0x94]
mov eax, dword [eax + 0xbc]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00405e00
mov eax, dword [esp + 0x68]
mov dword [esp + 0x140], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x144], eax
add esp, 0x130
ret
mov ecx, dword [esp + 8]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
add esp, 0x130
ret
mov ebx, dword [esp + 0x78]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x7c]
cmp edx, eax
jge 0x6785ec
mov dword [esp + 0x78], edx
lea eax, [ecx + edx*8]
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
lea eax, [0x72d963]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0xc
call fcn.0065b870
movzx eax, byte [esp + 0x10]
test al, al
je 0x67854e
lea eax, [0x6d9640]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004050f0
mov eax, dword [0x98d0b8]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x6785c5
mov eax, dword [esp + 0x134]
jmp 0x6785dc
call fcn.00471ac0
mov dword [edi], ecx
mov eax, dword [esp + 0x134]
mov edx, dword [eax + 0x88]
mov dword [edi + 4], edx
mov dword [eax + 0x88], ecx
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
jmp 0x6785f0
xor eax, eax
xor ecx, ecx
mov edx, ecx
mov ecx, eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x134]
mov dword [esp], eax
mov ebx, dword [esp + 0x138]
mov dword [esp + 4], ebx
call fcn.00678d40
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0xbc]
mov dword [esp], ecx
mov dword [esp + 4], 0
call fcn.00405e00
mov eax, dword [esp + 0x140]
test eax, eax
jne 0x678a4d
mov eax, dword [esp + 0x134]
mov ecx, dword [eax + 0xbc]
mov ebx, dword [eax + 0xc0]
test ecx, ecx
setne cl
test ebx, ebx
setne bl
or ebx, ecx
test bl, bl
je 0x67895c
mov ecx, dword [esp + 0x74]
test ecx, ecx
setne bl
mov ebp, dword [esp + 0x70]
test ebp, ebp
xchg esi, ebx
setne bl
xchg esi, ebx
or esi, ebx
xchg esi, eax
test al, al
xchg esi, eax
je 0x6788ba
mov ebx, dword [eax + 0x10]
test ebx, ebx
je 0x6786bb
mov edx, dword [ebx + 0x38]
test edx, edx
je 0x6786bb
mov eax, dword [edx]
call eax
mov ecx, dword [esp + 0x74]
mov ebp, dword [esp + 0x70]
mov dword [esp], ebp
mov dword [esp + 4], ecx
call fcn.004bb2e0
mov eax, dword [esp + 8]
mov dword [esp + 0x80], eax
mov ecx, dword [eax]
mov dword [esp + 0x118], ecx
mov edx, dword [esp + 0x134]
mov ebx, dword [edx + 0x88]
mov dword [esp + 0x128], ebx
mov ebp, dword [edx + 0x74]
mov dword [esp + 0x114], ebp
mov esi, dword [esp + 0x6c]
mov edi, dword [esi + 0x10]
mov esi, dword [esp + 0x90]
mov dword [esp], esi
call edi
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x134]
mov edx, dword [ecx + 0xc]
lea edi, [esp + 0xd4]
mov ebx, eax
xor eax, eax
call fcn.00471d46
mov ecx, dword [esp + 0x118]
mov dword [esp + 0xf4], ecx
mov ecx, dword [esp + 0x128]
mov dword [esp + 0xec], ecx
mov ecx, dword [esp + 0x114]
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xd4], edx
lea ecx, [esp + 0xd4]
mov dword [esp], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 5
mov byte [esp + 0x14], 1
call fcn.00449f20
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x6787c4
mov eax, dword [0x95fed8]
mov ecx, dword [0x95fedc]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
mov eax, dword [esp + 0x134]
jmp 0x67885e
cmp eax, 1
je 0x67882e
cmp eax, 2
jne 0x6787eb
mov eax, dword [esp + 0x134]
mov ecx, dword [eax + 0x78]
mov edx, dword [eax + 0x7c]
mov dword [esp + 0x140], ecx
mov dword [esp + 0x144], edx
jmp 0x67885e
cmp eax, 3
jne 0x67880f
mov dword [esp + 0x140], 0
mov dword [esp + 0x144], 0
mov eax, dword [esp + 0x134]
jmp 0x67885e
mov dword [esp + 0x140], 0
mov dword [esp + 0x144], 0
mov eax, dword [esp + 0x134]
jmp 0x67885e
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x90]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
mov eax, dword [esp + 0x134]
mov ecx, dword [esp + 0x80]
movzx edx, byte [ecx + 4]
nop
test dl, dl
je 0x678c98
mov dword [esp], ecx
call fcn.0046ef50
mov eax, dword [esp + 0x140]
test eax, eax
je 0x6788b3
mov ecx, dword [esp + 0x134]
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x6788ac
mov edx, dword [ecx + 0x3c]
test edx, edx
je 0x6788ac
mov ecx, dword [esp + 0x144]
mov ebx, dword [edx]
mov dword [esp], eax
mov dword [esp + 4], ecx
call ebx
add esp, 0x130
ret
mov eax, dword [esp + 0x134]
mov dword [esp], eax
mov ecx, dword [esp + 0x138]
mov dword [esp + 4], ecx
call fcn.00679850
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
test eax, eax
je 0x67894c
cmp dword [0x95fee0], eax
jne 0x678917
mov edx, dword [0x95fee4]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.004044b0
movzx eax, byte [esp + 0xc]
test al, al
je 0x678917
mov eax, dword [esp + 0x134]
jmp 0x678963
mov eax, dword [esp + 0x134]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x678945
mov edx, dword [eax + 0x3c]
test edx, edx
je 0x678945
mov eax, dword [esp + 0x140]
mov ecx, dword [esp + 0x144]
mov ebx, dword [edx]
mov dword [esp], eax
mov dword [esp + 4], ecx
call ebx
add esp, 0x130
ret
mov eax, dword [esp + 0x134]
mov byte [eax + 0xc8], 1
jmp 0x678963
mov byte [eax + 0xc8], 1
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x678991
mov edx, dword [ecx + 0x3c]
test edx, edx
je 0x678991
mov eax, dword [esp + 0x140]
mov ecx, dword [esp + 0x144]
mov ebx, dword [edx]
mov dword [esp], eax
mov dword [esp + 4], ecx
call ebx
mov eax, dword [esp + 0x134]
mov ecx, dword [esp + 0x94]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x50]
test edx, edx
je 0x6789af
mov ebx, dword [edx + 0xa0]
mov edx, dword [edx + 0xa4]
jmp 0x6789b3
xor edx, edx
xor ebx, ebx
test ebx, ebx
xchg ebp, ebx
setne bl
xchg ebp, ebx
test edx, edx
xchg esi, ebx
setne bl
xchg esi, ebx
or esi, ebp
xchg esi, eax
mov byte [esp + 0x23], al
xchg esi, eax
xchg esi, eax
test al, al
xchg esi, eax
jne 0x6789dc
xor ecx, ecx
xor edx, edx
jmp 0x678a5f
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.00672fa0
mov eax, dword [esp + 0xc]
test byte [eax], al
mov ecx, dword [esp + 0x10]
lea edx, [0x678d00]
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], ecx
lea edx, [esp + 0xc8]
mov dword [esp + 0x12c], edx
mov byte [esp + 0x22], 1
mov eax, dword [eax + 0xc]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x134]
mov edx, dword [ecx + 0x8c]
movzx esi, byte [esp + 0x23]
mov ecx, eax
mov eax, dword [esp + 0x134]
jmp 0x678a5f
add esp, 0x130
ret
mov eax, dword [esp + 0x134]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x88], edx
mov dword [esp + 0x84], ecx
mov ebx, dword [eax + 0x80]
mov dword [esp + 0x128], ebx
mov ebp, dword [eax + 0x74]
mov dword [esp + 0x114], ebp
mov esi, dword [esp + 0x6c]
mov edi, dword [esi + 0x10]
mov esi, dword [esp + 0x90]
mov dword [esp], esi
call edi
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x134]
mov edx, dword [ecx + 0xc]
lea edi, [esp + 0x98]
mov ebx, eax
xor eax, eax
call fcn.00471d44
mov ecx, dword [esp + 0x128]
mov dword [esp + 0xc0], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0x114]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x98], edx
lea ecx, [esp + 0x98]
mov dword [esp], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 6
mov byte [esp + 0x14], 1
call fcn.00449f20
mov eax, dword [esp + 0x18]
test eax, eax
je 0x678c5b
cmp eax, 1
je 0x678c0f
cmp eax, 2
je 0x678bd1
cmp eax, 3
je 0x678a54
cmp eax, 4
jne 0x678b98
mov eax, dword [0x95fea0]
mov ecx, dword [0x95fea4]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
movzx eax, byte [esp + 0x23]
test al, 1
je 0x678b91
and eax, 0xfffffffe
mov byte [esp + 0x22], al
mov edx, dword [esp + 0x12c]
mov eax, dword [edx]
call eax
add esp, 0x130
ret
mov dword [esp + 0x140], 0
mov dword [esp + 0x144], 0
movzx eax, byte [esp + 0x23]
test al, 1
je 0x678bca
and eax, 0xfffffffe
mov byte [esp + 0x22], al
mov edx, dword [esp + 0x12c]
mov eax, dword [edx]
call eax
add esp, 0x130
ret
mov eax, dword [esp + 0x134]
mov ecx, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov dword [esp + 0x140], ecx
mov dword [esp + 0x144], eax
movzx eax, byte [esp + 0x23]
test al, 1
je 0x678c08
and eax, 0xfffffffe
mov byte [esp + 0x22], al
mov edx, dword [esp + 0x12c]
mov eax, dword [edx]
call eax
add esp, 0x130
ret
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0x90]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
movzx eax, byte [esp + 0x23]
test al, 1
je 0x678c54
and eax, 0xfffffffe
mov byte [esp + 0x22], al
mov edx, dword [esp + 0x12c]
mov eax, dword [edx]
call eax
add esp, 0x130
ret
mov eax, dword [0x95fed8]
mov ecx, dword [0x95fedc]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
movzx eax, byte [esp + 0x23]
test al, 1
je 0x678c91
and eax, 0xfffffffe
mov byte [esp + 0x22], al
mov edx, dword [esp + 0x12c]
mov eax, dword [edx]
call eax
add esp, 0x130
ret
lea eax, [0x6e0660]
mov dword [esp], eax
lea eax, [0x7a37c0]
mov dword [esp + 4], eax
call fcn.0046ae10
lea eax, [0x6e0660]
mov dword [esp], eax
lea eax, [0x7a3830]
mov dword [esp + 4], eax
call fcn.0046ae10
lea eax, [0x6e0660]
mov dword [esp], eax
lea eax, [0x7a3828]
mov dword [esp + 4], eax
call fcn.0046ae10
nop
call fcn.00435ae0
add esp, 0x130
ret
call fcn.004706b0
jmp fcn.00678140