Function at 0x401603
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
Read file on windows
Set current directory
Set file attributes
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x2e8
mov edx, dword [0x42a564]
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 ecx, dword [ebp + 0x48]
mov eax, dword [ebp + 0x44]
mov esi, dword [ebp + 0x40]
shl ecx, 0xb
mov edi, section..ndata
add ecx, edi
mov dword [ebp + 0x6c], ecx
lea ecx, [ebp + 0x44]
mov ebx, eax
shl ebx, 0xb
mov dword [0x40b0e0], ecx
lea ecx, [esi - 2]
add ebx, edi
cmp ecx, 0x45
mov dword [ebp + 0x64], edx
ja case.0x40165b.68
jmp dword [ecx*4 + 0x402f83]
push 0
push eax
call fcn.0040523e
mov eax, 0x7fffffff
jmp case.0x40165b.2
inc dword [0x429534]
test edx, edx
je 0x40166a
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x40166a
push eax
call fcn.00401373
dec eax
push 0
push eax
call fcn.0040138f
jmp case.0x40165b.2
push 0
push eax
call fcn.0040523e
jmp case.0x40165b.68
xor ecx, ecx
call fcn.0040143a
cmp eax, 1
mov dword [ebp + 0x1c], edx
jg 0x4016bb
xor eax, eax
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x40165b.68
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x40165b.68
xor edx, edx
cmp dword [ebp + 0x4c], edx
jg 0x401713
jge 0x4016ea
mov eax, dword [eax*4 + 0x42a620]
mov dword [0x40d948], eax
jmp 0x4016f9
shl eax, 2
mov ecx, dword [eax + 0x42a620]
mov dword [eax + 0x42a5e0], ecx
xor ecx, ecx
inc ecx
call fcn.0040143a
mov ecx, dword [ebp + 0x44]
mov dword [ebp + 0x1c], edx
mov dword [ecx*4 + 0x42a620], eax
jmp case.0x40165b.68
shl eax, 2
cmp dword [ebp + 0x50], edx
lea ecx, [eax + 0x42a620]
mov eax, dword [eax + 0x42a5e0]
mov dword [ecx], eax
jge case.0x40165b.68
mov eax, dword [0x40d948]
mov dword [ecx], eax
jmp case.0x40165b.68
mov esi, dword [ebp + 0x4c]
lea esi, [esi*4 + 0x42a620]
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.0x40165b.2
mov eax, dword [ebp + 0x48]
push dword [eax*4 + 0x42a620]
push ebx
call fcn.0040640e
jmp case.0x40165b.68
mov ecx, dword [0x429540]
test ecx, ecx
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
je 0x401788
push dword [ebp + 0x48]
push ecx
call esi
mov eax, dword [ebp + 0x44]
mov ecx, dword [0x42952c]
test ecx, ecx
je case.0x40165b.68
push eax
push ecx
call esi
jmp case.0x40165b.68
push 0xfffffffffffffff0
pop esi
call fcn.00401457
push dword [ebp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne case.0x40165b.68
mov dword [ebp + 0x70], 1
jmp case.0x40165b.68
push 0xfffffffffffffff0
pop esi
call fcn.00401457
mov ebx, eax
push ebx
call fcn.00406064
mov esi, eax
test esi, esi
je 0x401831
push 0x5c
push esi
call fcn.00406010
mov esi, eax
movzx edi, word [esi]
and word [esi], 0
test di, di
jne 0x401808
cmp dword [ebp + 0x4c], 0
je 0x401808
call fcn.00406758
test eax, eax
je 0x401808
push ebx
call fcn.00405eb8
jmp 0x40180e
push ebx
call fcn.00405f12
test eax, eax
je 0x401827
cmp eax, 0xb7
jne 0x401824
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x401827
inc dword [ebp + 0x70]
mov word [esi], di
inc esi
inc esi
test di, di
jne 0x4017db
cmp dword [ebp + 0x48], 0
je 0x401860
push 0xffffffffffffffe6
call fcn.00401429
push ebx
push 0x436000
call fcn.004064c7
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne case.0x40165b.68
inc dword [ebp + 0x70]
jmp case.0x40165b.68
push 0xfffffffffffffff5
call fcn.00401429
jmp case.0x40165b.68
xor esi, esi
call fcn.00401457
push eax
call fcn.004065b3
test eax, eax
je 0x401cfe
mov eax, dword [ebp + 0x48]
jmp case.0x40165b.2
push 0xffffffffffffffd0
pop esi
call fcn.00401457
push 0xffffffffffffffdf
pop esi
mov edi, eax
call fcn.00401457
push 0x13
pop esi
mov ebx, eax
call fcn.00401457
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4018b5
push 0xffffffffffffffe3
jmp 0x401862
cmp dword [ebp + 0x4c], 0
je 0x4017b9
push edi
call fcn.004065b3
test eax, eax
je 0x4017b9
push ebx
push edi
call fcn.00406cd1
push 0xffffffffffffffe4
jmp 0x401862
xor esi, esi
call fcn.00401457
mov edi, dword [ebp + 0x6c]
mov esi, eax
lea eax, [ebp + 0x7c]
push eax
push edi
mov ebx, 0x400
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x40191f
mov eax, dword [ebp + 0x7c]
cmp eax, esi
jbe 0x40192a
cmp word [eax], 0
je 0x40192a
push esi
call fcn.004065b3
test eax, eax
je 0x40191f
add eax, 0x2c
push eax
push dword [ebp + 0x7c]
call fcn.004064c7
jmp 0x40192a
and word [edi], 0
mov dword [ebp + 0x70], 1
cmp dword [ebp + 0x4c], 0
jne case.0x40165b.68
push ebx
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
jmp case.0x40165b.68
or esi, 0xffffffff
call fcn.00401457
lea ecx, [ebp + 0x7c]
push ecx
push ebx
push 0x400
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne case.0x40165b.68
and word [ebx], 0
mov dword [ebp + 0x70], 1
jmp case.0x40165b.68
push 0xffffffffffffffef
pop esi
call fcn.00401457
push eax
push ebx
call fcn.00406190
jmp 0x4017b1
push 0x31
pop esi
call fcn.00401457
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.0040602f
test eax, eax
push esi
mov esi, 0x40b148
je 0x4019b9
push esi
call fcn.004064c7
jmp 0x4019d0
push 0x436000
push esi
call fcn.004064c7
push eax
call fcn.004067b8
push eax
call sub.KERNEL32.dll_lstrcatW
push esi
call fcn.00406504
mov ebx, 0x40c148
cmp dword [ebp + 0x7c], 3
jl 0x401a12
push esi
call fcn.004065b3
xor ecx, ecx
test eax, eax
je 0x4019fd
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 0x401a1e
push esi
call fcn.0040613b
xor eax, eax
cmp dword [ebp + 0x7c], 1
setne al
inc eax
push eax
push 0x40000000
push esi
call fcn.00406161
cmp eax, 0xffffffff
mov dword [ebp + 0x2c], eax
jne 0x401aa7
cmp dword [ebp + 0x7c], 0
jne 0x401a89
push edi
push ebx
call fcn.004064c7
push esi
push edi
call fcn.004064c7
push dword [ebp + 0x5c]
push 0x40b948
call fcn.004068e1
push ebx
push edi
call fcn.004064c7
mov eax, dword [ebp + 0x44]
sar eax, 3
push eax
push 0x40b948
call fcn.00405fac
sub eax, 4
je 0x4019db
dec eax
je 0x401a9c
push esi
push 0xfffffffffffffffa
jmp 0x401665
push dword [ebp + 0x68]
push 0xffffffffffffffe2
call fcn.0040523e
cmp dword [ebp + 0x7c], 2
jmp 0x4017b3
inc dword [0x42a628]
jmp 0x402f76
push dword [ebp + 0x68]
push 0xffffffffffffffea
call fcn.0040523e
push dword [ebp + 0x60]
mov ecx, dword [ebp + 0x50]
mov eax, dword [ebp + 0x4c]
inc dword [0x42a654]
xor edi, edi
cmp dword [ebp + 0x40], 0x15
push edi
push edi
push dword [ebp + 0x2c]
push ecx
push eax
jne 0x401ad3
push 1
jmp 0x401ad4
push edi
call fcn.00403320
dec dword [0x42a654]
cmp dword [ebp + 0x54], 0xffffffff
mov ebx, edx
mov dword [ebp + 0x18], eax
jne 0x401af0
cmp dword [ebp + 0x58], 0xffffffff
je 0x401aff
lea eax, [ebp + 0x54]
push eax
push edi
push eax
push dword [ebp + 0x2c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
jg case.0x40165b.68
jl 0x401b1c
cmp dword [ebp + 0x18], 0
jae case.0x40165b.68
cmp dword [ebp + 0x18], 0xfffffffe
jne 0x401b3a
cmp ebx, 0xffffffff
jne 0x401b3a
push 0xffffffffffffffe9
push esi
call fcn.004068e1
push dword [ebp + 0x68]
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x401b42
push 0xffffffffffffffee
push esi
call fcn.004068e1
push 0x200010
push esi
call fcn.00405fac
jmp 0x40166a
cmp dword [0x40b014], 0xffffffff
mov dword [ebp + 0x70], 1
je 0x401b6b
cmp dword [0x42a5c0], 0
jmp 0x401bd3
cmp dword [0x42a5c0], 0
je case.0x40165b.68
xor esi, esi
call fcn.00401457
mov edi, eax
push edi
call fcn.0040602f
test eax, eax
jne 0x401bb8
push 0x438800
mov esi, 0x40b948
push esi
call fcn.004064c7
push esi
call fcn.00406813
push eax
push esi
call fcn.004064c7
push esi
push 0x4092cc
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push edi
call fcn.00406504
push 3
push 0x80000000
push edi
call fcn.00406161
mov dword [0x40b014], eax
cmp eax, 0xffffffff
je case.0x40165b.68
and dword [ebp + 0x70], 0
jmp case.0x40165b.68
xor esi, esi
call fcn.00401457
push dword [ebp + 0x48]
push eax
call fcn.00406cfd
jmp case.0x40165b.68
push 0x31
pop esi
call fcn.00401457
push dword [ebp + 0x44]
push eax
call fcn.00405fac
test eax, eax
je 0x4017b9
cmp eax, dword [ebp + 0x4c]
jne 0x401c1d
mov eax, dword [ebp + 0x50]
jmp case.0x40165b.2
cmp eax, dword [ebp + 0x54]
jne case.0x40165b.68
mov eax, dword [ebp + 0x58]
jmp case.0x40165b.2
push 0xfffffffffffffff0
pop esi
jmp 0x401be4
xor esi, esi
inc esi
call fcn.00401457
push eax
call sub.KERNEL32.dll_lstrlenW
push eax
jmp 0x401764
push 2
pop ecx
call fcn.0040143a
push 3
pop ecx
mov esi, eax
mov dword [ebp + 0x34], edx
call fcn.0040143a
mov dword [ebp + 0x7c], esi
xor esi, esi
inc esi
mov edi, eax
mov dword [ebp + 0x1c], edx
call fcn.00401457
push eax
mov dword [ebp + 0x1c], eax
call sub.KERNEL32.dll_lstrlenW
and word [ebx], 0
cmp dword [ebp + 0x34], 0
mov esi, eax
je 0x401c84
mov esi, dword [ebp + 0x7c]
test esi, esi
je case.0x40165b.68
test edi, edi
jge 0x401c98
add edi, eax
js case.0x40165b.68
cmp edi, eax
jle 0x401c9e
mov edi, eax
mov eax, dword [ebp + 0x1c]
lea eax, [eax + edi*2]
push eax
push ebx
call fcn.004064c7
test esi, esi
jge 0x401cc0
push ebx
call sub.KERNEL32.dll_lstrlenW
add esi, eax
jns 0x401cc0
and dword [ebp + 0x7c], 0
mov esi, dword [ebp + 0x7c]
cmp esi, 0x400
jge case.0x40165b.68
and word [ebx + esi*2], 0
jmp case.0x40165b.68
push 0x20
pop esi
call fcn.00401457
push 0x31
pop esi
mov edi, eax
call fcn.00401457
cmp dword [ebp + 0x54], 0
push eax
push edi
jne 0x401d06
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x401c15
mov eax, dword [ebp + 0x4c]
jmp case.0x40165b.2
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
jmp 0x401cf6
xor esi, esi
inc esi
call fcn.00401457
push 0x400
mov edi, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x401d3b
cmp dword [ebp + 0x4c], 0
je 0x401d42
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x401d42
and word [ebx], 0
mov dword [ebp + 0x70], esi
and word [ebx + 0x7fe], 0
jmp case.0x40165b.68
mov esi, dword [ebp + 0x58]
xor ecx, ecx
call fcn.0040143a
xor ecx, ecx
inc ecx
mov edi, eax
mov dword [ebp + 0x1c], edx
call fcn.0040143a
test esi, esi
mov dword [ebp + 0x1c], edx
jne 0x401d7f
cmp edi, eax
jl 0x401c15
jle 0x401cfe
mov eax, dword [ebp + 0x54]
jmp case.0x40165b.2
cmp edi, eax
jb 0x401c15
jbe 0x401cfe
jmp 0x401d77
xor ecx, ecx
inc ecx
call fcn.0040143a
push 2
pop ecx
mov esi, eax
mov dword [ebp + 0x1c], edx
call fcn.0040143a
mov ecx, eax
mov eax, dword [ebp + 0x50]
cmp eax, 0xd
mov dword [ebp + 0x1c], edx
ja case.default.0x401db1
jmp dword [eax*4 + 0x40309b]
add esi, ecx
jmp case.default.0x401db1
sub esi, ecx
jmp case.default.0x401db1
imul ecx, esi
mov esi, ecx
jmp case.default.0x401db1
test ecx, ecx
je 0x401dd2
mov eax, esi
cdq
idiv ecx
jmp 0x401df0
xor esi, esi
mov dword [ebp + 0x70], 1
jmp case.default.0x401db1
or ecx, esi
jmp 0x401dc3
and ecx, esi
jmp 0x401dc3
xor ecx, esi
jmp 0x401dc3
xor eax, eax
test esi, esi
sete al
mov esi, eax
jmp case.default.0x401db1
test esi, esi
jne 0x401dfc
test ecx, ecx
je 0x401e05
xor esi, esi
inc esi
jmp case.default.0x401db1
test esi, esi
jne 0x401df8
xor esi, esi
jmp case.default.0x401db1
test ecx, ecx
je 0x401dd2
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp case.default.0x401db1
shl esi, cl
jmp case.default.0x401db1
sar esi, cl
jmp case.default.0x401db1
shr esi, cl
push esi
jmp 0x401764
xor esi, esi
inc esi
call fcn.00401457
push 2
pop ecx
mov esi, eax
call fcn.0040143a
push eax
push esi
push ebx
mov dword [ebp + 0x1c], edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp case.0x40165b.68
mov eax, dword [ebp + 0x4c]
test eax, eax
mov esi, dword [0x40b0e4]
je 0x401ea9
dec eax
test esi, esi
je 0x401e68
test eax, eax
mov esi, dword [esi]
jne 0x401e59
test esi, esi
jne 0x401e7c
push 0x200010
push 0xffffffffffffffe8
push 0
call fcn.004068e1
push eax
jmp 0x401b48
lea edi, [esi + 4]
push edi
mov esi, 0x40b148
push esi
call fcn.004064c7
mov eax, dword [0x40b0e4]
add eax, 4
push eax
push edi
call fcn.004064c7
mov eax, dword [0x40b0e4]
push esi
add eax, 4
push eax
jmp 0x402c3f
cmp dword [ebp + 0x48], 0
je 0x401ece
test esi, esi
je 0x4017b9
lea eax, [esi + 4]
push eax
push ebx
call fcn.004064c7
mov eax, dword [esi]
mov dword [0x40b0e4], eax
push esi
jmp 0x40238a
push 0x804
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [ebp + 0x44]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.004068e1
mov eax, dword [0x40b0e4]
mov dword [esi], eax
mov dword [0x40b0e4], esi
jmp case.0x40165b.68
push 3
pop ecx
call fcn.0040143a
push 4
pop ecx
mov dword [ebp + 0x1c], edx
mov dword [ebp + 0x2c], eax
call fcn.0040143a
test byte [ebp + 0x58], 1
mov dword [ebp + 0x1c], edx
mov dword [ebp + 0x7c], eax
je 0x401f28
push 0x33
pop esi
call fcn.00401457
mov dword [ebp + 0x2c], eax
test byte [ebp + 0x58], 2
je 0x401f39
push 0x44
pop esi
call fcn.00401457
mov dword [ebp + 0x7c], eax
cmp dword [ebp + 0x40], 0x23
jne 0x401f8e
xor ecx, ecx
inc ecx
call fcn.0040143a
push 2
pop ecx
mov esi, eax
mov dword [ebp + 0x1c], edx
call fcn.0040143a
mov ecx, dword [ebp + 0x58]
sar ecx, 2
mov dword [ebp + 0x1c], edx
je 0x401f7e
lea edx, [ebp + 0x68]
push edx
push ecx
push 0
push dword [ebp + 0x7c]
push dword [ebp + 0x2c]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 0x70], eax
jmp 0x401fc5
push dword [ebp + 0x7c]
push dword [ebp + 0x2c]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x401fc2
xor esi, esi
inc esi
call fcn.00401457
push 0x12
pop esi
mov edi, eax
call fcn.00401457
mov cx, word [eax]
neg cx
sbb ecx, ecx
and ecx, eax
mov ax, word [edi]
neg ax
push ecx
sbb eax, eax
and eax, edi
push eax
push dword [ebp + 0x7c]
push dword [ebp + 0x2c]
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [ebp + 0x68], eax
cmp dword [ebp + 0x44], 0
jl case.0x40165b.68
push dword [ebp + 0x68]
jmp 0x401764
xor ecx, ecx
call fcn.0040143a
push eax
mov dword [ebp + 0x1c], edx
call dword [sym.imp.USER32.dll_IsWindow]
jmp 0x401879
push 2
pop ecx
call fcn.0040143a
xor ecx, ecx
inc ecx
mov esi, eax
mov dword [ebp + 0x1c], edx
call fcn.0040143a
push esi
push eax
mov dword [ebp + 0x1c], edx
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x401c41
mov ecx, dword [ebp + 0x48]
mov eax, dword [0x42a5a8]
lea esi, [eax + ecx]
xor ecx, ecx
call fcn.0040143a
push esi
push 0xffffffffffffffeb
push eax
mov dword [ebp + 0x1c], edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp case.0x40165b.68
test word [ebp + 0x50], 0x100
je 0x40204b
push 2
pop ecx
call fcn.0040143a
mov dword [ebp + 0x1c], edx
jmp 0x402055
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 edi, ecx
and esi, 3
and eax, 1
and edi, 4
test ecx, 0x10000
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x68], eax
je 0x402090
push 0x11
pop esi
call fcn.00401457
mov esi, dword [ebp + 0x34]
jmp 0x402094
movzx eax, word [ebp + 0x48]
mov dword [ebp + 0x1c], eax
lea eax, [ebp + 0x20]
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 + 0x2c]
imul eax, dword [ebp + 0x68]
push eax
mov eax, dword [ebp + 0x28]
imul eax, dword [ebp + 0x3c]
push eax
neg edi
push esi
push dword [ebp + 0x1c]
sbb edi, edi
and edi, dword [0x42a568]
push edi
call dword [sym.imp.USER32.dll_LoadImageW]
mov edi, eax
push edi
push esi
push 0x172
push dword [ebp + 0x7c]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4020f3
test esi, esi
jne 0x4020f3
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp + 0x44], 0
jl case.0x40165b.68
push edi
jmp 0x401764
push edx
call dword [sym.imp.USER32.dll_GetDC]
push 2
pop ecx
mov esi, eax
call fcn.0040143a
push 0x48
push 0x5a
push esi
mov edi, eax
mov dword [ebp + 0x1c], edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MulDiv]
push esi
push dword [ebp + 0x64]
neg eax
mov dword [0x40b0e8], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 3
pop ecx
call fcn.0040143a
push dword [ebp + 0x48]
mov dword [0x40b0f8], eax
mov al, byte [ebp + 0x54]
mov cl, al
and cl, 1
mov byte [0x40b0fc], cl
mov cl, al
and cl, 2
and al, 4
push 0x40b104
mov dword [ebp + 0x1c], edx
mov byte [0x40b0fd], cl
mov byte [0x40b0fe], al
mov byte [0x40b0ff], 1
call fcn.004068e1
push 0x40b0e8
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
jmp 0x401c41
xor ecx, ecx
call fcn.0040143a
xor ecx, ecx
inc ecx
mov esi, eax
mov dword [ebp + 0x1c], edx
call fcn.0040143a
cmp dword [ebp + 0x50], 0
push eax
mov dword [ebp + 0x1c], edx
push esi
jne 0x4021bb
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x40165b.68
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x40165b.68
xor esi, esi
call fcn.00401457
push 0x31
pop esi
mov edi, eax
call fcn.00401457
push 0x22
pop esi
mov dword [ebp + 0x7c], eax
call fcn.00401457
push 0x15
pop esi
mov ebx, eax
call fcn.00401457
push 0xffffffffffffffec
call fcn.00401429
mov eax, dword [ebp + 0x54]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x64]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x50]
mov dword [ebp], eax
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x7c]
mov dword [ebp - 0xc], eax
mov ax, word [ebx]
neg ax
mov dword [ebp - 4], 0x436000
sbb eax, eax
and eax, ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00405f72
test eax, eax
je 0x4017b9
test byte [ebp - 0x18], 0x40
je case.0x40165b.68
push dword [ebp + 0x1c]
call fcn.004066f3
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x40165b.68
xor esi, esi
call fcn.00401457
mov esi, eax
push esi
push 0xffffffffffffffeb
call fcn.0040523e
push esi
call fcn.00405f2f
mov esi, eax
test esi, esi
je 0x4017b9
cmp dword [ebp + 0x4c], 0
je 0x4022a6
push esi
call fcn.004066f3
cmp dword [ebp + 0x48], 0
jl 0x40229b
push eax
push dword [ebp + 0x6c]
call fcn.0040640e
jmp 0x4022a6
test eax, eax
je 0x4022a6
mov dword [ebp + 0x70], 1
push esi
jmp 0x402252
push 2
pop esi
call fcn.00401457
push eax
call fcn.004065b3
mov esi, eax
test esi, esi
je 0x4022d0
push dword [esi + 0x14]
push dword [ebp + 0x6c]
call fcn.0040640e
push dword [esi + 0x18]
jmp 0x401764
mov eax, dword [ebp + 0x6c]
and word [ebx], 0
and word [eax], 0
jmp 0x4017b9
push 0xffffffffffffffee
pop esi
call fcn.00401457
mov edi, eax
lea eax, [ebp + 0x3c]
push eax
push edi
push 0xc
call fcn.0040664a
call eax
and word [ebx], 0
mov esi, eax
mov eax, dword [ebp + 0x6c]
and word [eax], 0
test esi, esi
mov dword [ebp + 0x70], 1
je case.0x40165b.68
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp + 0x7c], eax
je case.0x40165b.68
push 0xd
call fcn.0040664a
push 0xe
mov dword [ebp + 0x34], eax
call fcn.0040664a
push dword [ebp + 0x7c]
mov dword [ebp + 0x68], eax
push esi
push 0
push edi
call dword [ebp + 0x34]
test eax, eax
je 0x402387
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x1c]
push eax
push 0x4092c8
push dword [ebp + 0x7c]
call dword [ebp + 0x68]
test eax, eax
je 0x402387
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x50]
push dword [eax + ecx*4 + 8]
push ebx
call fcn.0040640e
mov eax, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x1c]
push dword [ecx + eax*4 + 0xc]
push dword [ebp + 0x6c]
call fcn.0040640e
and dword [ebp + 0x70], 0
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x40165b.68
cmp dword [0x42a660], 0
mov dword [ebp + 0x70], 1
jl 0x402461
push 0xfffffffffffffff0
pop esi
call fcn.00401457
xor esi, esi
inc esi
mov ebx, eax
call fcn.00401457
cmp dword [ebp + 0x54], 0
mov dword [ebp + 0x7c], eax
je 0x4023d1
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x4023e2
push 8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x40245a
push dword [ebp + 0x7c]
push esi
call fcn.004066b7
mov ebx, eax
test ebx, ebx
je 0x40242c
and dword [ebp + 0x70], 0
cmp dword [ebp + 0x4c], 0
je 0x402412
push dword [ebp + 0x4c]
call fcn.00401429
call ebx
test eax, eax
je 0x402436
mov dword [ebp + 0x70], 1
jmp 0x402436
push section..data
push 0x40b0e4
push edi
push 0x400
push dword [ebp + 0x64]
call ebx
add esp, 0x14
jmp 0x402436
push dword [ebp + 0x7c]
push 0xfffffffffffffff7
call fcn.0040523e
cmp dword [ebp + 0x50], 0
jne case.0x40165b.68
push esi
call fcn.00403fee
test eax, eax
je case.0x40165b.68
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp case.0x40165b.68
push 0xfffffffffffffff6
jmp 0x401862
push 0xffffffffffffffe7
jmp 0x401862
push 0xfffffffffffffff0
pop esi
call fcn.00401457
push 0xffffffffffffffdf
pop esi
mov dword [ebp + 0x6c], eax
call fcn.00401457
push 2
pop esi
mov dword [ebp + 0x1c], eax
call fcn.00401457
push 0xffffffffffffffcd
pop esi
mov dword [ebp - 0x20], eax
call fcn.00401457
push 0x45
pop esi
mov dword [ebp + 0x3c], eax
call fcn.00401457
push dword [ebp + 0x1c]
mov dword [ebp + 0x64], 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 + 0x2c], ecx
and ebx, 0x8000
and edi, 7
mov dword [ebp + 0x68], eax
call fcn.0040602f
test eax, eax
jne 0x4024dc
push 0x21
pop esi
call fcn.00401457
lea eax, [ebp + 0x7c]
push eax
push 0x4099ec
push 1
push 0
push 0x4099fc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4025a9
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
lea edx, [ebp + 0x34]
push edx
push 0x409a0c
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x40259c
mov eax, dword [ebp + 0x7c]
push dword [ebp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
test ebx, ebx
mov esi, eax
jne 0x402537
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
push 0x436000
push eax
call dword [ecx + 0x24]
test edi, edi
je 0x402545
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 + 0x68]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov ecx, dword [ebp + 0x3c]
cmp word [ecx], 0
je 0x402567
push dword [ebp + 0x2c]
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 - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp + 0x7c]
push dword [ebp + 0x64]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test esi, esi
jl 0x402593
mov eax, dword [ebp + 0x34]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x6c]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp + 0x34]
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 0x4025b7
mov dword [ebp + 0x70], 1
push 0xfffffffffffffff0
jmp 0x401862
push 0xfffffffffffffff4
jmp 0x401862
xor esi, esi
call fcn.00401457
push 0x11
pop esi
mov edi, eax
call fcn.00401457
push 0x23
pop esi
mov ebx, eax
call fcn.00401457
push edi
mov esi, eax
call fcn.004065b3
test eax, eax
jne 0x4025f3
push 0
push 0xfffffffffffffff9
call fcn.0040523e
jmp 0x4017b9
mov eax, dword [ebp + 0x64]
push edi
mov dword [ebp], eax
mov dword [ebp + 4], 2
call sub.KERNEL32.dll_lstrlenW
and word [edi + eax*2 + 2], 0
push ebx
call sub.KERNEL32.dll_lstrlenW
and word [ebx + eax*2 + 2], 0
mov ax, word [ebp + 0x4c]
push esi
push 0
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x1a], esi
mov word [ebp + 0x10], ax
call fcn.0040523e
lea eax, [ebp]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je case.0x40165b.68
jmp 0x4025e5
cmp eax, 0xbadf00d
jne 0x401e68
inc dword [0x42a634]
jmp case.0x40165b.68
xor ebx, ebx
xor edi, edi
cmp eax, ebx
mov dword [ebp + 0x7c], ebx
je 0x40266f
xor esi, esi
call fcn.00401457
mov edi, eax
cmp dword [ebp + 0x48], ebx
je 0x40267f
push 0x11
pop esi
call fcn.00401457
mov dword [ebp + 0x7c], eax
cmp dword [ebp + 0x54], ebx
je 0x40268e
push 0x22
pop esi
call fcn.00401457
mov ebx, eax
push 0xffffffffffffffcd
pop esi
call fcn.00401457
push eax
push ebx
push dword [ebp + 0x7c]
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x4017b1
xor esi, esi
inc esi
mov dword [ebp + 0x7c], 0xa
call fcn.00401457
push 0x12
pop esi
mov edi, eax
call fcn.00401457
push 0xffffffffffffffdd
pop esi
mov dword [ebp + 0x1c], eax
call fcn.00401457
push eax
push 0x3ff
push ebx
lea eax, [ebp + 0x7c]
push eax
push dword [ebp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebx], 0xa
jmp 0x401961
cmp dword [ebp + 0x54], 0
mov edi, dword [ebp + 0x48]
jne 0x40271f
push 2
pop eax
call fcn.004014a1
mov edi, eax
test edi, edi
je 0x4017b9
push 0x33
pop esi
call fcn.00401457
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402737
push 0x22
pop esi
call fcn.00401457
mov ecx, dword [ebp + 0x54]
sar ecx, 1
push ecx
push edi
mov esi, eax
call fcn.004015c3
mov esi, eax
test esi, esi
je case.0x40165b.68
jmp 0x4017b9
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 + 0x34], eax
call fcn.00401457
push 0x11
pop esi
mov dword [ebp + 0x68], eax
call fcn.00401457
lea ecx, [ebp + 0x1c]
push ecx
push 0x100022
push eax
mov eax, edi
mov dword [ebp + 0x70], 1
call fcn.0040148f
push eax
call fcn.00406362
mov edi, eax
neg edi
sbb edi, edi
not edi
and edi, dword [ebp + 0x1c]
je case.0x40165b.68
xor esi, esi
xor eax, eax
cmp dword [ebp + 0x7c], 1
mov ebx, 0x40c148
jne 0x4027b7
push 0x23
pop esi
call fcn.00401457
push ebx
call sub.KERNEL32.dll_lstrlenW
lea eax, [eax + eax + 2]
xor esi, esi
cmp dword [ebp + 0x7c], 4
jne 0x4027d0
push 3
pop ecx
call fcn.0040143a
push 4
mov dword [0x40c148], eax
mov dword [ebp + 0x3c], edx
pop eax
cmp dword [ebp + 0x7c], 3
jne 0x4027fa
cmp dword [0x42a5c0], esi
push dword [ebp + 0x60]
mov ecx, dword [ebp + 0x54]
mov eax, dword [ebp + 0x50]
push 0x1800
push ebx
push esi
push ecx
push eax
je 0x4027f4
push 1
jmp 0x4027f5
push esi
call fcn.00403320
push eax
push ebx
push dword [ebp + 0x34]
push esi
push dword [ebp + 0x68]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402811
mov dword [ebp + 0x70], esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x40165b.68
mov eax, 0x20019
call fcn.004014a1
push 0x33
pop esi
mov edi, eax
call fcn.00401457
xor esi, esi
cmp edi, esi
mov word [ebx], si
je 0x4017b9
lea ecx, [ebp + 0x1c]
push ecx
push ebx
lea ecx, [ebp + 0x7c]
push ecx
push esi
push eax
push edi
mov dword [ebp + 0x1c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x402896
cmp dword [ebp + 0x7c], 4
je 0x40287e
cmp dword [ebp + 0x7c], ecx
je 0x40286f
cmp dword [ebp + 0x7c], 2
jne 0x402896
mov eax, dword [ebp + 0x54]
mov dword [ebp + 0x70], eax
mov word [ebx + 0x7fe], si
jmp 0x402811
push dword [ebx]
xor eax, eax
cmp dword [ebp + 0x54], esi
push ebx
sete al
mov dword [ebp + 0x70], eax
call fcn.0040640e
jmp 0x402811
mov word [ebx], si
mov dword [ebp + 0x70], ecx
jmp 0x402811
mov eax, 0x20019
call fcn.004014a1
push 3
pop ecx
mov edi, eax
call fcn.0040143a
xor esi, esi
cmp edi, esi
mov dword [ebp + 0x1c], edx
mov word [ebx], si
je 0x4017b9
cmp dword [ebp + 0x54], esi
mov ecx, 0x3ff
mov dword [ebp + 0x7c], ecx
je 0x4028de
push ecx
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402875
push esi
push esi
push esi
push esi
lea ecx, [ebp + 0x7c]
push ecx
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x402875
mov dword [ebp + 0x70], 1
jmp 0x402875
push ebx
call fcn.00406427
test eax, eax
je case.0x40165b.68
push eax
jmp 0x402252
push 0xffffffffffffffed
pop esi
call fcn.00401457
push dword [ebp + 0x4c]
push dword [ebp + 0x48]
push eax
call fcn.00406161
cmp eax, 0xffffffff
jne 0x401c41
and word [ebx], 0
jmp 0x4017b9
mov eax, dword [ebp + 0x4c]
xor ecx, ecx
cmp esi, 0x3a
sete cl
test eax, eax
mov dword [ebp + 0x7c], eax
mov edi, ecx
je 0x402968
xor ecx, ecx
inc ecx
call fcn.0040143a
mov word [0x40b948], ax
xor eax, eax
test edi, edi
sete al
mov dword [ebp + 0x1c], edx
inc eax
jmp 0x402994
cmp esi, 0x3a
jne 0x402998
push 0x21
pop esi
call fcn.00401457
push 0x400
mov esi, 0x40b948
push esi
push 0x40c148
call fcn.004064e9
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
jmp 0x4029aa
push 0x11
pop esi
call fcn.00401457
push eax
call sub.KERNEL32.dll_lstrlenW
mov esi, eax
add esi, esi
cmp word [ebx], 0
je 0x4017b9
push ebx
call fcn.00406427
or edi, dword [ebp + 0x7c]
mov ebx, eax
jne 0x4029d6
cmp dword [ebp + 0x50], 0
je 0x4029d6
push ebx
push ebx
call fcn.00406242
test eax, eax
jl 0x4017b9
push esi
push 0x40b948
push ebx
call fcn.00406213
jmp 0x4017b1
push 2
pop ecx
xor esi, esi
mov dword [ebp + 0x34], esi
mov dword [ebp - 0x20], ecx
call fcn.0040143a
cmp eax, 1
mov dword [ebp + 0x1c], edx
mov dword [ebp + 0x1c], eax
jl case.0x40165b.68
mov ecx, 0x3ff
cmp eax, ecx
jle 0x402a12
mov dword [ebp + 0x1c], ecx
xor edi, edi
cmp word [ebx], di
je 0x402b7c
push ebx
mov dword [ebp + 0x68], edi
call fcn.00406427
cmp dword [ebp + 0x1c], edi
mov dword [ebp + 0x2c], eax
jle 0x402b7c
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [ebp + 0x40], 0x3b
jne 0x402b10
push edi
lea eax, [ebp + 0x3c]
push eax
push 2
pop eax
sub eax, dword [ebp + 0x50]
push eax
lea eax, [ebp + 0x7c]
push eax
push dword [ebp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402b7c
mov ecx, dword [ebp + 0x3c]
cmp ecx, edi
je 0x402b7c
cmp dword [ebp + 0x50], edi
movzx ax, byte [ebp + 0x7c]
movzx eax, ax
mov dword [ebp - 0x20], ecx
mov dword [ebp + 0x64], eax
jne 0x402b3d
push 1
lea eax, [ebp + 0x64]
push eax
push ecx
lea eax, [ebp + 0x7c]
push eax
push 8
push edi
call ebx
test eax, eax
jne 0x402b38
mov esi, dword [ebp - 0x20]
neg esi
dec dword [ebp + 0x3c]
mov eax, 0xfffd
mov dword [ebp + 0x64], eax
je 0x402ad9
dec dword [ebp - 0x20]
push 1
push edi
inc esi
push esi
push dword [ebp + 0x2c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
lea eax, [ebp + 0x64]
push eax
push dword [ebp + 0x3c]
lea eax, [ebp + 0x7c]
push eax
push 8
push edi
call ebx
test eax, eax
je 0x402aa2
mov eax, dword [ebp + 0x64]
mov esi, dword [ebp + 0x34]
cmp dword [ebp + 0x50], edi
jne 0x402b3d
cmp word [ebp + 0x68], 0xd
je 0x402b4e
cmp word [ebp + 0x68], 0xa
je 0x402b4e
mov ecx, dword [ebp + 0x6c]
mov word [ecx + esi*2], ax
movzx ecx, ax
inc esi
cmp ax, di
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x68], ecx
je 0x402b7c
cmp esi, dword [ebp + 0x1c]
jl 0x402a38
jmp 0x402b7c
cmp dword [ebp + 0x50], edi
jne 0x402b26
cmp esi, edi
jne 0x402b26
push edi
push dword [ebp + 0x2c]
call fcn.00406242
test eax, eax
jl 0x402b7c
push 2
lea eax, [ebp + 0x64]
push eax
push dword [ebp + 0x2c]
call fcn.004061e4
test eax, eax
je 0x402b7c
mov eax, dword [ebp + 0x64]
jmp 0x402adc
movzx eax, ax
push eax
push dword [ebp + 0x6c]
call fcn.0040640e
jmp 0x402f76
cmp word [ebp + 0x68], ax
je 0x402b6a
cmp ax, 0xd
je 0x402b60
cmp ax, 0xa
jne 0x402b6a
mov ecx, dword [ebp + 0x6c]
mov word [ecx + esi*2], ax
inc esi
jmp 0x402b7c
mov eax, dword [ebp - 0x20]
push 1
push edi
neg eax
push eax
push dword [ebp + 0x2c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0x6c]
mov word [eax + esi*2], di
cmp esi, edi
jmp 0x4017b3
cmp word [ebx], 0
je case.0x40165b.68
push 2
pop ecx
call fcn.0040143a
push dword [ebp + 0x50]
mov dword [ebp + 0x1c], edx
push 0
push eax
push ebx
call fcn.00406427
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp + 0x48], 0
jl case.0x40165b.68
push eax
push dword [ebp + 0x6c]
jmp 0x401765
push ebx
call fcn.00406427
test eax, eax
je case.0x40165b.68
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x40165b.68
push dword [ebp + 0x6c]
call fcn.00406427
test eax, eax
je 0x401967
lea ecx, [ebp - 0x274]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x401967
jmp 0x402c37
push 2
pop esi
call fcn.00401457
lea ecx, [ebp - 0x274]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x402c2e
mov eax, dword [ebp + 0x6c]
and word [eax], 0
jmp 0x402930
push eax
push dword [ebp + 0x6c]
call fcn.0040640e
lea eax, [ebp - 0x248]
push eax
push ebx
call fcn.004064c7
jmp case.0x40165b.68
push 0xfffffffffffffff0
pop esi
mov dword [ebp + 0x28], 0xfffffd66
or ebx, 0xffffffff
call fcn.00401457
mov edi, eax
push edi
mov dword [ebp + 0x68], edi
call fcn.0040602f
test eax, eax
jne 0x402c72
push 0xffffffffffffffec
pop esi
call fcn.00401457
push edi
call fcn.0040613b
push 2
push 0x40000000
push edi
call fcn.00406161
xor edi, edi
cmp eax, ebx
mov dword [ebp + 0x7c], eax
je 0x402d74
cmp dword [ebp + 0x50], edi
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x38], eax
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x3c], eax
je 0x402d46
mov eax, dword [0x42a5d4]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
push 0x40
mov dword [ebp + 0x1c], eax
call esi
mov ebx, eax
cmp ebx, edi
je 0x402d46
push edi
call fcn.0040324d
push dword [ebp + 0x1c]
push ebx
call fcn.004031f1
push dword [ebp + 0x50]
push 0x40
call esi
mov esi, eax
cmp esi, edi
mov dword [ebp + 0x34], esi
je 0x402d2b
cmp dword [0x42a5c0], edi
push dword [ebp + 0x58]
push dword [ebp + 0x50]
push esi
push edi
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
je 0x402cfd
push 1
jmp 0x402cfe
push edi
call fcn.00403320
jmp 0x402d1d
mov ecx, dword [esi]
mov eax, dword [esi + 4]
push ecx
add esi, 8
push esi
add eax, ebx
push eax
mov dword [ebp - 0x24], ecx
call fcn.00406117
add esi, dword [ebp - 0x24]
cmp byte [esi], 0
jne 0x402d05
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp + 0x1c]
push ebx
push dword [ebp + 0x7c]
call fcn.00406213
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
or dword [ebp + 0x38], 0xffffffff
or dword [ebp + 0x3c], 0xffffffff
cmp dword [0x42a5c0], edi
push dword [ebp + 0x5c]
push edi
push edi
push dword [ebp + 0x7c]
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
je 0x402d60
push 1
jmp 0x402d61
push edi
call fcn.00403320
push dword [ebp + 0x7c]
mov ebx, edx
mov dword [ebp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
push 0xfffffffffffffff3
pop esi
jg 0x402d95
jl 0x402d82
cmp dword [ebp + 0x28], edi
jae 0x402d95
push 0xffffffffffffffef
pop esi
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp + 0x70], 1
push esi
jmp 0x401862
xor ecx, ecx
call fcn.0040143a
mov edi, eax
cmp edi, dword [0x42a58c]
mov dword [ebp + 0x1c], edx
jae 0x4017b9
mov eax, dword [ebp + 0x4c]
mov esi, edi
imul esi, esi, 0x818
add esi, dword [0x42a588]
test eax, eax
jl 0x402ddf
mov ecx, dword [esi + eax*4]
jne 0x402dd9
add esi, 0x18
push esi
push dword [ebp + 0x6c]
jmp 0x402c3f
push ecx
jmp 0x402bbd
or ecx, 0xffffffff
sub ecx, eax
mov dword [ebp + 0x4c], ecx
je 0x402df9
xor ecx, ecx
inc ecx
call fcn.0040143a
mov dword [ebp + 0x1c], edx
mov dword [ebp + 0x48], eax
jmp 0x402e0c
push dword [ebp + 0x54]
lea eax, [esi + 0x18]
push eax
call fcn.004068e1
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.0x40165b.68
push edi
call fcn.0040117d
jmp case.0x40165b.68
xor ecx, ecx
call fcn.0040143a
cmp eax, 0x20
mov dword [ebp + 0x1c], edx
jae 0x4017b9
xor esi, esi
cmp dword [ebp + 0x50], esi
je 0x402e66
cmp dword [ebp + 0x4c], esi
je 0x402e5b
push eax
call fcn.0040129d
push esi
push esi
call fcn.004011ef
jmp case.0x40165b.68
push esi
call fcn.004012e8
jmp 0x402bbc
cmp dword [ebp + 0x4c], esi
je 0x402e80
mov ecx, dword [ebp + 0x48]
mov edx, dword [0x42a56c]
mov dword [edx + eax*4 + 0x94], ecx
jmp case.0x40165b.68
mov ecx, dword [0x42a56c]
push dword [ecx + eax*4 + 0x94]
push dword [ebp + 0x6c]
call fcn.004068e1
jmp case.0x40165b.68
mov eax, dword [ebp + 0x50]
sub eax, 0
je 0x402ee9
dec eax
jne case.0x40165b.68
push 2
pop ecx
call fcn.0040143a
push 4
pop ecx
mov esi, eax
mov dword [ebp + 0x1c], edx
call fcn.0040143a
and dword [ebp + 0x7c], 0
movzx ecx, al
shr eax, 0x18
test esi, esi
mov dword [ebp + 0x1c], edx
jne 0x402ed4
mov esi, 0x42a620
push ecx
add eax, esi
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.00406117
push dword [ebp + 0x7c]
jmp 0x402bbd
push 6
call fcn.0040664a
push 0x22
pop esi
mov edi, eax
call fcn.00401457
test edi, edi
je 0x402f36
lea ecx, [ebp + 0x10]
push ecx
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
test eax, eax
jl 0x402f36
lea eax, [ebp + 0x7c]
push eax
push 0
push dword [ebp + 0x50]
lea eax, [ebp + 0x10]
push eax
call edi
test eax, eax
jl 0x402f36
push dword [ebp + 0x7c]
push dword [ebp + 0x6c]
call fcn.004064c7
push dword [ebp + 0x7c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp case.0x40165b.68
mov eax, dword [ebp + 0x6c]
and word [eax], 0
mov dword [ebp + 0x70], 1
jmp case.0x40165b.68
mov ecx, dword [0x4259f0]
push 0
and ecx, eax
push ecx
push 0xb
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp + 0x44], 0
je case.0x40165b.68
push 0
push 0
push dword [ebp + 0x64]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp + 0x70]
add dword [0x42a628], eax
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4