Function at 0x406690
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x304c
call fcn.00436be0
mov eax, dword [0x455008]
xor eax, esp
mov dword [esp + 0x3048], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x1c], ebx
mov eax, 0x10002
mov dword [esp + 0x10], esi
push edi
mov edi, edx
test ebx, ebx
jne 0x4066f0
mov dword [0x457ecc], ecx
mov byte [0x457ec8], cl
mov dword [0x457ec4], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3048]
xor ecx, esp
call fcn.00415f69
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x794], 0
jne 0x406705
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x794], eax
cmp byte [0x4558d0], 0
je 0x406761
cmp dword [ebx], 1
jne 0x406815
cmp dword [ebx + 0x5c], 0
je 0x406761
cmp dword [ebx + 0xc], 0x80000003
jne 0x406761
cmp byte [edi + 0x79a], 0
je 0x406740
push 0x446a88
push 1
push 0
call fcn.00414dd0
add esp, 0xc
mov byte [0x4558d0], 0
mov eax, 0x10002
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3048]
xor ecx, esp
call fcn.00415f69
mov esp, ebp
pop ebp
ret
cmp dword [ebx], 1
jne 0x406815
cmp dword [ebx + 0xc], 0x80000003
lea ecx, [ebx + 0xc]
mov dword [esp + 0x24], ecx
jne 0x406815
mov edx, dword [ebx + 0x18]
mov eax, dword [0x457ec4]
cmp edx, eax
jne 0x406815
cmp byte [0x457ec8], 1
jne 0x4067bd
cmp dword [ebx + 0x5c], 0
je 0x4067ad
cmp byte [edi + 0x79a], 0
je 0x4067ea
push 0x446ae0
jmp 0x4067de
cmp byte [edi + 0x79a], 0
je 0x4067ea
push 0x446b40
jmp 0x4067de
cmp dword [0x457ecc], 0xa
jle 0x406834
cmp dword [ebx + 0x5c], 0
je 0x406834
cmp edx, eax
jne 0x406834
cmp byte [edi + 0x79a], 0
je 0x4067ea
push 0x446ba0
push 1
push 0
call fcn.00414dd0
add esp, 0xc
mov dword [0x457ecc], 0
mov eax, 0x10002
mov byte [0x457ec8], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3048]
xor ecx, esp
call fcn.00415f69
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [0x457ecc], 0
lea ecx, [ebx + 0xc]
mov byte [0x457ec8], 0
mov dword [0x457ec4], eax
mov dword [esp + 0x24], ecx
test esi, esi
je 0x40683e
mov dword [esi], 0
mov eax, dword [ebx]
dec eax
cmp eax, 8
ja case.default.0x40684a
jmp dword [eax*4 + 0x407864]
push 0x800
lea eax, [esp + 0x82c]
push 0
push eax
call fcn.00417b90
add esp, 0xc
lea eax, [esp + 0x1028]
push 0x800
push 0
push eax
call fcn.00417b90
mov edx, dword [ebx + 0xc]
lea esi, [ebx + 0xc]
add esp, 0xc
cmp dword [ebx + 0x5c], 0
je 0x406b38
mov eax, 0x80010001
mov dword [esp + 0x14], eax
cmp edx, 0x80000003
jne 0x4068cb
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [0x457ec4]
jne 0x4068b9
mov ecx, dword [0x457ecc]
inc ecx
mov byte [esp + 0x1b], 0
jmp 0x4068d7
mov dword [0x457ec4], ecx
mov ecx, 1
mov byte [esp + 0x1b], 0
jmp 0x4068d7
xor ecx, ecx
mov dword [0x457ec4], ecx
mov byte [esp + 0x1b], cl
cmp byte [edi + 0x5d], 0
mov bl, byte [esp + 0x1b]
mov byte [0x457ec8], bl
mov ebx, dword [esp + 0x20]
mov dword [0x457ecc], ecx
je 0x4068fd
cmp edx, 0xe0434f4d
je 0x406999
cmp ecx, 1
jg 0x406999
lea eax, [esp + 0x1028]
mov edx, ebx
push eax
lea eax, [esp + 0x82c]
push eax
call fcn.00407890
lea ecx, [esp + 0x1030]
add esp, 8
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406930
mov eax, dword [esi]
sub ecx, edx
sar ecx, 1
mov edx, dword [edi + 0xfc]
je 0x406974
lea ecx, [esp + 0x1028]
test edx, edx
push ecx
lea ecx, [esp + 0x82c]
push ecx
push eax
push 0x446bfc
sete al
movzx eax, al
push 1
push eax
call fcn.00414dd0
add esp, 0x18
jmp 0x406995
lea ecx, [esp + 0x828]
test edx, edx
push ecx
push eax
push 0x446c30
sete al
movzx eax, al
push 1
push eax
call fcn.00414dd0
add esp, 0x14
mov eax, dword [esp + 0x14]
cmp dword [edi + 0xfc], 1
jne 0x4069f7
mov esi, dword [esi]
cmp esi, 0x80000003
jne 0x406a0c
cmp byte [edi + 0xd8], 0
jne 0x4069f7
push 0x80
call fcn.00416174
add esp, 4
mov dword [esp + 0x10], eax
mov ecx, eax
push edi
call fcn.00411b50
mov esi, eax
lea eax, [ebx + 0xc]
push eax
push 0
push dword [eax]
lea eax, [esp + 0x834]
mov ecx, esi
push eax
push 1
push dword [ebx + 8]
call fcn.004125b0
mov ecx, esi
call fcn.00411c40
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3048]
xor ecx, esp
call fcn.00415f69
mov esp, ebp
pop ebp
ret
cmp esi, 0x80000004
je 0x4069f7
cmp byte [edi + 0x5d], 0
je 0x406a22
cmp esi, 0xe0434f4d
je 0x4069f7
push 0x1028
lea eax, [esp + 0x202c]
push 0
push eax
call fcn.00417b90
lea ecx, [esp + 0x1034]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406a43
sub ecx, edx
sar ecx, 1
je 0x406a81
lea eax, [esp + 0x1028]
push eax
lea eax, [esp + 0x82c]
push eax
push esi
push 0x446c58
lea eax, [esp + 0x2038]
push 0x814
push eax
call fcn.004013f0
add esp, 0x18
jmp 0x406aa4
lea eax, [esp + 0x828]
push eax
push esi
push 0x445ca0
lea eax, [esp + 0x2034]
push 0x814
push eax
call fcn.004013f0
add esp, 0x14
mov eax, dword [edi + 0x100]
mov esi, dword [eax]
cmp esi, eax
je 0x4069f3
nop dword [eax]
nop dword [eax + eax]
mov edx, dword [esi + 8]
lea ecx, [esp + 0x2028]
call fcn.0040a090
test al, al
jne 0x406af8
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [edi + 0x100]
jne 0x406ac0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3048]
xor ecx, esp
call fcn.00415f69
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x108]
mov esi, dword [eax]
cmp esi, eax
je 0x4069b5
nop dword [eax + eax]
mov edx, dword [esi + 8]
lea ecx, [esp + 0x2028]
call fcn.0040a090
test al, al
jne 0x4069f3
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [edi + 0x108]
jne 0x406b10
jmp 0x4069b5
cmp edx, 0x80000003
jne 0x406b8d
cmp byte [edi + 0x79a], 0
je 0x406b5a
push 0x446c78
push 1
push 0
call fcn.00414dd0
add esp, 0xc
mov eax, dword [ebx + 0x18]
mov dword [0x457ec4], eax
mov eax, 0x10002
mov dword [0x457ecc], 0
mov byte [0x457ec8], 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3048]
xor ecx, esp
call fcn.00415f69
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x1028]
mov dword [0x457ecc], 0
push eax
lea eax, [esp + 0x82c]
mov byte [0x457ec8], 0
push eax
mov edx, ebx
mov dword [0x457ec4], 0
mov dword [edi + 0xfc], 2
mov byte [edi + 0x78c], 0
call fcn.00407890
lea ecx, [esp + 0x1030]
add esp, 8
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406be0
mov eax, dword [esi]
sub ecx, edx
sar ecx, 1
je 0x406c17
lea ecx, [esp + 0x1028]
push ecx
lea ecx, [esp + 0x82c]
push ecx
push eax
push 0x446cc4
push 1
push 0
call fcn.00414dd0
add esp, 0x18
jmp 0x406c31
lea ecx, [esp + 0x828]
push ecx
push eax
push 0x446cf8
push 1
push 0
call fcn.00414dd0
add esp, 0x14
push 0x80
call fcn.00416174
add esp, 4
mov dword [esp + 0x10], eax
mov ecx, eax
push edi
call fcn.00411b50
mov esi, eax
lea eax, [ebx + 0xc]
push eax
push 0
mov ecx, esi
mov byte [esi + 0x4c], 0
push dword [eax]
lea eax, [esp + 0x834]
push eax
push 0
push dword [ebx + 8]
call fcn.004125b0
mov ecx, esi
call fcn.00411c40
mov eax, 0x10002
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3048]
xor ecx, esp
call fcn.00415f69
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x17a8], 0
jne 0x406ca8
cmp byte [edi + 0x17a9], 0
jne 0x406ca8
cmp byte [edi + 0x79a], 0
je 0x406cbc
push dword [ebx + 8]
push 0x446d20
push 1
push 0
call fcn.00414dd0
add esp, 0x10
cmp byte [edi + 0x17a8], 0
je case.default.0x40684a
push 0x80
call fcn.00416174
add esp, 4
mov dword [esp + 0x10], eax
mov ecx, eax
push edi
call fcn.00411b50
mov esi, dword [ebx + 8]
mov edi, eax
push ecx
push esi
mov ecx, edi
call fcn.00413220
push 0x208
call fcn.0041f021
add esp, 4
mov dword [edi + 0x24], eax
push esi
push 0x4514b0
push 0x104
push eax
call fcn.004013f0
add esp, 0x10
mov byte [edi + 0x2c], 0
mov ecx, edi
mov dword [edi + 0x30], 0x4514f8
mov dword [edi + 0x50], 0
call fcn.00413300
test eax, eax
js 0x406d38
mov ecx, edi
call fcn.00413470
mov ecx, edi
call fcn.00411c40
mov eax, 0x10002
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3048]
xor ecx, esp
call fcn.00415f69
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x79a], 0
je 0x406d76
push dword [ebx + 4]
push 0x446d54
push 1
push 0
call fcn.00414dd0
add esp, 0x10
mov eax, dword [ebx + 0xc]
test eax, eax
je case.default.0x40684a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x10002
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3048]
xor ecx, esp
call fcn.00415f69
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x17a8], 0
jne 0x406dbd
cmp byte [edi + 0x17a9], 0
jne 0x406dbd
cmp byte [edi + 0x79a], 0
je 0x406dd3
push dword [ecx]
push dword [ebx + 8]
push 0x446d88
push 1
push 0
call fcn.00414dd0
add esp, 0x14
cmp byte [edi + 0x17a9], 0
je case.default.0x40684a
push 0x80
call fcn.00416174
add esp, 4
mov dword [esp + 0x10], eax
mov ecx, eax
push edi
call fcn.00411b50
mov edi, dword [ebx + 8]
lea ecx, [ebx + 0xc]
mov esi, dword [ecx]
mov ebx, eax
push ecx
push edi
mov ecx, ebx
mov dword [esp + 0x18], eax
call fcn.00413220
push 0x208
call fcn.0041f021
add esp, 4
mov dword [ebx + 0x24], eax
push esi
push edi
push 0x451518
push 0x104
push eax
call fcn.004013f0
add esp, 0x14
mov byte [ebx + 0x2c], 0
mov ecx, ebx
mov dword [ebx + 0x30], 0x451578
mov dword [ebx + 0x50], 0
call fcn.00413300
test eax, eax
js 0x406e59
mov ecx, ebx
call fcn.00413470
mov ecx, ebx
call fcn.00411c40
mov eax, 0x10002
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3048]
xor ecx, esp
call fcn.00415f69
mov esp, ebp
pop ebp
ret
push dword [ecx]
push dword [ebx + 4]
push 0x446de0
push 1
push 0
call fcn.00414dd0
add esp, 0x14
cmp byte [edi + 0x78c], 0
je 0x406f30
cmp dword [0x456674], 0
jne 0x406f30
cmp dword [edi + 0x790], 0
je 0x406ec7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x794]
cmp eax, dword [edi + 0x790]
jb 0x406f30
push 0x80
call fcn.00416174
add esp, 4
mov dword [esp + 0x10], eax
mov ecx, eax
push edi
call fcn.00411b50
push 0x410
mov esi, eax
call fcn.0041f021
add esp, 4
mov dword [esi + 0x24], eax
push 0x451590
push 0x208
push eax
call fcn.004013f0
add esp, 0xc
mov byte [esi + 0x2c], 0
mov ecx, esi
mov dword [esi + 0x30], 0x4515c0
mov dword [esi + 0x50], 0
call fcn.00413300
test eax, eax
js 0x406f29
mov ecx, esi
call fcn.00413470
mov ecx, esi
call fcn.00411c40
mov byte [0x456678], 1
mov eax, 0x10002
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3048]
xor ecx, esp
call fcn.00415f69
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x17a6], 0
jne 0x406f74
cmp byte [edi + 0x17a7], 0
jne 0x406f74
cmp byte [edi + 0x79a], 0
jne 0x406f74
test esi, esi
je case.default.0x40684a
push 0x800
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], 1
push 0
push eax
call fcn.00417b90
mov eax, dword [ebx + 0x1c]
add esp, 0xc
test eax, eax
je 0x407006
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], 0
push ecx
push 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], 0
push ecx
push eax
push dword [0x4558d4]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x407006
cmp dword [esp + 0x20], 4
jne 0x407006
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x407006
lea ecx, [esp + 0x20]
push ecx
push 0x800
lea ecx, [esp + 0x30]
push ecx
push eax
push dword [0x4558d4]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x406ffd
movzx ecx, word [ebx + 0x20]
mov dword [esp + 0x10], ecx
jmp 0x40700b
xor eax, eax
mov word [esp + 0x28], ax
jmp 0x407015
mov ecx, 1
mov ax, word [esp + 0x28]
test ax, ax
jne 0x407038
push ecx
mov ecx, dword [ebx + 0x10]
lea edx, [esp + 0x2c]
call fcn.00407d80
mov ecx, dword [esp + 0x14]
add esp, 4
test eax, eax
mov edx, 1
mov ax, word [esp + 0x28]
cmove ecx, edx
test esi, esi
je 0x407125
test ax, ax
je 0x407125
lea eax, [esp + 0x28]
push 0x5c
push eax
test cx, cx
je 0x4070b8
call fcn.004176b8
mov esi, eax
add esp, 8
test esi, esi
je 0x407068
add esi, 2
jmp 0x40706c
lea esi, [esp + 0x28]
push 0x446e34
push esi
call fcn.0041eafa
add esp, 8
test eax, eax
jne 0x40708d
mov eax, dword [esp + 0x14]
mov dword [eax], 2
jmp 0x407125
push 0x446e50
push esi
call fcn.0041eafa
add esp, 8
test eax, eax
jne 0x4070ab
mov eax, dword [esp + 0x14]
mov dword [eax], 4
jmp 0x407125
push 0x446e60
push esi
call fcn.0041eafa
jmp 0x407114
call fcn.00417760
mov esi, eax
add esp, 8
test esi, esi
je 0x4070c9
inc esi
jmp 0x4070cd
lea esi, [esp + 0x28]
push 0x446e78
push esi
call fcn.0041fe30
add esp, 8
test eax, eax
jne 0x4070eb
mov eax, dword [esp + 0x14]
mov dword [eax], 2
jmp 0x407125
push 0x446e88
push esi
call fcn.0041fe30
add esp, 8
test eax, eax
jne 0x407109
mov eax, dword [esp + 0x14]
mov dword [eax], 4
jmp 0x407125
push 0x446e90
push esi
call fcn.0041fe30
add esp, 8
test eax, eax
jne 0x407125
mov eax, dword [esp + 0x14]
mov dword [eax], 0x1001
cmp byte [edi + 0x17a6], 0
jne 0x407140
cmp byte [edi + 0x17a7], 0
jne 0x407140
cmp byte [edi + 0x79a], 0
je 0x407159
lea eax, [esp + 0x28]
push eax
push dword [ebx + 0x10]
push 0x446ea0
push 1
push 0
call fcn.00414dd0
add esp, 0x14
cmp byte [edi + 0x17a6], 0
je 0x407278
mov eax, dword [edi + 0x100]
mov esi, dword [eax]
cmp esi, eax
je 0x407278
nop word [eax + eax]
mov edx, dword [esi + 8]
lea ecx, [esp + 0x28]
call fcn.0040a090
test al, al
jne 0x4071a1
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [edi + 0x100]
jne 0x407180
jmp 0x407278
mov eax, dword [edi + 0x108]
mov esi, dword [eax]
cmp esi, eax
je 0x4071d0
nop dword [eax]
mov edx, dword [esi + 8]
lea ecx, [esp + 0x28]
call fcn.0040a090
test al, al
jne 0x407278
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [edi + 0x108]
jne 0x4071b0
push 0x80
call fcn.00416174
add esp, 4
mov dword [esp + 0x10], eax
mov ecx, eax
push edi
call fcn.00411b50
mov edi, dword [ebx + 8]
mov esi, eax
mov eax, dword [ebx + 0x10]
push ecx
push edi
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.00413220
push 0x288
call fcn.0041f021
add esp, 4
mov dword [esi + 0x24], eax
cmp word [esp + 0x28], 0
je 0x407235
lea ecx, [esp + 0x28]
push ecx
push dword [esp + 0x14]
push edi
push 0x451300
push 0x144
push eax
call fcn.004013f0
add esp, 0x18
jmp 0x40724d
push dword [esp + 0x10]
push edi
push 0x451360
push 0x144
push eax
call fcn.004013f0
add esp, 0x14
mov ecx, esi
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0x4513b4
mov dword [esi + 0x50], 0
call fcn.00413300
test eax, eax
js 0x407271
mov ecx, esi
call fcn.00413470
mov ecx, esi
call fcn.00411c40
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
test eax, eax
je case.default.0x40684a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x10002
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3048]
xor ecx, esp
call fcn.00415f69
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x17a6], 0
jne 0x4072c6
cmp byte [edi + 0x17a7], 0
jne 0x4072c6
cmp byte [edi + 0x79a], 0
je case.default.0x40684a
push 0x800
lea eax, [esp + 0x182c]
push 0
push eax
call fcn.00417b90
mov ecx, dword [ebx + 0xc]
lea edx, [esp + 0x1834]
add esp, 8
call fcn.00407d80
add esp, 4
cmp byte [edi + 0x17a6], 0
jne 0x40730a
cmp byte [edi + 0x17a7], 0
jne 0x40730a
cmp byte [edi + 0x79a], 0
je 0x407326
lea eax, [esp + 0x1828]
push eax
push dword [ebx + 0xc]
push 0x446ee8
push 1
push 0
call fcn.00414dd0
add esp, 0x14
cmp byte [edi + 0x17a7], 0
je case.default.0x40684a
mov eax, dword [edi + 0x100]
mov esi, dword [eax]
cmp esi, eax
je case.default.0x40684a
nop dword [eax]
nop word [eax + eax]
mov edx, dword [esi + 8]
lea ecx, [esp + 0x1828]
call fcn.0040a090
test al, al
jne 0x407374
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [edi + 0x100]
jne 0x407350
jmp case.default.0x40684a
mov eax, dword [edi + 0x108]
mov esi, dword [eax]
cmp esi, eax
je 0x4073a3
mov edx, dword [esi + 8]
lea ecx, [esp + 0x1828]
call fcn.0040a090
test al, al
jne case.default.0x40684a
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [edi + 0x108]
jne 0x407380
push 0x80
call fcn.00416174
add esp, 4
mov dword [esp + 0x10], eax
mov ecx, eax
push edi
call fcn.00411b50
mov edi, dword [ebx + 8]
lea ecx, [ebx + 0xc]
mov esi, eax
mov eax, dword [ecx]
push ecx
push edi
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.00413220
push 0x208
call fcn.0041f021
add esp, 4
mov dword [esi + 0x24], eax
cmp word [esp + 0x1828], 0
je 0x407410
lea ecx, [esp + 0x1828]
push ecx
push dword [esp + 0x14]
push edi
push 0x4513d0
push 0x144
push eax
call fcn.004013f0
add esp, 0x18
jmp 0x407428
push dword [esp + 0x10]
push edi
push 0x451438
push 0x144
push eax
call fcn.004013f0
add esp, 0x14
mov ecx, esi
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0x451490
mov dword [esi + 0x50], 0
call fcn.00413300
test eax, eax
js 0x40744c
mov ecx, esi
call fcn.00413470
mov ecx, esi
call fcn.00411c40
mov eax, 0x10002
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3048]
xor ecx, esp
call fcn.00415f69
mov esp, ebp
pop ebp
ret
cmp word [ebx + 0x10], 0
movzx eax, word [ebx + 0x12]
je 0x407632
lea eax, [eax*2 + 2]
push eax
call fcn.0041f021
mov ecx, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
movzx eax, word [ebx + 0x12]
mov ebx, dword [esp + 0x20]
add eax, eax
push eax
push ebx
push dword [ecx]
push dword [0x4558d4]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x40760f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40760f
shr eax, 1
xor ecx, ecx
push ebx
push 0x445f30
push 1
mov word [ebx + eax*2], cx
cmp byte [edi + 0x131], cl
sete al
movzx eax, al
push eax
call fcn.00414dd0
add esp, 0x10
cmp byte [edi + 0x131], 0
je 0x40760f
mov eax, dword [edi + 0x100]
mov esi, dword [eax]
cmp esi, eax
je 0x40760f
mov edx, dword [esi + 8]
mov ecx, ebx
call fcn.0040a090
test al, al
jne 0x40754e
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [edi + 0x100]
jne 0x407511
push ebx
call fcn.0041f006
add esp, 4
mov eax, 0x10002
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3048]
xor ecx, esp
call fcn.00415f69
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x108]
mov esi, dword [eax]
cmp esi, eax
je 0x40757e
nop word [eax + eax]
mov edx, dword [esi + 8]
mov ecx, ebx
call fcn.0040a090
test al, al
jne 0x40760f
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [edi + 0x108]
jne 0x407560
push 0x80
call fcn.00416174
add esp, 4
mov dword [esp + 0x1c], eax
mov ecx, eax
push edi
call fcn.00411b50
mov esi, ebx
mov edi, eax
lea eax, [esi + 2]
nop
mov cx, word [esi]
add esi, 2
test cx, cx
jne 0x4075a0
sub esi, eax
sar esi, 1
inc esi
lea eax, [esi + esi]
push eax
call fcn.0041f021
add esp, 4
mov dword [edi + 0x40], eax
push ebx
push esi
push eax
call fcn.0041fa9e
add esi, 0x104
add esp, 0xc
lea eax, [esi + esi]
push eax
call fcn.0041f021
add esp, 4
mov dword [edi + 0x24], eax
push ebx
push 0x4512ac
push esi
push eax
call fcn.004013f0
add esp, 0x10
mov byte [edi + 0x2c], 0
mov ecx, edi
mov dword [edi + 0x30], 0x4512e4
mov dword [edi + 0x50], 0
call fcn.00413300
mov ecx, edi
call fcn.00411c40
push ebx
call fcn.0041f006
add esp, 4
mov eax, 0x10002
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3048]
xor ecx, esp
call fcn.00415f69
mov esp, ebp
pop ebp
ret
inc eax
push eax
call fcn.0041f021
add esp, 4
mov dword [esp + 0x10], 0
mov esi, eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], esi
push eax
movzx eax, word [ebx + 0x12]
push eax
push esi
push dword [ebx + 0xc]
push dword [0x4558d4]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4077ec
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4077ec
mov byte [eax + esi], 0
test esi, esi
je 0x4077ec
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [esp + 0x1c], eax
add eax, eax
push eax
call fcn.0041f021
mov ebx, eax
add esp, 4
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x4077ec
push dword [esp + 0x1c]
push ebx
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp byte [edi + 0x131], 0
push ebx
push 0x445f30
sete al
movzx eax, al
push 1
push eax
call fcn.00414dd0
add esp, 0x10
cmp byte [edi + 0x131], 0
je 0x4077e3
mov eax, dword [edi + 0x100]
mov ecx, ebx
mov esi, dword [eax]
cmp esi, eax
je 0x4077df
mov edx, dword [esi + 8]
mov ecx, ebx
call fcn.0040a090
test al, al
jne 0x407720
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [edi + 0x100]
jne 0x407701
jmp 0x4077df
mov eax, dword [edi + 0x108]
mov esi, dword [eax]
cmp esi, eax
je 0x40774e
nop dword [eax]
mov edx, dword [esi + 8]
mov ecx, ebx
call fcn.0040a090
test al, al
jne 0x4077df
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [edi + 0x108]
jne 0x407730
push 0x80
call fcn.00416174
add esp, 4
mov dword [esp + 0x1c], eax
mov ecx, eax
push edi
call fcn.00411b50
mov esi, ebx
mov edi, eax
lea eax, [esi + 2]
nop
mov cx, word [esi]
add esi, 2
test cx, cx
jne 0x407770
sub esi, eax
sar esi, 1
inc esi
lea eax, [esi + esi]
push eax
call fcn.0041f021
add esp, 4
mov dword [edi + 0x40], eax
push ebx
push esi
push eax
call fcn.0041fa9e
add esi, 0x104
add esp, 0xc
lea eax, [esi + esi]
push eax
call fcn.0041f021
add esp, 4
mov dword [edi + 0x24], eax
push ebx
push 0x4512ac
push esi
push eax
call fcn.004013f0
add esp, 0x10
mov byte [edi + 0x2c], 0
mov ecx, edi
mov dword [edi + 0x30], 0x4512e4
mov dword [edi + 0x50], 0
call fcn.00413300
mov ecx, edi
call fcn.00411c40
mov esi, dword [esp + 0x14]
push ebx
call fcn.0041f006
add esp, 4
push esi
call fcn.0041f006
add esp, 4
mov eax, 0x10002
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3048]
xor ecx, esp
call fcn.00415f69
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x10]
cmp eax, 1
je 0x40781c
cmp eax, 2
jne 0x407832
push dword [0x457eb8]
mov dword [0x456674], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebx + 0xc]
mov edx, 0x446f34
push 0x44514c
call fcn.0040a300
mov ecx, dword [esp + 0x3058]
add esp, 4
mov eax, 0x10002
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00415f69
mov esp, ebp
pop ebp
ret