Function at 0x401560
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
Resolve function by parsing pe exports
Set current directory
Set file attributes
Set registry value

Disassembly:
sub esp, 0x2e8
mov edx, dword [0x429cf8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2f8]
xor ebp, ebp
push edi
push 9
pop ecx
lea edi, [esp + 0x30]
mov dword [esp + 0x28], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x34]
mov edx, section..ndata
mov eax, dword [esp + 0x38]
mov edi, ecx
mov esi, eax
shl edi, 0xb
add edi, edx
shl esi, 0xb
add esi, edx
mov dword [esp + 0x5c], ecx
lea edx, [esp + 0x34]
mov dword [esp + 0x14], edi
mov dword [0x40b0c4], edx
mov ebx, ebp
mov edx, dword [esp + 0x30]
add edx, 0xfffffffe
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], edx
cmp edx, 0x45
mov edx, dword [esp + 0x28]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], esi
ja case.0x4015dd.68
mov ebx, dword [esp + 0x18]
jmp dword [ebx*4 + 0x403028]
mov eax, ecx
jmp 0x40301b
push ebp
push ecx
call fcn.00406222
mov eax, 0x7fffffff
jmp 0x40301b
inc dword [0x429ce8]
test edx, edx
je 0x4015f2
push ebp
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x4015f2
push ecx
call fcn.00403275
dec eax
push ebp
push eax
call fcn.004013af
jmp 0x40301b
push ebp
push ecx
call fcn.00406222
jmp case.0x4015dd.68
push ebp
call fcn.00403178
pop ecx
xor ecx, ecx
inc ecx
cmp eax, ecx
cmovg ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x4015dd.68
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x4015dd.68
mov eax, dword [esp + 0x3c]
test eax, eax
jg 0x401687
jne 0x40166d
mov eax, dword [ecx*4 + 0x42adc0]
mov dword [ecx*4 + 0x42ad80], eax
push 1
call fcn.00403178
pop ecx
mov ecx, eax
mov eax, dword [esp + 0x34]
mov dword [eax*4 + 0x42adc0], ecx
jmp case.0x4015dd.68
mov eax, dword [ecx*4 + 0x42ad80]
mov dword [ecx*4 + 0x42adc0], eax
jmp case.0x4015dd.68
mov edx, dword [esp + 0x3c]
xor eax, eax
push 4
pop esi
mov ecx, dword [edx*4 + 0x42adc0]
test ecx, ecx
cmove eax, esi
and ecx, dword [esp + 0x40]
mov dword [edx*4 + 0x42adc0], ecx
mov eax, dword [esp + eax + 0x34]
jmp 0x40301b
push dword [eax*4 + 0x42adc0]
push edi
call fcn.00406b20
jmp case.0x4015dd.68
mov edx, dword [0x429ce0]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test edx, edx
je 0x4016ed
push eax
push edx
call esi
mov ecx, dword [esp + 0x34]
mov eax, dword [0x429ce4]
test eax, eax
je case.0x4015dd.68
push ecx
push eax
call esi
jmp case.0x4015dd.68
push 0xfffffffffffffff0
call fcn.004031b4
push dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne case.0x4015dd.68
xor ebx, ebx
inc ebx
jmp 0x403013
push 0xfffffffffffffff0
call fcn.004031b4
mov edi, eax
push edi
call fcn.004070c2
mov ebx, dword [esp + 0x10]
mov esi, eax
test esi, esi
je 0x401798
push 0x5c
push esi
call fcn.00406b01
mov esi, eax
xor eax, eax
movzx ebp, word [esi]
mov word [esi], ax
test bp, bp
jne 0x40176c
cmp dword [esp + 0x3c], eax
je 0x40176c
call fcn.00406a05
test eax, eax
je 0x40176c
push edi
call fcn.00406326
jmp 0x401772
push edi
call fcn.00406306
test eax, eax
je 0x401789
cmp eax, 0xb7
jne 0x401788
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x401789
inc ebx
mov word [esi], bp
add esi, 2
test bp, bp
jne 0x40173e
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x38], 0
push 0x40b8c8
je 0x4017cf
push 0xffffffffffffffe6
call fcn.00406222
push edi
push 0x436000
call fcn.0040702b
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne case.0x4015dd.68
inc ebx
mov dword [esp + 0x10], ebx
jmp case.0x4015dd.68
push 0xfffffffffffffff5
jmp 0x401624
push ebp
call fcn.004031b4
push eax
call fcn.00406ada
mov ecx, dword [esp + 0x3c]
test eax, eax
cmovne ecx, dword [esp + 0x38]
jmp case.0x4015dd.2
push 0xffffffffffffffd0
call fcn.004031b4
push 0xffffffffffffffdf
mov esi, eax
call fcn.004031b4
push 0x13
mov edi, eax
call fcn.004031b4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x401823
push 0x40b8c8
push 0xffffffffffffffe3
jmp 0x401624
cmp dword [esp + 0x3c], ebp
je 0x40171d
push esi
call fcn.00406ada
test eax, eax
je 0x40171d
push edi
push esi
call fcn.0040672d
push 0x40b8c8
push 0xffffffffffffffe4
jmp 0x401624
push ebp
call fcn.004031b4
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push esi
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x401876
xor ebx, ebx
inc ebx
xor eax, eax
mov word [esi], ax
jmp 0x40189e
mov eax, dword [esp + 0x1c]
cmp eax, edi
jbe 0x40189a
cmp word [eax], bp
je 0x40189a
push edi
call fcn.00406ada
test eax, eax
je 0x40186c
add eax, 0x2c
push eax
push dword [esp + 0x20]
call fcn.0040702b
mov ebx, dword [esp + 0x10]
cmp dword [esp + 0x3c], ebp
jne 0x403013
push 0x400
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
jmp 0x403013
push 0xffffffffffffffff
call fcn.004031b4
lea ecx, [esp + 0x5c]
push ecx
push edi
push 0x400
push ebp
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne case.0x4015dd.68
xor ebx, ebx
inc ebx
xor eax, eax
mov word [edi], ax
jmp 0x403013
push 0xffffffffffffffef
call fcn.004031b4
push eax
push edi
call fcn.00406f63
jmp 0x401715
push 0x31
call fcn.004031b4
mov ebx, dword [esp + 0x34]
mov esi, eax
and ebx, 7
mov dword [esp + 0x54], esi
push esi
mov dword [esp + 0x20], ebx
call fcn.004072f1
mov edi, 0x40b0c8
push esi
test eax, eax
je 0x40192d
push edi
call fcn.0040702b
jmp 0x401944
push 0x436000
push edi
call fcn.0040702b
push eax
call fcn.00406a61
push eax
call sub.KERNEL32.dll_lstrcatW
push edi
call fcn.00407235
xor esi, esi
inc esi
cmp ebx, 3
jl 0x401983
push edi
call fcn.00406ada
mov ecx, ebp
test eax, eax
je 0x40196f
lea ecx, [esp + 0x44]
add eax, 0x14
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov ecx, eax
add ebx, 0xfffffffd
or ebx, 0x80000000
and ebx, ecx
neg ebx
sbb ebx, ebx
inc ebx
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x40198d
push edi
call fcn.0040709a
xor eax, eax
cmp ebx, esi
setne al
inc eax
push eax
push 0x40000000
push edi
call fcn.00406e22
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x401a36
test ebx, ebx
jne 0x401a1c
push section..ndata
push 0x40c0c8
call fcn.0040702b
push edi
push section..ndata
call fcn.0040702b
push dword [esp + 0x4c]
push 0x40b8c8
call fcn.004063a4
push 0x40c0c8
push section..ndata
call fcn.0040702b
mov eax, dword [esp + 0x34]
sar eax, 3
push eax
push 0x40b8c8
call fcn.00406fb9
sub eax, 4
je 0x40194d
sub eax, 1
je 0x401a11
push edi
push 0xfffffffffffffffa
jmp 0x4015ed
inc dword [0x42adc8]
jmp 0x403019
push dword [esp + 0x54]
push 0xffffffffffffffe2
call fcn.00406222
xor ebx, ebx
cmp dword [esp + 0x1c], 2
sete bl
jmp 0x403013
push dword [esp + 0x54]
push 0xffffffffffffffea
call fcn.00406222
push dword [esp + 0x50]
inc dword [0x42adf4]
cmp dword [esp + 0x34], 0x15
push ebp
push ebp
jne 0x401a6c
push dword [esp + 0x20]
push dword [esp + 0x50]
push dword [esp + 0x50]
push esi
call fcn.00403361
mov esi, dword [esp + 0x14]
jmp 0x401a7f
mov esi, dword [esp + 0x20]
push esi
push dword [esp + 0x50]
push dword [esp + 0x50]
push ebp
call fcn.00403361
dec dword [0x42adf4]
or ebx, 0xffffffff
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
cmp dword [esp + 0x44], ebx
jne 0x401a9c
cmp dword [esp + 0x48], ebx
je 0x401aaa
lea eax, [esp + 0x44]
push eax
push ebp
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
jg case.0x4015dd.68
mov eax, dword [esp + 0x24]
jl 0x401acb
cmp eax, ebp
jae case.0x4015dd.68
cmp eax, 0xfffffffe
jne 0x401ae8
cmp ecx, ebx
jne 0x401ae8
push 0xffffffffffffffe9
push edi
call fcn.004063a4
push dword [esp + 0x54]
push edi
call sub.KERNEL32.dll_lstrcatW
jmp 0x401af0
push 0xffffffffffffffee
push edi
call fcn.004063a4
push 0x200010
push edi
call fcn.00406fb9
jmp 0x4015f2
xor ebx, ebx
or esi, 0xffffffff
inc ebx
cmp dword [0x40b014], esi
je 0x401b16
cmp dword [0x42ad04], ebp
jmp 0x401b83
cmp dword [0x42ad04], ebp
je 0x403013
push ebp
call fcn.004031b4
mov edi, eax
push edi
mov dword [esp + 0x1c], edi
call fcn.004072f1
test eax, eax
jne 0x401b69
push 0x438800
mov edi, 0x40b8c8
push edi
call fcn.0040702b
push edi
call fcn.004071c4
push eax
push edi
call fcn.0040702b
push edi
mov edi, dword [esp + 0x1c]
push str._s.nsisbin
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push edi
call fcn.00407235
push 3
push 0x80000000
push edi
call fcn.00406e22
mov dword [0x40b014], eax
cmp eax, esi
je 0x403013
mov ebx, ebp
jmp 0x403013
push ebp
call fcn.004031b4
push dword [esp + 0x38]
push eax
call fcn.00406c1e
jmp case.0x4015dd.68
push 0x31
call fcn.004031b4
push dword [esp + 0x34]
push eax
call fcn.00406fb9
test eax, eax
je 0x40171d
cmp eax, dword [esp + 0x3c]
jne 0x401bcd
mov eax, dword [esp + 0x40]
jmp 0x40301b
cmp eax, dword [esp + 0x44]
jne case.0x4015dd.68
mov eax, dword [esp + 0x48]
jmp 0x40301b
push 0xfffffffffffffff0
jmp 0x401b91
push 1
call fcn.004031b4
push eax
call sub.KERNEL32.dll_lstrlenW
push eax
jmp 0x4016ca
push 2
call fcn.00403178
push 3
mov ebp, eax
mov esi, edx
call fcn.00403178
pop ecx
pop ecx
push 1
mov ebx, eax
call fcn.004031b4
push eax
mov dword [esp + 0x1c], eax
call sub.KERNEL32.dll_lstrlenW
xor ecx, ecx
test esi, esi
mov word [edi], cx
cmove ebp, eax
test ebp, ebp
je case.0x4015dd.68
test ebx, ebx
jns 0x401c3c
add ebx, eax
js case.0x4015dd.68
cmp ebx, eax
cmovg ebx, eax
mov eax, dword [esp + 0x18]
lea eax, [eax + ebx*2]
push eax
push edi
call fcn.0040702b
test ebp, ebp
jns 0x401c5b
push edi
call sub.KERNEL32.dll_lstrlenW
add ebp, eax
mov ebx, dword [esp + 0x10]
xor eax, eax
test ebp, ebp
cmovns eax, ebp
cmp eax, 0x400
jge 0x403013
xor ecx, ecx
mov word [edi + eax*2], cx
jmp 0x403013
push 0x20
call fcn.004031b4
push 0x31
mov esi, eax
call fcn.004031b4
push eax
push esi
cmp dword [esp + 0x4c], ebp
jne 0x401cab
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x401bc4
mov eax, dword [esp + 0x3c]
jmp 0x40301b
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
jmp 0x401c9a
xor esi, esi
inc esi
push esi
call fcn.004031b4
push 0x400
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x401ce1
cmp dword [esp + 0x3c], ebp
je 0x401cea
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x401cea
xor eax, eax
mov ebx, esi
mov word [edi], ax
jmp 0x401cee
mov ebx, dword [esp + 0x10]
xor eax, eax
mov word [edi + 0x7fe], ax
jmp 0x403013
mov esi, dword [esp + 0x48]
push ebp
call fcn.00403178
push 1
mov edi, eax
call fcn.00403178
pop ecx
pop ecx
test esi, esi
jne 0x401d28
cmp edi, eax
jl 0x401bc4
jle 0x401ca2
mov eax, dword [esp + 0x44]
jmp 0x40301b
cmp edi, eax
jb 0x401bc4
jbe 0x401ca2
jmp 0x401d1f
xor ebx, ebx
inc ebx
push ebx
call fcn.00403178
push 2
mov esi, eax
call fcn.00403178
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [esp + 0x40]
cmp eax, 0xd
ja case.default.0x401d57
jmp dword [eax*4 + 0x403140]
add esi, ecx
jmp case.default.0x401d57
sub esi, ecx
jmp case.default.0x401d57
imul esi, ecx
jmp case.default.0x401d57
test ecx, ecx
je 0x401d78
mov eax, esi
cdq
idiv ecx
mov esi, eax
jmp 0x401d7a
mov esi, ebp
xor ebx, ebx
test ecx, ecx
sete bl
jmp 0x401dcb
or esi, ecx
jmp case.default.0x401d57
and esi, ecx
jmp case.default.0x401d57
xor esi, ecx
jmp case.default.0x401d57
xor eax, eax
test esi, esi
sete al
mov esi, eax
jmp case.default.0x401d57
test esi, esi
je 0x401daa
mov esi, ebx
jmp case.default.0x401d57
mov esi, ebp
jmp case.default.0x401d57
test esi, esi
je 0x401da2
test ecx, ecx
je 0x401da2
jmp 0x401d9e
test ecx, ecx
je 0x401d78
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp 0x401d7a
shl esi, cl
jmp case.default.0x401d57
sar esi, cl
jmp case.default.0x401d57
shr esi, cl
mov ebx, dword [esp + 0x10]
push esi
push edi
call fcn.00406b20
jmp 0x403013
push 1
call fcn.004031b4
push 2
mov esi, eax
call fcn.00403178
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp case.0x4015dd.68
mov ecx, dword [esp + 0x3c]
mov esi, dword [0x40b0c0]
test ecx, ecx
je 0x401e5a
dec ecx
test esi, esi
je 0x401e47
mov esi, dword [esi]
test ecx, ecx
jne 0x401e06
test esi, esi
je 0x401e47
add esi, 4
mov edi, 0x40b0c8
push esi
push edi
call fcn.0040702b
mov eax, dword [0x40b0c0]
add eax, 4
push eax
push esi
call fcn.0040702b
mov eax, dword [0x40b0c0]
push edi
add eax, 4
push eax
call fcn.0040702b
jmp case.0x4015dd.68
push 0x200010
push 0xffffffffffffffe8
push ebp
call fcn.004063a4
push eax
jmp 0x401af6
test eax, eax
je 0x401e83
test esi, esi
je 0x40171d
lea eax, [esi + 4]
push eax
push edi
call fcn.0040702b
mov eax, dword [esi]
push esi
mov dword [0x40b0c0], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x4015dd.68
push 0x804
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [esp + 0x34]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.004063a4
mov eax, dword [0x40b0c0]
mov dword [esi], eax
mov dword [0x40b0c0], esi
jmp case.0x4015dd.68
push 3
call fcn.00403178
mov esi, eax
push 4
mov dword [esp + 0x24], esi
call fcn.00403178
mov ebx, eax
mov eax, dword [esp + 0x50]
pop ecx
pop ecx
test al, 1
je 0x401ee2
push 0x33
call fcn.004031b4
mov esi, eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x48]
test al, 2
je 0x401eef
push 0x44
call fcn.004031b4
mov ebx, eax
cmp dword [esp + 0x30], 0x23
push 1
jne 0x401f47
call fcn.00403178
push 2
mov dword [esp + 0x24], eax
call fcn.00403178
pop ecx
pop ecx
mov ecx, dword [esp + 0x48]
sar ecx, 2
test ecx, ecx
je 0x401f38
lea edx, [esp + 0x14]
push edx
push ecx
push ebp
push ebx
push esi
push eax
push dword [esp + 0x34]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
neg eax
sbb ebx, ebx
mov eax, dword [esp + 0x14]
inc ebx
mov dword [esp + 0x10], ebx
jmp 0x401f76
push ebx
push esi
push eax
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x401f72
call fcn.004031b4
push 0x12
mov esi, eax
call fcn.004031b4
xor ecx, ecx
cmp word [eax], bp
cmovne ecx, eax
push ecx
xor ecx, ecx
cmp word [esi], bp
cmovne ecx, esi
push ecx
push ebx
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x34], ebp
jl case.0x4015dd.68
jmp 0x401bf1
push ebp
call fcn.00403178
pop ecx
push eax
call dword [sym.imp.USER32.dll_IsWindow]
jmp 0x4017e2
push 2
call fcn.00403178
push 1
mov esi, eax
call fcn.00403178
pop ecx
pop ecx
push esi
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x401bf1
mov esi, dword [0x42ad48]
push ebp
add esi, eax
call fcn.00403178
pop ecx
push esi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp case.0x4015dd.68
test dword [esp + 0x40], 0x100
je 0x401fe9
push 2
call fcn.00403178
pop ecx
jmp 0x401ff4
push dword [esp + 0x3c]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esp + 0x40]
mov ebp, eax
mov eax, ecx
mov ebx, ecx
and eax, 4
shr ebx, 0x1e
mov dword [esp + 0x14], eax
mov esi, ecx
mov eax, ecx
and esi, 3
shr eax, 0x1f
and ebx, 1
mov dword [esp + 0x18], eax
test ecx, 0x10000
je 0x40202a
push 0x11
call fcn.004031b4
jmp 0x40202f
movzx eax, word [esp + 0x38]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x98]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x40]
and eax, 0xfef0
push eax
mov eax, dword [esp + 0xa8]
imul eax, ebx
push eax
mov eax, dword [esp + 0xa8]
imul eax, dword [esp + 0x20]
push eax
xor eax, eax
cmp dword [esp + 0x20], eax
push esi
push dword [esp + 0x2c]
cmovne eax, dword [0x429cf4]
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov ebx, eax
push ebx
push esi
push 0x172
push ebp
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40209c
test esi, esi
jne 0x40209c
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0x34], 0
jl case.0x4015dd.68
push ebx
jmp 0x4016ca
push edx
call dword [sym.imp.USER32.dll_GetDC]
push 2
mov edi, eax
call fcn.00403178
pop ecx
push 0x48
push 0x5a
push edi
mov esi, eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [0x40d8c8], eax
mov eax, dword [esp + 0x28]
push edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 3
call fcn.00403178
pop ecx
mov ecx, dword [esp + 0x44]
push dword [esp + 0x38]
mov dword [0x40d8d8], eax
mov al, cl
and al, 1
mov byte [0x40d8df], 1
mov byte [0x40d8dc], al
mov al, cl
and al, 2
and cl, 4
push 0x40d8e4
mov byte [0x40d8dd], al
mov byte [0x40d8de], cl
call fcn.004063a4
push 0x40d8c8
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov ebx, dword [esp + 0x14]
push eax
push ebx
jmp 0x4016cb
push ebp
call fcn.00403178
push 1
mov esi, eax
call fcn.00403178
pop ecx
pop ecx
push eax
push esi
cmp dword [esp + 0x48], ebp
jne 0x402161
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x4015dd.68
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x4015dd.68
push ebp
call fcn.004031b4
push 0x31
mov ebx, eax
call fcn.004031b4
push 0x22
mov esi, eax
call fcn.004031b4
push 0x15
mov edi, eax
call fcn.004031b4
push 0x40b8c8
push 0xffffffffffffffec
call fcn.00406222
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x64], eax
xor eax, eax
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x78], ecx
cmp word [ebx], bp
mov dword [esp + 0x6c], esi
cmovne eax, ebx
mov dword [esp + 0x68], eax
xor eax, eax
cmp word [edi], bp
mov dword [esp + 0x74], 0x436000
cmovne eax, edi
mov dword [esp + 0x70], eax
lea eax, [esp + 0x5c]
push eax
call fcn.00406efe
test eax, eax
je 0x40171d
test byte [esp + 0x60], 0x40
je case.0x4015dd.68
push dword [esp + 0x94]
call fcn.00406a1d
push dword [esp + 0x94]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x4015dd.68
push ebp
call fcn.004031b4
mov esi, eax
push esi
push 0xffffffffffffffeb
call fcn.00406222
push esi
call fcn.00406bd9
mov ebx, dword [esp + 0x10]
mov esi, eax
test esi, esi
je 0x40171d
cmp dword [esp + 0x3c], ebp
je 0x40225e
push esi
call fcn.00406a1d
cmp dword [esp + 0x38], ebp
jl 0x402252
push eax
push dword [esp + 0x20]
call fcn.00406b20
jmp 0x40225e
xor ecx, ecx
inc ecx
test eax, eax
cmovne ebx, ecx
mov dword [esp + 0x10], ebx
push esi
jmp 0x402205
push 2
call fcn.004031b4
push eax
call fcn.00406ada
mov ebx, eax
test ebx, ebx
je 0x402285
push dword [ebx + 0x14]
push esi
call fcn.00406b20
push dword [ebx + 0x18]
jmp 0x4016ca
xor eax, eax
mov word [edi], ax
mov word [esi], ax
jmp 0x40171d
push 0xffffffffffffffee
call fcn.004031b4
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], eax
push ecx
push eax
push 0xa
call fcn.00406ded
call eax
xor ecx, ecx
mov dword [esp + 0x18], eax
xor ebx, ebx
mov word [edi], cx
inc ebx
mov word [esi], cx
test eax, eax
je 0x403013
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x14], eax
test eax, eax
je 0x403013
push 0xb
call fcn.00406ded
push 0xc
mov esi, eax
call fcn.00406ded
push dword [esp + 0x14]
mov dword [esp + 0x2c], eax
push dword [esp + 0x1c]
push ebp
push dword [esp + 0x60]
call esi
test eax, eax
je 0x402346
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x28]
push eax
push 0x4092c8
push dword [esp + 0x20]
call dword [esp + 0x38]
test eax, eax
je 0x402346
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x40]
push dword [ecx + eax*4 + 8]
push edi
call fcn.00406b20
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x24]
push dword [eax + ecx*4 + 0xc]
push dword [esp + 0x20]
call fcn.00406b20
mov ebx, ebp
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x403013
xor esi, esi
inc esi
mov ebx, esi
cmp dword [0x42ad60], ebp
jl 0x402431
push 0xfffffffffffffff0
call fcn.004031b4
mov edi, eax
push esi
mov dword [esp + 0x1c], edi
call fcn.004031b4
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x44], ebp
je 0x402394
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
jne 0x4023a8
mov edi, dword [esp + 0x18]
push 8
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x402428
push dword [esp + 0x1c]
push edi
call fcn.00406759
mov ecx, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x4023f9
mov ebx, ebp
cmp dword [esp + 0x3c], ebx
je 0x4023d9
push dword [esp + 0x3c]
call fcn.00403293
call dword [esp + 0x18]
test eax, eax
je 0x402404
mov ebx, esi
jmp 0x402404
mov eax, dword [esp + 0x28]
push section..data
push 0x40b0c0
push section..ndata
push 0x400
push eax
call ecx
add esp, 0x14
jmp 0x402404
push dword [esp + 0x1c]
push 0xfffffffffffffff7
call fcn.00406222
cmp dword [esp + 0x40], ebp
jne 0x403013
push edi
call fcn.004041f7
test eax, eax
je 0x403013
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x403013
push 0x40b8c8
push 0xfffffffffffffff6
jmp 0x402438
push 0x40b8c8
push 0xffffffffffffffe7
call fcn.00406222
jmp 0x403013
push 0xfffffffffffffff0
call fcn.004031b4
push 0xffffffffffffffdf
mov dword [esp + 0x60], eax
call fcn.004031b4
mov ebx, eax
push 2
mov dword [esp + 0x1c], ebx
call fcn.004031b4
push 0xffffffffffffffcd
mov dword [esp + 0x5c], eax
call fcn.004031b4
push 0x45
mov dword [esp + 0x58], eax
call fcn.004031b4
mov ecx, dword [esp + 0x44]
mov edi, ecx
mov dword [esp + 0x98], eax
mov eax, ecx
and eax, 0xfff
sar edi, 0xc
mov dword [esp + 0x28], eax
and edi, 7
mov eax, ecx
sar ecx, 0x10
and eax, 0x8000
mov dword [esp + 0x14], eax
movzx eax, cx
push ebx
mov dword [esp + 0x28], eax
call fcn.004072f1
test eax, eax
jne 0x4024bb
push 0x21
call fcn.004031b4
lea eax, [esp + 0x2c]
xor ebx, ebx
push eax
push 0x4099ec
inc ebx
push ebx
push ebp
push 0x409a0c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4025ac
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
push edx
push 0x4099fc
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
test esi, esi
js 0x402592
mov eax, dword [esp + 0x2c]
push dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov esi, eax
cmp dword [esp + 0x14], ebp
jne 0x40251f
mov eax, dword [esp + 0x2c]
push 0x436000
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test edi, edi
je 0x40252e
mov eax, dword [esp + 0x2c]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x2c]
push dword [esp + 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [esp + 0x54]
cmp word [edx], bp
je 0x402554
mov eax, dword [esp + 0x2c]
push dword [esp + 0x28]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [esp + 0x2c]
push dword [esp + 0x58]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esp + 0x2c]
push dword [esp + 0x98]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test esi, esi
js 0x402588
mov eax, dword [esp + 0x1c]
push ebx
push dword [esp + 0x60]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
js 0x4025ac
push 0x40b8c8
push 0xfffffffffffffff4
jmp 0x401624
push 0x40b8c8
push 0xfffffffffffffff0
jmp 0x402438
push ebp
call fcn.004031b4
push 0x11
mov esi, eax
call fcn.004031b4
push 0x23
mov edi, eax
call fcn.004031b4
push esi
mov ebx, eax
call fcn.00406ada
test eax, eax
jne 0x4025e9
push ebp
push 0xfffffffffffffff9
call fcn.00406222
jmp 0x40171d
mov eax, dword [esp + 0x28]
push esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 2
call sub.KERNEL32.dll_lstrlenW
xor ecx, ecx
push edi
mov word [esi + eax*2 + 2], cx
call sub.KERNEL32.dll_lstrlenW
xor ecx, ecx
push ebx
push ebp
mov word [edi + eax*2 + 2], cx
mov ax, word [esp + 0x44]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], edi
mov dword [esp + 0x7e], ebx
mov word [esp + 0x74], ax
call fcn.00406222
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je case.0x4015dd.68
jmp 0x4025dc
cmp ecx, 0xbadf00d
jne 0x401e47
inc dword [0x42add4]
jmp case.0x4015dd.68
mov esi, ebp
mov edi, ebp
test ecx, ecx
je 0x402670
push ebp
call fcn.004031b4
mov ebp, eax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40267d
push 0x11
call fcn.004031b4
mov esi, eax
cmp dword [esp + 0x44], edi
je 0x40268c
push 0x22
call fcn.004031b4
mov edi, eax
push 0xffffffffffffffcd
call fcn.004031b4
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x401715
push 0xa
pop ebp
push 1
mov dword [esp + 0x60], ebp
call fcn.004031b4
push 0x12
mov edi, eax
call fcn.004031b4
push 0xffffffffffffffdd
mov esi, eax
call fcn.004031b4
mov ebx, dword [esp + 0x14]
push eax
push 0x3ff
push ebx
lea eax, [esp + 0x68]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
movzx eax, word [ebx]
mov ecx, eax
cmp ax, bp
jne 0x4026e9
xor eax, eax
mov word [ebx], ax
xor ebx, ebx
cmp cx, bp
jmp 0x401a2e
xor edi, edi
inc edi
cmp dword [esp + 0x44], ebp
jne 0x402723
push 2
call fcn.00403237
mov esi, eax
test esi, esi
je 0x40273e
push 0x33
call fcn.004031b4
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40273e
push 0x22
call fcn.004031b4
mov ecx, dword [esp + 0x44]
sar ecx, 1
push ecx
mov ecx, dword [esp + 0x28]
push eax
push ecx
call fcn.004031f2
mov edi, eax
xor ebx, ebx
test edi, edi
setne bl
jmp 0x403013
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4c]
push 2
mov dword [esp + 0x5c], eax
call fcn.004031b4
push 0x11
mov dword [esp + 0x1c], eax
call fcn.004031b4
lea ecx, [esp + 0x98]
xor esi, esi
push ecx
push 0x100022
push eax
push dword [esp + 0x68]
inc esi
mov ebx, esi
call fcn.00403199
push eax
call fcn.00406797
mov ecx, dword [esp + 0x98]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [esp + 0x5c], ecx
test ecx, ecx
je 0x403013
mov ecx, dword [esp + 0x14]
mov eax, ebp
mov edi, 0x40c0c8
cmp ecx, esi
jne 0x4027cf
push 0x23
call fcn.004031b4
push edi
call sub.KERNEL32.dll_lstrlenW
mov ecx, dword [esp + 0x14]
lea eax, [eax*2 + 2]
cmp ecx, 4
jne 0x4027e8
push 3
call fcn.00403178
pop ecx
mov ecx, dword [esp + 0x14]
push 4
mov dword [0x40c0c8], eax
pop eax
cmp ecx, 3
jne 0x402811
push dword [esp + 0x50]
push 0x1800
push edi
push ebp
push dword [esp + 0x54]
push dword [esp + 0x54]
cmp dword [0x42ad04], ebp
je 0x40280b
push esi
jmp 0x40280c
push ebp
call fcn.00403361
mov esi, dword [esp + 0x5c]
push eax
push edi
push dword [esp + 0x60]
push ebp
push dword [esp + 0x28]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
push esi
sbb eax, eax
and ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403013
push 0x20019
call fcn.00403237
mov ebx, eax
push 0x33
mov dword [esp + 0x9c], ebx
call fcn.004031b4
xor ecx, ecx
mov word [edi], cx
test ebx, ebx
je 0x40171d
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], 0x800
push ecx
push edi
lea ecx, [esp + 0x1c]
push ecx
push ebp
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor esi, esi
inc esi
test eax, eax
jne 0x4028b9
cmp dword [esp + 0x14], 4
je 0x4028a6
cmp dword [esp + 0x14], esi
je 0x402897
cmp dword [esp + 0x14], 2
jne 0x4028b9
mov ebx, dword [esp + 0x44]
xor eax, eax
mov word [edi + 0x7fe], ax
jmp 0x4028c0
push dword [edi]
xor ebx, ebx
cmp dword [esp + 0x48], ebx
push edi
sete bl
call fcn.00406b20
jmp 0x4028c0
xor eax, eax
mov ebx, esi
mov word [edi], ax
push dword [esp + 0x98]
jmp 0x40282e
push 0x20019
call fcn.00403237
push 3
mov esi, eax
call fcn.00403178
mov ebx, dword [esp + 0x14]
pop ecx
xor ecx, ecx
mov dword [esp + 0x60], edx
mov word [edi], cx
test esi, esi
je 0x40171d
mov ecx, 0x3ff
mov dword [esp + 0x5c], ecx
cmp dword [esp + 0x44], ebp
je 0x402910
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x40292e
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0x6c]
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor ecx, ecx
inc ecx
test eax, eax
cmovne ebx, ecx
mov dword [esp + 0x10], ebx
xor eax, eax
push esi
mov word [edi + 0x7fe], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x4015dd.68
push edi
call fcn.00407122
test eax, eax
je case.0x4015dd.68
push eax
jmp 0x402205
push 0xffffffffffffffed
call fcn.004031b4
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push eax
call fcn.00406e22
cmp eax, 0xffffffff
jne 0x401bf1
xor eax, eax
mov word [edi], ax
jmp 0x40171d
mov ecx, dword [esp + 0x30]
xor eax, eax
mov edx, dword [esp + 0x3c]
cmp ecx, 0x3a
mov dword [esp + 0x5c], edx
mov ebx, 0x40b8c8
sete al
xor esi, esi
inc esi
mov dword [esp + 0x1c], eax
test edx, edx
je 0x4029bc
push esi
call fcn.00403178
mov word [0x40b8c8], ax
xor eax, eax
cmp dword [esp + 0x20], eax
pop ecx
sete al
inc eax
jmp 0x4029f3
cmp ecx, 0x3a
jne 0x4029e4
push 0x21
call fcn.004031b4
push 0x400
push ebx
push 0x40c0c8
call fcn.00406972
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x4029f3
push 0x11
call fcn.004031b4
push eax
call sub.KERNEL32.dll_lstrlenW
add eax, eax
mov dword [esp + 0x14], eax
cmp word [edi], bp
je 0x402a32
push edi
call fcn.00407122
mov edi, eax
mov eax, dword [esp + 0x1c]
or eax, dword [esp + 0x5c]
jne 0x402a1f
cmp dword [esp + 0x40], ebp
je 0x402a1f
push edi
push edi
call fcn.0040698d
test eax, eax
js 0x402a32
push dword [esp + 0x14]
push ebx
push edi
call fcn.00406f16
test eax, eax
jne case.0x4015dd.68
mov ebx, esi
jmp 0x403013
push 2
pop ecx
push ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], ecx
call fcn.00403178
xor ebx, ebx
inc ebx
pop ecx
cmp eax, ebx
jl case.0x4015dd.68
mov ecx, 0x3ff
cmp eax, ecx
cmovg eax, ecx
mov dword [esp + 0x18], eax
cmp word [edi], bp
je 0x402bc1
push edi
mov dword [esp + 0x28], ebp
call fcn.00407122
mov ecx, eax
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x18], ebp
jle 0x402bc1
mov dword [esp + 0x98], 0xd
mov edi, ebp
cmp dword [esp + 0x30], 0x3b
jne 0x402b52
push ebp
lea eax, [esp + 0x58]
push eax
push 2
pop eax
sub eax, dword [esp + 0x48]
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402bc1
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x402bc1
movzx eax, byte [esp + 0x10]
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x40], ebp
jne 0x402c06
push ebx
lea eax, [esp + 0x30]
push eax
push ecx
lea eax, [esp + 0x1c]
push eax
push 8
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x402b7c
mov ecx, dword [esp + 0x28]
mov edx, ecx
neg edx
sub dword [esp + 0x54], 1
mov eax, 0xfffd
mov dword [esp + 0x2c], eax
je 0x402b84
push ebx
dec ecx
inc edx
push ebp
push edx
push dword [esp + 0x20]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x6c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x5c]
lea eax, [esp + 0x1c]
push eax
push 8
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x5c]
test eax, eax
je 0x402b05
jmp 0x402b7c
cmp dword [esp + 0x40], ebp
jne 0x402b6b
test edi, edi
jne 0x402b6b
push ebp
push ecx
call fcn.0040698d
test eax, eax
js 0x402bc1
mov ecx, dword [esp + 0x14]
push 2
lea eax, [esp + 0x30]
push eax
push ecx
call fcn.00406e4f
test eax, eax
je 0x402bc1
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], ebp
jne 0x402c06
push 0xd
pop edx
cmp word [esp + 0x24], dx
push 0xa
pop edx
je 0x402bd4
cmp word [esp + 0x24], dx
je 0x402bd4
mov word [esi + edi*2], ax
inc edi
movzx ecx, ax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], ecx
test ax, ax
je 0x402bc1
mov ecx, dword [esp + 0x14]
cmp edi, dword [esp + 0x18]
jl 0x402a94
mov eax, dword [esp + 0x1c]
xor ecx, ecx
xor ebx, ebx
test eax, eax
mov word [esi + eax*2], cx
jmp 0x401a2e
cmp word [esp + 0x24], ax
je 0x402bf5
cmp ax, word [esp + 0x98]
je 0x402bea
cmp ax, dx
jne 0x402bf5
mov word [esi + edi*2], ax
inc edi
mov dword [esp + 0x1c], edi
jmp 0x402bc1
push ebx
push ebp
neg ecx
push ecx
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x402bc1
movzx eax, ax
push eax
push esi
call fcn.00406b20
jmp 0x403019
cmp word [edi], bp
je case.0x4015dd.68
push 2
call fcn.00403178
pop ecx
push dword [esp + 0x40]
push ebp
push eax
push edi
call fcn.00407122
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x38], ebp
jl case.0x4015dd.68
push eax
push esi
jmp 0x4016cb
push edi
call fcn.00407122
test eax, eax
je case.0x4015dd.68
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x4015dd.68
push esi
call fcn.00407122
test eax, eax
je 0x4018dd
lea ecx, [esp + 0xa8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4018dd
lea eax, [esp + 0xd4]
push eax
push edi
jmp 0x401e3d
push 2
call fcn.004031b4
lea ecx, [esp + 0xa8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x402cbc
xor eax, eax
mov word [esi], ax
jmp 0x402975
push eax
push esi
call fcn.00406b20
jmp 0x402c89
push 0xfffffffffffffff0
mov dword [esp + 0x20], 0xfffffd66
or esi, 0xffffffff
call fcn.004031b4
mov ebx, eax
push ebx
mov dword [esp + 0x5c], ebx
call fcn.004072f1
test eax, eax
jne 0x402cee
push 0xffffffffffffffec
call fcn.004031b4
push ebx
call fcn.0040709a
push 2
push 0x40000000
push ebx
call fcn.00406e22
xor ebx, ebx
mov edi, eax
inc ebx
mov dword [esp + 0x98], edi
cmp edi, esi
je 0x402e1f
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x40], ebp
je 0x402df8
mov eax, dword [0x42ad10]
push eax
push 0x40
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x14], eax
test eax, eax
je 0x402df0
push ebp
call fcn.0040334a
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.004032ba
push dword [esp + 0x40]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [esp + 0x5c], edi
test edi, edi
je 0x402dcb
push dword [esp + 0x48]
push dword [esp + 0x44]
push edi
push ebp
push dword [esp + 0x34]
push dword [esp + 0x30]
cmp dword [0x42ad04], ebp
je 0x402d93
push ebx
jmp 0x402d94
push ebp
call fcn.00403361
cmp byte [edi], 0
je 0x402dc1
mov ebx, dword [esp + 0x14]
mov esi, dword [edi]
mov eax, dword [edi + 4]
add edi, 8
push esi
push edi
add eax, ebx
push eax
call fcn.00406bb7
add edi, esi
cmp byte [edi], 0
jne 0x402da2
xor ebx, ebx
inc ebx
or esi, 0xffffffff
push dword [esp + 0x5c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x18]
mov edi, dword [esp + 0x9c]
push dword [esp + 0x18]
push edi
call fcn.00406f16
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
mov ecx, esi
jmp 0x402df8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push dword [esp + 0x4c]
push ebp
push ebp
push edi
push ecx
push eax
cmp dword [0x42ad04], ebp
je 0x402e0c
push ebx
jmp 0x402e0d
push ebp
call fcn.00403361
push edi
mov esi, edx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffff3
pop edi
cmp esi, ebp
jg 0x402e3d
jl 0x402e2e
cmp dword [esp + 0x1c], ebp
jae 0x402e3d
push 0xffffffffffffffef
pop edi
push dword [esp + 0x58]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x402e41
mov ebx, dword [esp + 0x10]
push edi
call fcn.00403293
jmp 0x403013
push ebp
call fcn.00403178
mov ebx, eax
pop ecx
cmp ebx, dword [0x42ad2c]
jae 0x40171d
mov ecx, dword [esp + 0x3c]
imul edi, ebx, 0x818
add edi, dword [0x42ad28]
test ecx, ecx
js 0x402e88
mov eax, dword [edi + ecx*4]
jne 0x402c43
lea eax, [edi + 0x18]
push eax
push esi
jmp 0x401e3d
or eax, 0xffffffff
sub eax, ecx
mov dword [esp + 0x3c], eax
je 0x402ea3
push 1
call fcn.00403178
pop ecx
mov ecx, eax
mov dword [esp + 0x38], ecx
jmp 0x402ebb
push dword [esp + 0x44]
lea eax, [edi + 0x18]
push eax
call fcn.004063a4
or dword [edi + 8], 0x100
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [edi + eax*4], ecx
cmp dword [esp + 0x40], ebp
je case.0x4015dd.68
push ebx
call fcn.0040122b
jmp case.0x4015dd.68
push ebp
call fcn.00403178
mov edi, eax
pop ecx
cmp edi, 0x20
jae 0x40171d
cmp dword [esp + 0x40], ebp
je 0x402f12
cmp dword [esp + 0x3c], ebp
je 0x402f07
push edi
call fcn.0040129a
push ebp
push ebp
call fcn.004012e7
jmp case.0x4015dd.68
push ebp
call fcn.004011a0
jmp 0x402c43
mov eax, dword [0x42ad18]
cmp dword [esp + 0x3c], ebp
je 0x402f2d
mov ecx, dword [esp + 0x38]
mov dword [eax + edi*4 + 0x94], ecx
jmp case.0x4015dd.68
push dword [eax + edi*4 + 0x94]
push esi
call fcn.004063a4
jmp case.0x4015dd.68
mov eax, dword [esp + 0x40]
sub eax, ebp
je 0x402f91
sub eax, 1
jne case.0x4015dd.68
push 2
call fcn.00403178
push 4
mov esi, eax
call fcn.00403178
pop ecx
movzx edx, al
pop ecx
shr eax, 0x18
mov ecx, 0x42adc0
test esi, esi
mov dword [esp + 0x18], ebp
push edx
cmovne ecx, esi
add eax, ecx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00406bb7
push dword [esp + 0x18]
push dword [esp + 0x20]
jmp 0x4016cb
push 5
call fcn.00406ded
push 0x22
mov edi, eax
call fcn.004031b4
test edi, edi
je 0x402fe0
lea ecx, [esp + 0x5c]
push ecx
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
test eax, eax
js 0x402fe0
lea eax, [esp + 0x18]
push eax
push ebp
push dword [esp + 0x48]
lea eax, [esp + 0x68]
push eax
call edi
test eax, eax
js 0x402fe0
push dword [esp + 0x18]
push esi
call fcn.0040702b
push dword [esp + 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp case.0x4015dd.68
xor ebx, ebx
inc ebx
xor eax, eax
mov word [esi], ax
jmp 0x403013
mov eax, dword [0x4221d0]
push ebp
and eax, ecx
push eax
push 0xb
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esp + 0x34], ebp
je case.0x4015dd.68
mov eax, dword [esp + 0x28]
push ebp
push ebp
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ebx, dword [esp + 0x10]
add dword [0x42adc8], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2e8
ret 4