Function at 0x676720
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x7743f8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
push dword [esp + 0x68]
mov ebx, 4
mov dword [esp + 0x5c], 1
lea ecx, [esp + 0x30]
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov dword [esp + 0x24], ebx
mov byte [esp + 0x28], 0
mov byte [esp + 0x1b], 0
mov byte [esp + 0x1a], 0
call fcn.00675c90
lea ecx, [esp + 0x2c]
mov byte [esp + 0x58], 2
call fcn.00675db0
test al, al
je 0x676819
mov ax, word [esp + 0x2c]
mov word [esp + 0x1c], ax
mov eax, dword [esi + 4]
mov dword [esp + 0x48], eax
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x4c]
mov byte [esp + 0x58], 3
push eax
call fcn.006752d0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 2
call fcn.0070ffc0
push dword [esp + 0x4c]
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x5c], bl
call fcn.00667f90
mov ecx, dword [esi]
add eax, 5
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0064b9e0
push eax
lea ecx, [esp + 0x32]
mov byte [esp + 0x5c], 5
call fcn.006709b0
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], bl
call fcn.0070ffc0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x24], 1
mov byte [esp + 0x58], 2
call fcn.0070ffc0
mov ax, word [esp + 0x6c]
lea ebp, [esi + 8]
lea ecx, [esp + 0x1c]
mov word [esp + 0x1c], ax
mov word [ebp], ax
call fcn.0070ffc0
mov ecx, ebp
call fcn.00675db0
test al, al
je 0x676975
mov ax, word [ebp]
mov word [esp + 0x1c], ax
mov eax, dword [esi + 4]
mov dword [esp + 0x48], eax
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x4c]
mov byte [esp + 0x58], 6
push eax
call fcn.006752d0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 2
call fcn.0070ffc0
push dword [esp + 0x4c]
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x5c], 7
call fcn.00667f90
mov ecx, dword [esi]
add eax, 5
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0064b9e0
push eax
lea ecx, [esi + 0xa]
mov byte [esp + 0x5c], 8
call fcn.006709b0
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 7
call fcn.0070ffc0
lea ecx, [esp + 0x34]
mov byte [esp + 0x16], 1
call fcn.00675280
lea ecx, [esp + 0x68]
mov byte [esp + 0x58], 9
call fcn.00675300
test al, al
je 0x67692c
mov ax, word [esp + 0x68]
mov word [esp + 0x18], ax
mov eax, dword [esi + 4]
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x18]
lea eax, [esp + 0x44]
mov byte [esp + 0x58], 0xa
push eax
call fcn.006752d0
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 9
call fcn.0070ffc0
push dword [esp + 0x44]
mov ecx, dword [esp + 0x44]
mov byte [esp + 0x5c], 0xb
call fcn.00667f90
lea ecx, [esp + 0x44]
mov byte [esp + 0x58], 9
movzx eax, word [eax + 3]
mov word [esp + 0x34], ax
call fcn.0070ffc0
push dword [esp + 0x4c]
mov ecx, dword [esp + 0x4c]
call fcn.00667f90
push dword [esp + 0x34]
mov ecx, dword [esi]
add eax, 3
push eax
call fcn.00652a10
mov eax, dword [esi]
test byte [eax + 0x50], 8
je 0x676959
mov ecx, 0xfffb
and word [eax + 0xc], cx
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], 7
call fcn.0070ffc0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x58], 2
call fcn.0070ffc0
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x24]
mov byte [esp + 0x15], 0
mov byte [esp + 0x34], 1
mov byte [esp + 0x3c], 1
mov byte [esp + 0x38], 0
test ecx, ecx
jne 0x6769ab
xor ebx, ebx
xor al, al
mov byte [esp + 0x30], al
mov ebp, dword [esp + 0x30]
mov byte [esp + 0x14], al
jmp 0x676a0b
movzx eax, byte [edi]
cmp eax, 5
ja case.default.0x6769b7
jmp dword [eax*4 + 0x676dcc]
xor ebx, ebx
xor al, al
mov byte [esp + 0x30], al
mov ebp, dword [esp + 0x30]
mov byte [esp + 0x14], al
jmp 0x676a0b
mov byte [esp + 0x15], 1
mov byte [esp + 0x34], 0
mov byte [esp + 0x3c], 0
movzx ebx, byte [edi + 1]
mov al, bl
and al, 0xf
mov byte [esp + 0x30], al
mov ebp, dword [esp + 0x30]
push ebp
mov byte [esp + 0x18], al
call fcn.0064ce30
mov edx, dword [esp + 0x28]
add esp, 4
test al, al
je 0x676a0b
mov al, byte [edi + 2]
mov byte [esp + 0x38], al
test dl, dl
je 0x676b63
xor eax, eax
movzx edx, dl
cmp byte [esp + 0x17], al
cmovne edx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov ecx, dword [esi]
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x5c], 0xc
call fcn.0064f1a0
test al, al
je 0x676b3c
push dword [esp + 0x38]
mov ecx, dword [esi]
push ebp
call fcn.00646230
mov ebp, eax
test ebp, ebp
js 0x676bee
mov ecx, dword [esi]
movzx edx, byte [ecx + 0x168]
push edx
call fcn.0064c050
mov edi, eax
test ebp, ebp
je 0x676b55
mov eax, dword [esp + 0x20]
inc eax
add eax, edi
mov dword [esp + 0x20], eax
cmp edi, 3
jne 0x676ab7
mov ecx, dword [esi]
mov dl, byte [ecx + 0x169]
and dl, 0xf
cmp dl, 0xc
jne 0x676ab7
call fcn.00644ef0
test al, al
je 0x676ab7
mov ecx, dword [esi]
call fcn.0064f410
mov eax, dword [esi]
mov al, byte [eax + 0x169]
or al, 0x10
mov byte [esp + 0x40], al
push dword [esp + 0x40]
jmp 0x676ac7
mov eax, dword [esi]
mov al, byte [eax + 0x169]
mov byte [esp + 0x48], al
push dword [esp + 0x48]
mov ecx, dword [esi + 4]
lea ebp, [esi + 8]
push ebp
call fcn.00669f40
mov eax, dword [esi]
movzx eax, byte [eax + 0x168]
push eax
call fcn.0064ce30
mov ecx, dword [esi + 4]
add esp, 4
test al, al
mov eax, dword [esi]
push edi
je 0x676af6
add eax, 0x16a
jmp 0x676afb
add eax, 0x16b
push eax
push ebp
call fcn.0066a000
lea ecx, [esp + 0x28]
mov byte [esp + 0x58], 2
call fcn.00675d50
cmp byte [esp + 0x24], 0
je 0x676b63
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
mov ecx, dword [esi]
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x5c], 0xc
call fcn.0064f1a0
mov ebp, dword [esp + 0x30]
test al, al
jne 0x676a44
cmp byte [esp + 0x15], 0
jne 0x676b4a
cmp byte [esp + 0x34], 0
je 0x676b55
cmp byte [esp + 0x14], 0
jne 0x676d33
lea ecx, [esp + 0x28]
mov byte [esp + 0x58], 2
call fcn.00675d50
cmp byte [esp + 0x14], 0
je 0x676d68
cmp byte [esp + 0x34], 0
je 0x676ba1
cmp byte [esp + 0x74], 0
jne 0x676b8e
mov eax, dword [esi]
mov al, byte [eax + 0x169]
and al, 0xe0
cmp al, 0xe0
je 0x676d4e
mov eax, dword [esi]
or ebx, 0x10
not ebx
test byte [eax + 0x169], bl
jne 0x676d5b
cmp byte [esp + 0x15], 0
mov ebp, dword [esp + 0x30]
push ebp
je 0x676c21
mov edi, dword [esp + 0x64]
sub dword [esp + 0x68], 2
add edi, 2
mov dword [esp + 0x64], edi
call fcn.0064ce30
mov ebx, dword [esp + 0x24]
lea ebp, [esi + 8]
mov ecx, dword [esp + 0x68]
add esp, 4
mov edx, dword [esp + 0x24]
test al, al
je 0x676981
inc edi
lea ebp, [esi + 8]
dec ecx
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], ecx
jmp 0x67697d
cmp byte [esp + 0x15], 0
jne 0x676d33
cmp byte [esp + 0x34], 0
jne 0x676d33
mov ax, word [esp + 0x28]
lea ecx, [esp + 0x2e]
mov word [esp + 0x2c], ax
lea eax, [esp + 0x2a]
push eax
call fcn.006709b0
jmp 0x676b55
mov ecx, dword [esi]
call fcn.0064c050
mov ebx, dword [esp + 0x20]
inc ebx
add ebx, eax
cmp byte [esp + 0x16], 0
mov dword [esp + 0x20], ebx
je 0x676d13
push ebp
call fcn.0064ce30
xor ebx, ebx
add esp, 4
test al, al
setne bl
inc ebx
cmp byte [esp + 0x34], 0
je 0x676c95
mov ecx, dword [esi]
mov al, byte [ecx + 0x169]
and al, 0xf
cmp al, 0xc
jne 0x676c8a
call fcn.00644ef0
test al, al
je 0x676c8a
mov ecx, dword [esi]
call fcn.0064f410
mov eax, dword [esi]
push ebx
mov al, byte [eax + 0x169]
or al, 0x10
mov byte [esp + 0x1c], al
lea eax, [esp + 0x1c]
push eax
jmp 0x676cc6
mov eax, dword [esi]
add eax, 0x169
push ebx
push eax
jmp 0x676cc6
mov edi, dword [esp + 0x60]
inc edi
mov al, byte [edi]
and al, 0xf
cmp al, 0xc
jne 0x676cc4
mov ecx, dword [esi]
call fcn.00644ef0
test al, al
je 0x676cc4
mov ecx, dword [esi]
call fcn.0064f410
mov al, byte [edi]
or al, 0x10
mov byte [esp + 0x1c], al
lea eax, [esp + 0x1c]
push ebx
push eax
jmp 0x676cc6
push ebx
push edi
mov ecx, dword [esi + 4]
lea eax, [esi + 8]
push eax
call fcn.0066a000
push dword [esp + 0x70]
mov edi, dword [esp + 0x64]
mov ecx, esi
push dword [esp + 0x40]
push dword [esp + 0x3c]
push edi
call fcn.00677600
test al, al
je 0x676d57
mov ebx, dword [esp + 0x20]
push edi
call fcn.005a7060
mov ecx, dword [esp + 0x68]
lea ebp, [esi + 8]
add edi, eax
add esp, 4
sub ecx, eax
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], ecx
jmp 0x67697d
mov edi, dword [esp + 0x60]
jmp 0x676cf2
inc edi
mov byte [esp + 0x17], 1
mov dl, 1
mov dword [esp + 0x60], edi
dec ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x64], ecx
jmp 0x676981
mov ecx, dword [esi]
push 0x19
call fcn.0064fba0
lea ecx, [esp + 0x28]
mov byte [esp + 0x58], 2
xor esi, esi
call fcn.00675d50
jmp 0x676d87
mov ecx, dword [esi]
push 0x32
call fcn.0064fba0
xor esi, esi
jmp 0x676d87
push 0x32
mov ecx, eax
call fcn.0064fba0
xor esi, esi
jmp 0x676d87
mov ebx, dword [esp + 0x20]
lea ebp, [esi + 8]
cmp byte [esp + 0x16], 0
je 0x676d83
test ebx, ebx
je 0x676d83
mov ecx, dword [esi + 4]
push ebp
call fcn.0066a3a0
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x58], 1
call fcn.00675d50
lea ecx, [esp + 0x68]
mov byte [esp + 0x58], 0
call fcn.0070ffc0
lea ecx, [esp + 0x6c]
mov dword [esp + 0x58], 0xffffffff
call fcn.0070ffc0
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x18