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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov esi, dword [esi + 8]
add esi, 0xfffffffc
xor eax, eax
mov dword [ebp - 0xc], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [ebp - 4], 1
jne 0x66724d
cmp word [eax], 8
jne 0x66724d
mov byte [ebp - 0x25], 0
jmp 0x66728f
mov byte [ebp - 0x25], 1
mov edx, dword [ebp - 4]
dec edx
test edx, edx
jl 0x66728f
inc edx
movzx ecx, word [eax]
sub cx, 2
je 0x667289
sub cx, 2
je 0x667289
sub cx, 4
je 0x667289
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx - 8]
jne 0x667283
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 8]
cmp word [ecx], 0x20
je 0x667289
mov byte [ebp - 0x25], 0
jmp 0x66728f
add eax, 2
dec edx
jne 0x66725a
xor eax, eax
cmp byte [ebp - 0x25], 0
jne 0x66730c
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov eax, dword [esi]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x6672b0
adc edx, 0
add edx, ebx
mov eax, dword [esi]
mov ecx, dword [eax + 0x28]
mov eax, dword [esi]
mov eax, dword [eax + 0xac]
call fcn.00651804
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x24]
call fcn.0065171c
mov edi, eax
cmp edi, dword [ebp - 0xc]
jge 0x6672de
mov eax, dword [ebp - 0xc]
jmp 0x6672e0
mov eax, edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x1c]
cmp eax, dword [ebp - 0x10]
jg 0x6672f4
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0xc]
mov dword [edx + 0x1c], eax
add ebx, dword [ebp - 8]
cmp ebx, dword [ebp - 4]
jl 0x667297
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax + 0x3c]
xor edx, edx
mov dword [ebp - 0x1c], edx
xor edx, edx
mov dword [ebp - 0x20], edx
cmp byte [ebp - 0x25], 0
jne 0x66737c
mov edx, dword [esi]
mov edx, dword [edx + 0x6c]
cmp edx, dword [ebp - 0xc]
jle 0x66735d
dec al
je 0x667330
dec al
je 0x667338
jmp 0x667355
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x20], edx
jmp 0x66737c
sub edx, dword [ebp - 0xc]
sar edx, 1
jns 0x667342
adc edx, 0
mov dword [ebp - 0x1c], edx
mov eax, dword [esi]
mov eax, dword [eax + 0x6c]
sub eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
jmp 0x66737c
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], edx
jmp 0x66737c
test edx, edx
jl 0x66737c
sub edx, dword [ebp - 0xc]
sar edx, 1
jns 0x66736b
adc edx, 0
mov dword [ebp - 0x1c], edx
mov eax, dword [esi]
mov eax, dword [eax + 0x6c]
sub eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
xor ebx, ebx
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov eax, dword [esi]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x667393
adc edx, 0
add edx, ebx
lea ecx, [ebp - 0x2c]
mov eax, dword [esi]
mov eax, dword [eax + 0x9c]
call fcn.0066f230
add ebx, eax
cmp ebx, dword [ebp - 4]
jge 0x6674ec
mov eax, dword [ebp - 0x2c]
call fcn.0066f124
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x61], 0
jne 0x6674ec
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x28]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x80], eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [0x6467a4]
call fcn.004055ec
test al, al
je 0x667410
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0xd4], 0
je 0x667410
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x28]
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx + 0xd4]
mov dword [edx + 0x80], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + 0x68]
dec al
je 0x66742d
dec al
je 0x66744b
dec eax
sub al, 2
jb 0x6674c5
jmp 0x6674ec
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x20]
jge 0x66743d
mov eax, dword [ebp - 0x20]
jmp 0x667443
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
jmp 0x6674ec
cmp dword [ebp - 0xc], 0
jne 0x66748a
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov eax, dword [esi]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x667466
adc edx, 0
mov eax, dword [esi]
mov eax, dword [eax + 0xac]
call fcn.00651868
lea edx, [ebp - 0x10]
call fcn.0065171c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x1c], edx
mov edi, dword [ebp - 0x18]
sub edi, dword [ebp - 0xc]
sar edi, 1
jns 0x667497
adc edi, 0
cmp edi, dword [ebp - 0x20]
jge 0x6674a1
mov eax, dword [ebp - 0x20]
jmp 0x6674a3
mov eax, edi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0xc]
sub eax, edi
cmp eax, dword [ebp - 0x1c]
jge 0x6674b8
mov eax, dword [ebp - 0x1c]
jmp 0x6674c0
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0xc]
sub eax, edi
mov dword [ebp - 0x1c], eax
jmp 0x6674ec
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 0xc]
sub edx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x18]
sub eax, edx
cmp eax, dword [ebp - 0x1c]
jge 0x6674e3
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
jmp 0x6674e6
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x1c], eax
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x66737e
xor ebx, ebx
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov eax, dword [esi]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x66750d
adc edx, 0
add edx, ebx
lea ecx, [ebp - 0x30]
mov eax, dword [esi]
mov eax, dword [eax + 0xa0]
call fcn.0066f230
add ebx, eax
cmp ebx, dword [ebp - 4]
jge 0x66766c
mov eax, dword [ebp - 0x30]
call fcn.0066f124
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x30]
cmp byte [eax + 0x61], 0
jne 0x66766c
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax + 0x68]
dec al
je 0x667566
dec al
je 0x66758d
dec al
je 0x6675fb
dec al
je 0x66762d
jmp 0x66764f
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x20]
jge 0x667579
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
jmp 0x667582
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x20], eax
jmp 0x66764f
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0x5c]
mov edi, eax
sub edi, dword [ebp - 0xc]
sar edi, 1
jns 0x6675a1
adc edi, 0
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x78]
add eax, edi
cmp eax, dword [ebp - 0x20]
jge 0x6675b6
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x40], eax
jmp 0x6675c1
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x78]
add eax, edi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0x5c]
sub eax, dword [ebp - 0xc]
sub eax, edi
mov edx, dword [ebp - 0x30]
add eax, dword [edx + 0x74]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x44]
jle 0x6675ed
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
jmp 0x6675f3
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x1c], eax
jmp 0x66764f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 0xc]
sub edx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x18]
sub eax, edx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x4c]
jle 0x66761f
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x50], eax
jmp 0x667625
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x1c], eax
jmp 0x66764f
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x1c]
jge 0x667640
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x54], eax
jmp 0x667649
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0xc]
test al, al
jne 0x66766c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x28]
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x80], eax
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x6674f8
mov eax, dword [esi]
mov eax, dword [eax + 0xa4]
call fcn.00409204
test eax, eax
je 0x6676ce
xor ebx, ebx
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov eax, dword [esi]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x6676a2
adc edx, 0
add edx, ebx
mov eax, dword [esi]
mov ecx, dword [eax + 0x28]
mov eax, dword [esi]
mov eax, dword [eax + 0xac]
call fcn.00651804
add ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 0x24]
call fcn.00651140
cmp ebx, dword [ebp - 4]
jl 0x667689
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0xc]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x10], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 4]
mov dword [eax + 0x18], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [esi]
sub eax, dword [edx + 0x8c]
sar eax, 1
jns 0x66770a
adc eax, 0
add eax, dword [ebp - 4]
mov edx, dword [esi]
mov edx, dword [edx + 0x90]
cmp byte [edx + eax - 1], 2
jne 0x667726
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov byte [eax + 0x44], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x10]
call fcn.006195cc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x10]
call fcn.00619520
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [esi]
cmp eax, dword [edx + 0x8c]
jne 0x667771
mov eax, dword [esi]
add edi, dword [eax + 0xbc]
mov eax, dword [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [eax - 8]
mov eax, dword [esi]
call fcn.006666dc
mov ebx, dword [ebp - 0x5c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
cmp byte [eax + 0x44], 0
je 0x6677ec
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov eax, dword [esi]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x6677b5
adc edx, 0
add edx, dword [ebp - 4]
dec edx
lea ecx, [ebp - 0x34]
mov eax, dword [esi]
mov eax, dword [eax + 0xac]
call fcn.006517bc
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov edx, dword [edx - 8]
call fcn.005bc3e8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 8]
mov edx, 0x667940
call fcn.0046f27c
add ebx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0xb4]
cmp ebx, eax
jl 0x6677fa
mov eax, ebx
mov edx, dword [esi]
mov dword [edx + 0xb4], eax
mov eax, dword [esi]
movzx eax, byte [eax + 0xb0]
dec al
je 0x667819
dec al
je 0x66782f
dec al
je 0x667851
jmp 0x66786a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, edi
sub edx, dword [eax - 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dword [eax + 0x20], edx
jmp 0x6678a7
mov eax, dword [ebp - 0x14]
add eax, edi
sub eax, ebx
sar eax, 1
jns 0x66783d
adc eax, 0
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
sub eax, dword [edx - 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0xc]
mov dword [edx + 0x20], eax
jmp 0x6678a7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x14]
sub edx, dword [eax - 0xc]
sub edx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dword [eax + 0x20], edx
jmp 0x6678a7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, edi
sub edx, dword [eax - 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dword [eax + 0x20], edx
mov eax, dword [ebp + 8]
cmp byte [eax - 0xd], 0
jne 0x6678a7
mov eax, dword [ebp - 0x14]
sub eax, edi
sub eax, ebx
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0xc]
mov dword [edx + 0x34], eax
push ebp
call fcn.006671d0
pop ecx
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0xc]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 0x14]
sub eax, edi
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0xc]
mov dword [edx + 0x28], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 0x1c]
add dword [eax + 8], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0xc]
mov eax, dword [esi]
mov eax, dword [eax + 0x98]
call fcn.004475c8
mov eax, dword [ebp - 4]
add eax, eax
mov edx, dword [ebp + 8]
add dword [edx - 4], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x44]
add eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x20]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0xc]
add eax, dword [edx + 8]
mov edx, dword [esi]
mov dword [edx + 0x44], eax
mov edi, dword [ebp - 0xc]
add edi, dword [ebp - 0x20]
add edi, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add dword [eax + 0x28], edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
cmp eax, edi
jge 0x667922
mov eax, edi
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0xc]
mov dword [edx + 0x14], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret