Function at 0x40160b
Capabilities:
Copy file
Create shortcut via ishelllink
Delete file
Delete registry value
Enumerate files on windows
Get file attributes
Move file
Query environment variable
Query or enumerate registry key
Query or enumerate registry value
Read .ini file
Set current directory
Set file attributes
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x1d8
mov edx, dword [0x42f0e8]
and dword [ebp + 0x70], 0
push ebx
push esi
mov esi, dword [ebp + 0x7c]
push edi
push 9
pop ecx
lea edi, [ebp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x44]
mov esi, dword [ebp + 0x48]
mov edi, eax
mov ecx, section..ndata
mov ebx, esi
shl edi, 0xa
add edi, ecx
shl ebx, 0xa
add ebx, ecx
lea ecx, [ebp + 0x44]
mov dword [0x40a100], ecx
mov ecx, dword [ebp + 0x40]
add ecx, 0xfffffffe
mov dword [ebp + 0x6c], edx
cmp ecx, 0x43
ja case.0x401662.68
jmp dword [ecx*4 + 0x402d8b]
push 0
push eax
call fcn.00404e8d
mov eax, 0x7fffffff
jmp case.0x401662.2
inc dword [0x42e8b4]
test edx, edx
je 0x401671
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x401671
push eax
call fcn.0040137c
dec eax
push 0
push eax
call fcn.00401398
jmp case.0x401662.2
push 0
push eax
call fcn.00404e8d
jmp case.0x401662.68
xor ecx, ecx
call fcn.00401443
cmp eax, 1
mov dword [ebp + 0x34], edx
jg 0x4016c2
xor eax, eax
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x401662.68
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x401662.68
shl eax, 2
cmp dword [ebp + 0x4c], 0
jne 0x401709
mov ecx, dword [eax + 0x42f1a0]
mov dword [eax + 0x42f160], ecx
xor ecx, ecx
inc ecx
call fcn.00401443
mov ecx, dword [ebp + 0x44]
mov dword [ebp + 0x34], edx
mov dword [ecx*4 + 0x42f1a0], eax
jmp case.0x401662.68
mov ecx, dword [eax + 0x42f160]
mov dword [eax + 0x42f1a0], ecx
jmp case.0x401662.68
mov esi, dword [ebp + 0x4c]
lea esi, [esi*4 + 0x42f1a0]
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
sete al
and ecx, dword [ebp + 0x50]
mov dword [esi], ecx
mov eax, dword [ebp + eax*4 + 0x44]
jmp case.0x401662.2
push dword [esi*4 + 0x42f1a0]
push edi
call fcn.00405fb3
jmp case.0x401662.68
mov ecx, dword [0x42e8c0]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test ecx, ecx
je 0x401764
push esi
push ecx
call edi
mov eax, dword [ebp + 0x44]
mov ecx, dword [0x42e8ac]
test ecx, ecx
je case.0x401662.68
push eax
push ecx
call edi
jmp case.0x401662.68
push 0xfffffffffffffff0
pop esi
call fcn.00401460
push dword [ebp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne case.0x401662.68
mov dword [ebp + 0x70], 1
jmp case.0x401662.68
push 0xfffffffffffffff0
pop esi
call fcn.00401460
mov edi, eax
push edi
call fcn.00405c92
mov esi, eax
test esi, esi
je 0x401807
push 0x5c
push esi
call fcn.00405c4c
mov esi, eax
mov bl, byte [esi]
mov byte [esi], 0
test bl, bl
jne 0x4017e1
cmp dword [ebp + 0x4c], 0
je 0x4017e1
call fcn.004062cc
test eax, eax
je 0x4017e1
push edi
call fcn.00405aca
jmp 0x4017e7
push edi
call fcn.00405b4c
test eax, eax
je 0x401800
cmp eax, 0xb7
jne 0x4017fd
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x401800
inc dword [ebp + 0x70]
mov byte [esi], bl
inc esi
test bl, bl
jne 0x4017b7
cmp dword [ebp + 0x48], 0
je 0x401836
push 0xffffffffffffffe6
call fcn.00401432
push edi
push 0x435800
call fcn.00406055
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne case.0x401662.68
inc dword [ebp + 0x70]
jmp case.0x401662.68
push 0xfffffffffffffff5
call fcn.00401432
jmp case.0x401662.68
xor esi, esi
call fcn.00401460
push eax
call fcn.00406182
test eax, eax
je 0x401cd3
mov eax, dword [ebp + 0x48]
jmp case.0x401662.2
push 0xffffffffffffffd0
pop esi
call fcn.00401460
push 0xffffffffffffffdf
pop esi
mov edi, eax
call fcn.00401460
push 0x13
pop esi
mov ebx, eax
call fcn.00401460
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x40188b
push 0xffffffffffffffe3
jmp 0x401838
cmp dword [ebp + 0x4c], 0
je 0x401795
push edi
call fcn.00406182
test eax, eax
je 0x401795
push ebx
push edi
call fcn.00406802
push 0xffffffffffffffe4
jmp 0x401838
xor esi, esi
call fcn.00401460
mov esi, eax
lea eax, [ebp + 0x7c]
push eax
push ebx
mov edi, 0x400
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x4018f1
mov eax, dword [ebp + 0x7c]
cmp eax, esi
jbe 0x4018fb
cmp byte [eax], 0
je 0x4018fb
push esi
call fcn.00406182
test eax, eax
je 0x4018f1
add eax, 0x2c
push eax
push dword [ebp + 0x7c]
call fcn.00406055
jmp 0x4018fb
mov byte [ebx], 0
mov dword [ebp + 0x70], 1
cmp dword [ebp + 0x4c], 0
jne case.0x401662.68
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp case.0x401662.68
or esi, 0xffffffff
call fcn.00401460
lea ecx, [ebp + 0x7c]
push ecx
push edi
push 0x400
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne case.0x401662.68
mov dword [ebp + 0x70], 1
mov byte [edi], 0
jmp case.0x401662.68
push 0xffffffffffffffef
pop esi
call fcn.00401460
push eax
push edi
call fcn.00405db6
jmp 0x40178d
push 0x31
pop esi
call fcn.00401460
mov esi, eax
mov eax, dword [ebp + 0x44]
and eax, 7
push esi
mov dword [ebp + 0x68], esi
mov dword [ebp + 0x7c], eax
call fcn.00405c68
push esi
mov esi, 0x40a148
test eax, eax
je 0x401989
push esi
call fcn.00406055
jmp 0x4019a0
push 0x435800
push esi
call fcn.00406055
push eax
call fcn.0040632c
push eax
call sub.KERNEL32.dll_lstrcatA
push esi
call fcn.004060e8
mov ebx, 0x40a948
mov edi, 0x40a548
cmp dword [ebp + 0x7c], 3
jl 0x4019e7
push esi
call fcn.00406182
xor ecx, ecx
test eax, eax
je 0x4019d2
lea ecx, [ebp + 0x54]
push ecx
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov ecx, eax
mov eax, dword [ebp + 0x7c]
add eax, 0xfffffffd
or eax, 0x80000000
and eax, ecx
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 0x7c], eax
cmp dword [ebp + 0x7c], 0
jne 0x4019f3
push esi
call fcn.00405d61
xor eax, eax
cmp dword [ebp + 0x7c], 1
setne al
inc eax
push eax
push 0x40000000
push esi
call fcn.00405d87
mov dword [ebp + 0x6c], eax
cmp eax, 0xffffffff
jne 0x401a80
cmp dword [ebp + 0x7c], 0
jne 0x401a62
push section..ndata
push ebx
call fcn.00406055
push esi
push section..ndata
call fcn.00406055
push dword [ebp + 0x5c]
push edi
call fcn.00406441
push ebx
push section..ndata
call fcn.00406055
mov eax, dword [ebp + 0x44]
sar eax, 3
push eax
push edi
call fcn.00405be6
sub eax, 4
je 0x4019b0
dec eax
je 0x401a75
push esi
push 0xfffffffffffffffa
jmp 0x40166c
push dword [ebp + 0x68]
push 0xffffffffffffffe2
call fcn.00404e8d
cmp dword [ebp + 0x7c], 2
jmp 0x40178f
inc dword [0x42f1a8]
jmp 0x402d7e
push dword [ebp + 0x68]
push 0xffffffffffffffea
call fcn.00404e8d
push dword [ebp + 0x60]
mov ecx, dword [ebp + 0x50]
mov eax, dword [ebp + 0x4c]
inc dword [0x42f1d4]
xor edi, edi
cmp dword [ebp + 0x40], 0x15
push edi
push edi
push dword [ebp + 0x6c]
push ecx
push eax
jne 0x401aac
push 1
jmp 0x401aad
push edi
call fcn.004030ed
dec dword [0x42f1d4]
cmp dword [ebp + 0x54], 0xffffffff
mov ebx, edx
mov dword [ebp + 0x30], eax
jne 0x401ac9
cmp dword [ebp + 0x58], 0xffffffff
je 0x401ad8
lea eax, [ebp + 0x54]
push eax
push edi
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
jg case.0x401662.68
jl 0x401af4
cmp dword [ebp + 0x30], edi
jae case.0x401662.68
cmp dword [ebp + 0x30], 0xfffffffe
jne 0x401b12
cmp ebx, 0xffffffff
jne 0x401b12
push 0xffffffffffffffe9
push esi
call fcn.00406441
push dword [ebp + 0x68]
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x401b1a
push 0xffffffffffffffee
push esi
call fcn.00406441
push 0x200010
push esi
call fcn.00405be6
jmp 0x401671
cmp dword [0x40a014], 0xffffffff
mov dword [ebp + 0x70], 1
je 0x401b43
cmp dword [0x42f140], 0
jmp 0x401bab
cmp dword [0x42f140], 0
je case.0x401662.68
xor esi, esi
call fcn.00401460
mov esi, eax
push esi
call fcn.00405c68
test eax, eax
jne 0x401b90
push 0x436c00
mov edi, 0x40a548
push edi
call fcn.00406055
push edi
call fcn.00406380
push eax
push edi
call fcn.00406055
push edi
push str._s.nsisbin
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
call fcn.004060e8
push 3
push 0x80000000
push esi
call fcn.00405d87
mov dword [0x40a014], eax
cmp eax, 0xffffffff
je case.0x401662.68
and dword [ebp + 0x70], 0
jmp case.0x401662.68
xor esi, esi
call fcn.00401460
push dword [ebp + 0x48]
push eax
call fcn.0040682e
jmp case.0x401662.68
push 0x31
pop esi
call fcn.00401460
push dword [ebp + 0x44]
push eax
call fcn.00405be6
test eax, eax
je 0x401795
cmp eax, dword [ebp + 0x4c]
jne 0x401bf5
mov eax, dword [ebp + 0x50]
jmp case.0x401662.2
cmp eax, dword [ebp + 0x54]
jne case.0x401662.68
mov eax, dword [ebp + 0x58]
jmp case.0x401662.2
push 0xfffffffffffffff0
pop esi
jmp 0x401bbc
xor esi, esi
inc esi
call fcn.00401460
push eax
call sub.KERNEL32.dll_lstrlenA
push eax
jmp 0x401742
push 2
pop ecx
call fcn.00401443
push 3
pop ecx
mov esi, eax
mov dword [ebp + 0x34], edx
call fcn.00401443
mov dword [ebp + 0x7c], esi
xor esi, esi
inc esi
mov ebx, eax
mov dword [ebp - 0x10], edx
call fcn.00401460
push eax
mov dword [ebp + 0x68], eax
call sub.KERNEL32.dll_lstrlenA
cmp dword [ebp + 0x34], 0
mov byte [edi], 0
mov esi, eax
je 0x401c5b
mov esi, dword [ebp + 0x7c]
test esi, esi
je case.0x401662.68
test ebx, ebx
jge 0x401c6f
add ebx, eax
js case.0x401662.68
cmp ebx, eax
jle 0x401c75
mov ebx, eax
mov eax, dword [ebp + 0x68]
add eax, ebx
push eax
push edi
call fcn.00406055
test esi, esi
jge 0x401c96
push edi
call sub.KERNEL32.dll_lstrlenA
add esi, eax
jns 0x401c96
and dword [ebp + 0x7c], 0
mov esi, dword [ebp + 0x7c]
cmp esi, 0x400
jge case.0x401662.68
mov byte [esi + edi], 0
jmp case.0x401662.68
push 0x20
pop esi
call fcn.00401460
push 0x31
pop esi
mov edi, eax
call fcn.00401460
cmp dword [ebp + 0x54], 0
push eax
push edi
jne 0x401cdb
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401bed
mov eax, dword [ebp + 0x4c]
jmp case.0x401662.2
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
jmp 0x401ccb
xor esi, esi
inc esi
call fcn.00401460
push 0x400
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x401d10
cmp dword [ebp + 0x4c], 0
je 0x401d16
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x401d16
mov dword [ebp + 0x70], esi
mov byte [edi], 0
mov byte [edi + 0x3ff], 0
jmp case.0x401662.68
mov esi, dword [ebp + 0x58]
xor ecx, ecx
call fcn.00401443
xor ecx, ecx
inc ecx
mov edi, eax
mov dword [ebp + 0x34], edx
call fcn.00401443
mov dword [ebp + 0x34], edx
test esi, esi
jne 0x401d52
cmp edi, eax
jl 0x401bed
jle 0x401cd3
mov eax, dword [ebp + 0x54]
jmp case.0x401662.2
cmp edi, eax
jb 0x401bed
jbe 0x401cd3
jmp 0x401d4a
xor ecx, ecx
inc ecx
call fcn.00401443
push 2
pop ecx
mov esi, eax
mov dword [ebp + 0x34], edx
call fcn.00401443
mov ecx, eax
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x34], edx
cmp eax, 0xd
ja case.default.0x401d84
jmp dword [eax*4 + 0x402e9b]
add esi, ecx
jmp case.default.0x401d84
sub esi, ecx
jmp case.default.0x401d84
imul ecx, esi
mov esi, ecx
jmp case.default.0x401d84
test ecx, ecx
je 0x401da5
mov eax, esi
cdq
idiv ecx
jmp 0x401dc3
xor esi, esi
mov dword [ebp + 0x70], 1
jmp case.default.0x401d84
or ecx, esi
jmp 0x401d96
and ecx, esi
jmp 0x401d96
xor ecx, esi
jmp 0x401d96
xor eax, eax
test esi, esi
sete al
mov esi, eax
jmp case.default.0x401d84
test esi, esi
jne 0x401dcf
test ecx, ecx
je 0x401dd8
xor esi, esi
inc esi
jmp case.default.0x401d84
test esi, esi
jne 0x401dcb
xor esi, esi
jmp case.default.0x401d84
test ecx, ecx
je 0x401da5
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp case.default.0x401d84
shl esi, cl
jmp case.default.0x401d84
sar esi, cl
jmp case.default.0x401d84
shr esi, cl
push esi
jmp 0x401742
xor esi, esi
inc esi
call fcn.00401460
push 2
pop ecx
mov esi, eax
call fcn.00401443
push eax
push esi
push edi
mov dword [ebp + 0x34], edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp case.0x401662.68
mov eax, dword [ebp + 0x4c]
mov esi, dword [0x40a104]
test eax, eax
je 0x401e7c
dec eax
test esi, esi
je 0x401e3b
mov esi, dword [esi]
test eax, eax
jne 0x401e2c
test esi, esi
jne 0x401e4f
push 0x200010
push 0xffffffffffffffe8
push 0
call fcn.00406441
push eax
jmp 0x401b20
lea edi, [esi + 4]
push edi
mov esi, 0x40a148
push esi
call fcn.00406055
mov eax, dword [0x40a104]
add eax, 4
push eax
push edi
call fcn.00406055
mov eax, dword [0x40a104]
push esi
add eax, 4
push eax
jmp 0x402ab5
cmp dword [ebp + 0x48], 0
je 0x401ea1
test esi, esi
je 0x401795
lea eax, [esi + 4]
push eax
push edi
call fcn.00406055
mov eax, dword [esi]
mov dword [0x40a104], eax
push esi
jmp 0x402343
push 0x404
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [ebp + 0x44]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.00406441
mov eax, dword [0x40a104]
mov dword [esi], eax
mov dword [0x40a104], esi
jmp case.0x401662.68
push 3
pop ecx
call fcn.00401443
push 4
pop ecx
mov dword [ebp + 0x34], edx
mov dword [ebp + 0x6c], eax
call fcn.00401443
test byte [ebp + 0x58], 1
mov dword [ebp + 0x34], edx
mov dword [ebp + 0x7c], eax
je 0x401efb
push 0x33
pop esi
call fcn.00401460
mov dword [ebp + 0x6c], eax
test byte [ebp + 0x58], 2
je 0x401f0c
push 0x44
pop esi
call fcn.00401460
mov dword [ebp + 0x7c], eax
cmp dword [ebp + 0x40], 0x23
jne 0x401f63
xor ecx, ecx
inc ecx
call fcn.00401443
push 2
pop ecx
mov esi, eax
mov dword [ebp + 0x34], edx
call fcn.00401443
mov ecx, dword [ebp + 0x58]
sar ecx, 2
mov dword [ebp + 0x34], edx
test ecx, ecx
je 0x401f53
lea edx, [ebp + 0x68]
push edx
push ecx
push 0
push dword [ebp + 0x7c]
push dword [ebp + 0x6c]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 0x70], eax
jmp 0x401f98
push dword [ebp + 0x7c]
push dword [ebp + 0x6c]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x401f95
xor esi, esi
inc esi
call fcn.00401460
push 0x12
pop esi
mov ebx, eax
call fcn.00401460
movsx ecx, byte [eax]
neg ecx
sbb ecx, ecx
and ecx, eax
movsx eax, byte [ebx]
neg eax
push ecx
sbb eax, eax
and eax, ebx
push eax
push dword [ebp + 0x7c]
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_FindWindowExA]
mov dword [ebp + 0x68], eax
cmp dword [ebp + 0x44], 0
jl case.0x401662.68
push dword [ebp + 0x68]
jmp 0x401742
xor ecx, ecx
call fcn.00401443
push eax
mov dword [ebp + 0x34], edx
call dword [sym.imp.USER32.dll_IsWindow]
jmp 0x40184f
push 2
pop ecx
call fcn.00401443
xor ecx, ecx
inc ecx
mov esi, eax
mov dword [ebp + 0x34], edx
call fcn.00401443
push esi
push eax
mov dword [ebp + 0x34], edx
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x401c19
mov eax, dword [0x42f128]
xor ecx, ecx
add esi, eax
call fcn.00401443
push esi
push 0xffffffffffffffeb
push eax
mov dword [ebp + 0x34], edx
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp case.0x401662.68
test dword [ebp + 0x50], 0x100
je 0x40201b
push 2
pop ecx
call fcn.00401443
mov dword [ebp + 0x34], edx
jmp 0x402025
push dword [ebp + 0x4c]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp + 0x50]
mov dword [ebp + 0x7c], eax
mov eax, ecx
shr eax, 0x1f
mov dword [ebp + 0x3c], eax
mov eax, ecx
shr eax, 0x1e
mov esi, ecx
mov ebx, ecx
and esi, 3
and eax, 1
and ebx, 4
mov dword [ebp + 0x6c], esi
mov dword [ebp + 0x38], eax
test ecx, 0x10000
je 0x402060
push 0x11
pop esi
call fcn.00401460
mov esi, dword [ebp + 0x6c]
jmp 0x402064
movzx eax, word [ebp + 0x48]
mov dword [ebp + 0x68], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp + 0x50]
and eax, 0xfef0
push eax
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp + 0x38]
push eax
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp + 0x3c]
push eax
neg ebx
push esi
push dword [ebp + 0x68]
sbb ebx, ebx
and ebx, dword [0x42f0ec]
push ebx
call dword [sym.imp.USER32.dll_LoadImageA]
mov ebx, eax
push ebx
push esi
push 0x172
push dword [ebp + 0x7c]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4020c3
test esi, esi
jne 0x4020c3
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp + 0x44], 0
jl case.0x401662.68
push ebx
jmp 0x401742
push edx
call dword [sym.imp.USER32.dll_GetDC]
push 2
pop ecx
mov esi, eax
call fcn.00401443
push 0x48
push 0x5a
push esi
mov ebx, eax
mov dword [ebp + 0x34], edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MulDiv]
push esi
push dword [ebp + 0x6c]
neg eax
mov dword [0x40a108], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 3
pop ecx
call fcn.00401443
push dword [ebp + 0x48]
mov dword [0x40a118], eax
mov al, byte [ebp + 0x54]
mov cl, al
and cl, 1
mov byte [0x40a11c], cl
mov cl, al
and cl, 2
and al, 4
push 0x40a124
mov dword [ebp + 0x34], edx
mov byte [0x40a11d], cl
mov byte [0x40a11e], al
mov byte [0x40a11f], 1
call fcn.00406441
push 0x40a108
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
jmp 0x401c19
xor ecx, ecx
call fcn.00401443
xor ecx, ecx
inc ecx
mov esi, eax
mov dword [ebp + 0x34], edx
call fcn.00401443
cmp dword [ebp + 0x50], 0
push eax
mov dword [ebp + 0x34], edx
push esi
jne 0x40218b
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x401662.68
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x401662.68
xor esi, esi
call fcn.00401460
push 0x31
pop esi
mov edi, eax
call fcn.00401460
push 0x22
pop esi
mov dword [ebp + 0x7c], eax
call fcn.00401460
push 0x15
pop esi
mov ebx, eax
call fcn.00401460
push 0xffffffffffffffec
call fcn.00401432
mov eax, dword [ebp + 0x54]
mov dword [ebp], eax
mov eax, dword [ebp + 0x6c]
mov dword [ebp + 4], eax
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x18], eax
movsx eax, byte [edi]
neg eax
sbb eax, eax
and eax, edi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0xc], eax
movsx eax, byte [ebx]
neg eax
sbb eax, eax
and eax, ebx
mov dword [ebp + 0x10], eax
lea eax, [ebp - 4]
push eax
mov dword [ebp + 0x14], 0x435800
call fcn.00405bac
test eax, eax
je 0x401795
test byte [ebp], 0x40
je case.0x401662.68
push dword [ebp + 0x34]
call fcn.0040628a
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x401662.68
xor esi, esi
call fcn.00401460
mov esi, eax
push esi
push 0xffffffffffffffeb
call fcn.00404e8d
push esi
call fcn.00405b69
mov esi, eax
test esi, esi
je 0x401795
cmp dword [ebp + 0x4c], 0
je 0x402272
push esi
call fcn.0040628a
cmp dword [ebp + 0x48], 0
jl 0x402267
push eax
push ebx
call fcn.00405fb3
jmp 0x402272
test eax, eax
je 0x402272
mov dword [ebp + 0x70], 1
push esi
jmp 0x402220
push 2
pop esi
call fcn.00401460
push eax
call fcn.00406182
mov esi, eax
test esi, esi
je 0x40229a
push dword [esi + 0x14]
push ebx
call fcn.00405fb3
push dword [esi + 0x18]
jmp 0x401742
mov byte [edi], 0
mov byte [ebx], 0
jmp 0x401795
push 0xffffffffffffffee
pop esi
call fcn.00401460
lea ecx, [ebp + 0x34]
push ecx
push eax
push 0xa
mov dword [ebp + 0x3c], eax
call fcn.00406217
call eax
mov esi, eax
mov byte [edi], 0
mov byte [ebx], 0
mov dword [ebp + 0x70], 1
test esi, esi
je case.0x401662.68
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp + 0x7c], eax
test eax, eax
je case.0x401662.68
push 0xb
call fcn.00406217
push 0xc
mov dword [ebp + 0x38], eax
call fcn.00406217
push dword [ebp + 0x7c]
mov dword [ebp + 0x6c], eax
push esi
push 0
push dword [ebp + 0x3c]
call dword [ebp + 0x38]
test eax, eax
je 0x402340
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x68]
push eax
push 0x4082a0
push dword [ebp + 0x7c]
call dword [ebp + 0x6c]
test eax, eax
je 0x402340
mov eax, dword [ebp + 0x68]
push dword [eax + 8]
push edi
call fcn.00405fb3
mov eax, dword [ebp + 0x68]
push dword [eax + 0xc]
push ebx
call fcn.00405fb3
and dword [ebp + 0x70], 0
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x401662.68
cmp dword [0x42f1d8], 0
mov dword [ebp + 0x70], 1
jl 0x40241b
push 0xfffffffffffffff0
pop esi
call fcn.00401460
xor esi, esi
inc esi
mov edi, eax
call fcn.00401460
xor esi, esi
mov dword [ebp + 0x7c], eax
cmp dword [ebp + 0x54], esi
je 0x40238b
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
cmp ebx, esi
jne 0x40239b
push 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
cmp ebx, esi
je 0x402414
push dword [ebp + 0x7c]
push ebx
call sub.KERNEL32.dll_GetProcAddress
mov edi, eax
cmp edi, esi
je 0x4023e7
mov dword [ebp + 0x70], esi
cmp dword [ebp + 0x4c], esi
je 0x4023c9
push dword [ebp + 0x4c]
call fcn.00401432
call edi
test eax, eax
je 0x4023f1
mov dword [ebp + 0x70], 1
jmp 0x4023f1
push section..data
push 0x40a104
push section..ndata
push 0x400
push dword [ebp + 0x6c]
call edi
add esp, 0x14
jmp 0x4023f1
push dword [ebp + 0x7c]
push 0xfffffffffffffff7
call fcn.00404e8d
cmp dword [ebp + 0x50], esi
jne case.0x401662.68
push ebx
call fcn.00403c97
test eax, eax
je case.0x401662.68
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp case.0x401662.68
push 0xfffffffffffffff6
jmp 0x401838
push 0xffffffffffffffe7
jmp 0x401838
push 0xfffffffffffffff0
pop esi
call fcn.00401460
push 0xffffffffffffffdf
pop esi
mov dword [ebp + 0x34], eax
call fcn.00401460
push 2
pop esi
mov dword [ebp + 0x6c], eax
call fcn.00401460
push 0xffffffffffffffcd
pop esi
mov dword [ebp - 8], eax
call fcn.00401460
push 0x45
pop esi
mov dword [ebp + 0x38], eax
call fcn.00401460
push dword [ebp + 0x6c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x54]
mov ecx, eax
mov ebx, eax
mov edi, eax
sar eax, 0x10
and ecx, 0xfff
and eax, 0xffff
sar edi, 0xc
mov dword [ebp - 0x20], ecx
and ebx, 0x8000
and edi, 7
mov dword [ebp + 0x3c], eax
call fcn.00405c68
test eax, eax
jne 0x402496
push 0x21
pop esi
call fcn.00401460
lea eax, [ebp + 0x7c]
push eax
push 0x408840
push 1
push 0
push 0x408860
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x402582
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
lea edx, [ebp + 0x68]
push edx
push 0x408850
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x402575
mov eax, dword [ebp + 0x7c]
push dword [ebp + 0x6c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov esi, eax
test ebx, ebx
jne 0x4024f1
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
push 0x435800
push eax
call dword [ecx + 0x24]
test edi, edi
je 0x4024ff
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp + 0x7c]
push dword [ebp + 0x3c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov ecx, dword [ebp + 0x38]
cmp byte [ecx], 0
je 0x402520
push dword [ebp - 0x20]
mov eax, dword [ebp + 0x7c]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x44]
mov eax, dword [ebp + 0x7c]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp + 0x7c]
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test esi, esi
jl 0x40256c
push 0x400
push dword [ebp + 0x6c]
mov esi, 0x80004005
push 0xffffffffffffffff
push dword [ebp + 0x34]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40256c
mov eax, dword [ebp + 0x68]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x6c]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp + 0x68]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
jge 0x402590
mov dword [ebp + 0x70], 1
push 0xfffffffffffffff0
jmp 0x401838
push 0xfffffffffffffff4
jmp 0x401838
xor esi, esi
call fcn.00401460
push 0x11
pop esi
mov edi, eax
call fcn.00401460
push 0x23
pop esi
mov ebx, eax
call fcn.00401460
push edi
mov esi, eax
call fcn.00406182
test eax, eax
jne 0x4025cc
push 0
push 0xfffffffffffffff9
call fcn.00404e8d
jmp 0x401795
mov eax, dword [ebp + 0x6c]
push edi
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], 2
call sub.KERNEL32.dll_lstrlenA
push ebx
mov byte [eax + edi + 1], 0
call sub.KERNEL32.dll_lstrlenA
mov byte [eax + ebx + 1], 0
mov ax, word [ebp + 0x4c]
push esi
push 0
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x32], esi
mov word [ebp + 0x28], ax
call fcn.00404e8d
lea eax, [ebp + 0x18]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je case.0x401662.68
jmp 0x4025be
cmp eax, 0xbadf00d
jne 0x401e3b
inc dword [0x42f1b4]
jmp case.0x401662.68
xor ebx, ebx
xor edi, edi
mov dword [ebp + 0x7c], ebx
cmp eax, ebx
je 0x402649
xor esi, esi
call fcn.00401460
mov esi, dword [ebp + 0x48]
mov edi, eax
test esi, esi
je 0x402658
push 0x11
pop esi
call fcn.00401460
mov dword [ebp + 0x7c], eax
cmp dword [ebp + 0x54], ebx
je 0x402667
push 0x22
pop esi
call fcn.00401460
mov ebx, eax
push 0xffffffffffffffcd
pop esi
call fcn.00401460
push eax
push ebx
push dword [ebp + 0x7c]
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x40178d
push 0xa
pop eax
xor esi, esi
inc esi
mov word [ebp + 0x7c], ax
call fcn.00401460
push 0x12
pop esi
mov ebx, eax
call fcn.00401460
push 0xffffffffffffffdd
pop esi
mov dword [ebp + 0x34], eax
call fcn.00401460
push eax
push 0x3ff
push edi
lea eax, [ebp + 0x7c]
push eax
push dword [ebp + 0x34]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [edi], 0xa
jmp 0x401932
cmp dword [ebp + 0x54], 0
mov edi, esi
jne 0x4026f6
push 2
pop eax
call fcn.004014aa
mov edi, eax
test edi, edi
je 0x401795
push 0x33
pop esi
call fcn.00401460
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40270e
push 0x22
pop esi
call fcn.00401460
mov ecx, dword [ebp + 0x54]
sar ecx, 1
push ecx
push edi
mov esi, eax
call fcn.004015cc
mov esi, eax
test esi, esi
je case.0x401662.68
jmp 0x401795
mov edi, eax
mov eax, dword [ebp + 0x58]
mov dword [ebp + 0x7c], eax
mov eax, dword [ebp + 0x5c]
push 2
pop esi
mov dword [ebp - 0x10], eax
call fcn.00401460
push 0x11
pop esi
mov dword [ebp - 8], eax
call fcn.00401460
lea ecx, [ebp + 0x34]
push ecx
push 0x100022
push eax
mov eax, edi
mov dword [ebp + 0x70], 1
call fcn.00401498
push eax
call fcn.00405f09
mov edi, eax
neg edi
sbb edi, edi
not edi
and edi, dword [ebp + 0x34]
je case.0x401662.68
xor esi, esi
xor eax, eax
cmp dword [ebp + 0x7c], 1
mov ebx, 0x40a948
jne 0x40278b
push 0x23
pop esi
call fcn.00401460
push ebx
call sub.KERNEL32.dll_lstrlenA
inc eax
xor esi, esi
cmp dword [ebp + 0x7c], 4
jne 0x4027a4
push 3
pop ecx
call fcn.00401443
push 4
mov dword [0x40a948], eax
mov dword [ebp - 0x20], edx
pop eax
cmp dword [ebp + 0x7c], 3
jne 0x4027ce
push dword [ebp + 0x60]
mov ecx, dword [ebp + 0x54]
mov eax, dword [ebp + 0x50]
push 0xc00
push ebx
push esi
push ecx
push eax
cmp dword [0x42f140], esi
je 0x4027c8
push 1
jmp 0x4027c9
push esi
call fcn.004030ed
push eax
push ebx
push dword [ebp - 0x10]
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4027e5
mov dword [ebp + 0x70], esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x401662.68
mov eax, 0x20019
call fcn.004014aa
push 0x33
pop esi
mov ebx, eax
call fcn.00401460
mov byte [edi], 0
test ebx, ebx
je 0x401795
lea ecx, [ebp + 0x34]
push ecx
push edi
lea ecx, [ebp + 0x7c]
push ecx
push 0
push eax
push ebx
mov dword [ebp + 0x34], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x402866
cmp dword [ebp + 0x7c], 4
je 0x402851
cmp dword [ebp + 0x7c], ecx
je 0x402842
cmp dword [ebp + 0x7c], 2
jne 0x402866
mov eax, dword [ebp + 0x54]
mov dword [ebp + 0x70], eax
mov byte [edi + 0x3ff], 0
jmp 0x40286c
push dword [edi]
xor eax, eax
cmp dword [ebp + 0x54], eax
push edi
sete al
mov dword [ebp + 0x70], eax
call fcn.00405fb3
jmp 0x40286c
mov byte [edi], 0
mov dword [ebp + 0x70], ecx
push ebx
jmp 0x4027e6
mov eax, 0x20019
call fcn.004014aa
push 3
pop ecx
mov esi, eax
call fcn.00401443
mov dword [ebp + 0x34], edx
xor edx, edx
mov byte [edi], 0
cmp esi, edx
je 0x401795
mov ecx, 0x3ff
mov dword [ebp + 0x7c], ecx
cmp dword [ebp + 0x54], edx
je 0x4028af
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x4028cb
push edx
push edx
push edx
push edx
lea ecx, [ebp + 0x7c]
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x4028cb
mov dword [ebp + 0x70], 1
mov byte [edi + 0x3ff], 0
push esi
jmp 0x4027e6
push edi
call fcn.00405fcc
test eax, eax
je case.0x401662.68
push eax
jmp 0x402220
push 0xffffffffffffffed
pop esi
call fcn.00401460
push dword [ebp + 0x4c]
push dword [ebp + 0x48]
push eax
call fcn.00405d87
cmp eax, 0xffffffff
jne 0x401c19
mov byte [edi], 0
jmp 0x401795
cmp dword [ebp + 0x4c], 0
je 0x40292b
xor esi, esi
inc esi
mov ecx, esi
call fcn.00401443
mov dword [ebp + 0x34], edx
mov byte [0x40a548], al
jmp 0x40293b
push 0x11
pop esi
call fcn.00401460
push eax
call sub.KERNEL32.dll_lstrlenA
mov esi, eax
cmp byte [edi], 0
je 0x401795
push edi
call fcn.00405fcc
push esi
push 0x40a548
push eax
call fcn.00405e2d
jmp 0x40178d
push 2
pop ecx
xor esi, esi
call fcn.00401443
cmp eax, 1
mov dword [ebp + 0x34], edx
mov dword [ebp + 0x68], eax
jl case.0x401662.68
mov ecx, 0x3ff
cmp eax, ecx
jle 0x402980
mov dword [ebp + 0x68], ecx
cmp byte [edi], 0
je 0x402a00
push edi
mov byte [ebp + 0x7f], 0
call fcn.00405fcc
cmp dword [ebp + 0x68], esi
mov edi, eax
jle 0x402a00
push 1
lea eax, [ebp + 0x67]
push eax
push edi
call fcn.00405dfe
test eax, eax
je 0x402a00
cmp dword [ebp + 0x50], 0
jne 0x4029cd
cmp byte [ebp + 0x7f], 0xd
je 0x4029dd
cmp byte [ebp + 0x7f], 0xa
je 0x4029dd
mov al, byte [ebp + 0x67]
mov byte [esi + ebx], al
inc esi
mov byte [ebp + 0x7f], al
test al, al
je 0x402a00
cmp esi, dword [ebp + 0x68]
jl 0x402996
jmp 0x402a00
movzx eax, byte [ebp + 0x67]
push eax
push ebx
call fcn.00405fb3
jmp 0x402d7e
mov al, byte [ebp + 0x67]
cmp byte [ebp + 0x7f], al
je 0x4029f3
cmp al, 0xd
je 0x4029ed
cmp al, 0xa
jne 0x4029f3
mov byte [esi + ebx], al
inc esi
jmp 0x402a00
push 1
push 0
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov byte [esi + ebx], 0
test esi, esi
jmp 0x40178f
cmp byte [edi], 0
je case.0x401662.68
push 2
pop ecx
call fcn.00401443
push dword [ebp + 0x50]
mov dword [ebp + 0x34], edx
push 0
push eax
push edi
call fcn.00405fcc
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp + 0x48], 0
jl case.0x401662.68
push eax
push ebx
jmp 0x401743
push edi
call fcn.00405fcc
test eax, eax
je case.0x401662.68
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x401662.68
push ebx
call fcn.00405fcc
test eax, eax
je 0x401938
lea ecx, [ebp - 0x164]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x401938
jmp 0x402aad
push 2
pop esi
call fcn.00401460
lea ecx, [ebp - 0x164]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x402aa6
mov byte [ebx], 0
jmp 0x402909
push eax
push ebx
call fcn.00405fb3
lea eax, [ebp - 0x138]
push eax
push edi
call fcn.00406055
jmp case.0x401662.68
push 0xfffffffffffffff0
pop esi
mov dword [ebp - 0xc], 0xfffffd66
or ebx, 0xffffffff
call fcn.00401460
mov edi, eax
push edi
mov dword [ebp - 0x10], edi
call fcn.00405c68
test eax, eax
jne 0x402ae8
push 0xffffffffffffffec
pop esi
call fcn.00401460
push edi
call fcn.00405d61
push 2
push 0x40000000
push edi
call fcn.00405d87
mov dword [ebp + 0x6c], eax
cmp eax, ebx
je 0x402bd5
mov eax, dword [0x42f154]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
push 0x40
mov dword [ebp + 0x68], eax
call esi
xor edi, edi
mov dword [ebp + 0x7c], eax
cmp eax, edi
je 0x402bca
push edi
call fcn.0040301a
push dword [ebp + 0x68]
push dword [ebp + 0x7c]
call fcn.00402fbe
push dword [ebp + 0x50]
push 0x40
call esi
mov esi, eax
mov dword [ebp + 0x34], esi
cmp esi, edi
je 0x402b90
push dword [ebp + 0x58]
mov ecx, dword [ebp + 0x4c]
push dword [ebp + 0x50]
mov eax, dword [ebp + 0x48]
push esi
push edi
push ecx
push eax
cmp dword [0x42f140], edi
je 0x402b63
push 1
jmp 0x402b64
push edi
call fcn.004030ed
jmp 0x402b82
mov ebx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 0x7c]
push ebx
add esi, 8
push esi
add eax, ecx
push eax
call fcn.00405d3d
add esi, ebx
cmp byte [esi], 0
jne 0x402b6b
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp + 0x68]
push dword [ebp + 0x7c]
push dword [ebp + 0x6c]
call fcn.00405e2d
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp + 0x5c]
push edi
push edi
push dword [ebp + 0x6c]
push 0xffffffffffffffff
push 0xffffffffffffffff
cmp dword [0x42f140], edi
je 0x402bbf
push 1
jmp 0x402bc0
push edi
call fcn.004030ed
mov ebx, edx
mov dword [ebp - 0xc], eax
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402bd7
xor edi, edi
cmp ebx, edi
push 0xfffffffffffffff3
pop esi
jg 0x402bf8
jl 0x402be5
cmp dword [ebp - 0xc], edi
jae 0x402bf8
push 0xffffffffffffffef
pop esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp + 0x70], 1
push esi
jmp 0x401838
xor ecx, ecx
call fcn.00401443
mov edi, eax
mov dword [ebp + 0x34], edx
cmp edi, dword [0x42f10c]
jae 0x401795
mov eax, dword [ebp + 0x4c]
mov esi, edi
imul esi, esi, 0x418
add esi, dword [0x42f108]
test eax, eax
jl 0x402c40
mov ecx, dword [esi + eax*4]
jne 0x402c3a
add esi, 0x18
push esi
push ebx
jmp 0x402ab5
push ecx
jmp 0x402a3d
or ecx, 0xffffffff
sub ecx, eax
mov dword [ebp + 0x4c], ecx
je 0x402c5a
xor ecx, ecx
inc ecx
call fcn.00401443
mov dword [ebp + 0x34], edx
mov dword [ebp + 0x48], eax
jmp 0x402c6d
push dword [ebp + 0x54]
lea eax, [esi + 0x18]
push eax
call fcn.00406441
or dword [esi + 8], 0x100
mov eax, dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x48]
mov dword [esi + eax*4], ecx
cmp dword [ebp + 0x50], 0
je case.0x401662.68
push edi
call fcn.00401186
jmp case.0x401662.68
xor ecx, ecx
call fcn.00401443
mov dword [ebp + 0x34], edx
cmp eax, 0x20
jae 0x401795
xor esi, esi
cmp dword [ebp + 0x50], esi
je 0x402cc7
cmp dword [ebp + 0x4c], esi
je 0x402cbc
push eax
call fcn.004012a6
push esi
push esi
call fcn.004011f8
jmp case.0x401662.68
push esi
call fcn.004012f1
jmp 0x402a3c
cmp dword [ebp + 0x4c], esi
je 0x402ce1
mov ecx, dword [ebp + 0x48]
mov edx, dword [0x42f0f0]
mov dword [edx + eax*4 + 0x94], ecx
jmp case.0x401662.68
mov ecx, dword [0x42f0f0]
push dword [ecx + eax*4 + 0x94]
push ebx
call fcn.00406441
jmp case.0x401662.68
push 5
call fcn.00406217
push 0x22
pop esi
mov edi, eax
call fcn.00401460
test edi, edi
je 0x402d44
lea ecx, [ebp + 0x28]
push ecx
push eax
call fcn.004060a8
pop ecx
pop ecx
test eax, eax
jl 0x402d44
lea eax, [ebp + 0x7c]
push eax
push 0
push dword [ebp + 0x50]
lea eax, [ebp + 0x28]
push eax
call edi
test eax, eax
jl 0x402d44
push dword [ebp + 0x7c]
push ebx
call fcn.00406092
pop ecx
pop ecx
push dword [ebp + 0x7c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp case.0x401662.68
mov dword [ebp + 0x70], 1
mov byte [ebx], 0
jmp case.0x401662.68
mov ecx, dword [0x42b550]
xor esi, esi
push esi
and ecx, eax
push ecx
push 0xb
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp + 0x44], esi
je case.0x401662.68
push esi
push esi
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp + 0x70]
add dword [0x42f1a8], eax
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4