Function at 0x401550
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 [0x468d98]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2f8]
xor ebp, ebp
push edi
push 9
pop ecx
lea edi, [esp + 0x24]
mov dword [esp + 0x20], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x28]
mov edx, section..ndata
mov eax, dword [esp + 0x2c]
mov ebx, ebp
imul edi, ecx, 0x4008
imul esi, eax, 0x4008
mov dword [esp + 0x10], ebx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x54], eax
add edi, edx
add esi, edx
mov dword [esp + 0x18], edi
lea edx, [esp + 0x28]
mov dword [esp + 0x14], esi
mov dword [0x40b0c4], edx
mov edx, dword [esp + 0x24]
add edx, 0xfffffffe
mov dword [esp + 0x1c], edx
cmp edx, 0x45
mov edx, dword [esp + 0x20]
ja case.0x4015cf.68
mov ebx, dword [esp + 0x1c]
jmp dword [ebx*4 + 0x403064]
mov eax, ecx
jmp 0x403055
push ebp
push ecx
call fcn.00406231
mov eax, 0x7fffffff
jmp 0x403055
inc dword [0x468d70]
test edx, edx
je 0x4015e4
push ebp
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x4015e4
push ecx
call fcn.004032b4
dec eax
push ebp
push eax
call fcn.0040139f
jmp 0x403055
push ebp
push ecx
call fcn.00406231
jmp case.0x4015cf.68
push ebp
call fcn.004031b4
pop ecx
xor ecx, ecx
mov dword [esp + 0x60], edx
inc ecx
cmp eax, ecx
cmovg ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x4015cf.68
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x4015cf.68
mov eax, dword [esp + 0x30]
test eax, eax
jg 0x401681
jne 0x401663
mov eax, dword [ecx*4 + 0x470e80]
mov dword [ecx*4 + 0x470e40], eax
push 1
call fcn.004031b4
pop ecx
mov ecx, eax
mov dword [esp + 0x60], edx
mov eax, dword [esp + 0x28]
mov dword [eax*4 + 0x470e80], ecx
jmp case.0x4015cf.68
mov eax, dword [ecx*4 + 0x470e40]
mov dword [ecx*4 + 0x470e80], eax
jmp case.0x4015cf.68
mov edx, dword [esp + 0x30]
xor eax, eax
mov ecx, dword [edx*4 + 0x470e80]
test ecx, ecx
sete al
and ecx, dword [esp + 0x34]
mov dword [edx*4 + 0x470e80], ecx
mov eax, dword [esp + eax*4 + 0x28]
jmp 0x403055
push dword [eax*4 + 0x470e80]
push edi
call fcn.00406b40
jmp case.0x4015cf.68
mov edx, dword [0x468d68]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test edx, edx
je 0x4016e4
push eax
push edx
call esi
mov ecx, dword [esp + 0x28]
mov eax, dword [0x468d6c]
test eax, eax
je case.0x4015cf.68
push ecx
push eax
call esi
jmp case.0x4015cf.68
push 0xfffffffffffffff0
call fcn.004031f0
push dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne case.0x4015cf.68
xor ebx, ebx
inc ebx
jmp 0x40304d
push 0xfffffffffffffff0
call fcn.004031f0
mov edi, eax
push edi
call fcn.004070f0
mov ebx, dword [esp + 0x10]
mov esi, eax
test esi, esi
je 0x401793
push 0x5c
push esi
call fcn.00406b21
mov esi, eax
xor eax, eax
movzx ebp, word [esi]
mov word [esi], ax
test bp, bp
jne 0x401763
cmp dword [esp + 0x30], eax
je 0x401763
call fcn.00406a25
test eax, eax
je 0x401763
push edi
call fcn.00406335
jmp 0x401769
push edi
call fcn.00406315
test eax, eax
je 0x401780
cmp eax, 0xb7
jne 0x40177f
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x401780
inc ebx
mov word [esi], bp
add esi, 2
test bp, bp
jne 0x401735
mov dword [esp + 0x10], ebx
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x2c], 0
push 0x40f0d0
je 0x4017ca
push 0xffffffffffffffe6
call fcn.00406231
push edi
push 0x4c90b0
call fcn.00407059
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne case.0x4015cf.68
inc ebx
mov dword [esp + 0x10], ebx
jmp case.0x4015cf.68
push 0xfffffffffffffff5
jmp 0x401616
push ebp
call fcn.004031f0
push eax
call fcn.00406afa
mov ecx, dword [esp + 0x30]
test eax, eax
cmovne ecx, dword [esp + 0x2c]
jmp case.0x4015cf.2
push 0xffffffffffffffd0
call fcn.004031f0
push 0xffffffffffffffdf
mov esi, eax
call fcn.004031f0
push 0x13
mov edi, eax
call fcn.004031f0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40181e
push 0x40f0d0
push 0xffffffffffffffe3
jmp 0x401616
cmp dword [esp + 0x30], ebp
je 0x401714
push esi
call fcn.00406afa
test eax, eax
je 0x401714
push edi
push esi
call fcn.0040674d
push 0x40f0d0
push 0xffffffffffffffe4
jmp 0x401616
push ebp
call fcn.004031f0
mov edi, eax
lea eax, [esp + 0x14]
push eax
push esi
push 0x2004
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x401871
xor ebx, ebx
inc ebx
xor eax, eax
mov word [esi], ax
jmp 0x401899
mov eax, dword [esp + 0x14]
cmp eax, edi
jbe 0x401895
cmp word [eax], bp
je 0x401895
push edi
call fcn.00406afa
test eax, eax
je 0x401867
add eax, 0x2c
push eax
push dword [esp + 0x18]
call fcn.00407059
mov ebx, dword [esp + 0x10]
cmp dword [esp + 0x30], ebp
jne 0x40304d
push 0x2004
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
jmp 0x40304d
push 0xffffffffffffffff
call fcn.004031f0
lea ecx, [esp + 0x5c]
push ecx
push edi
push 0x2004
push ebp
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne case.0x4015cf.68
xor ebx, ebx
inc ebx
xor eax, eax
mov word [edi], ax
jmp 0x40304d
push 0xffffffffffffffef
call fcn.004031f0
push eax
push edi
call fcn.00406f91
jmp 0x40170c
push 0x31
call fcn.004031f0
mov esi, dword [esp + 0x28]
mov ebx, eax
push ebx
mov dword [esp + 0x18], ebx
and esi, 7
call fcn.00407321
mov edi, 0x40b0c8
push ebx
test eax, eax
je 0x401924
push edi
call fcn.00407059
jmp 0x40193b
push 0x4c90b0
push edi
call fcn.00407059
push eax
call fcn.00406a81
push eax
call sub.KERNEL32.dll_lstrcatW
push edi
call fcn.00407265
xor ebx, ebx
inc ebx
cmp esi, 3
jl 0x401976
push edi
call fcn.00406afa
mov ecx, ebp
test eax, eax
je 0x401966
lea ecx, [esp + 0x38]
add eax, 0x14
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov ecx, eax
add esi, 0xfffffffd
or esi, 0x80000000
and esi, ecx
neg esi
sbb esi, esi
inc esi
test esi, esi
jne 0x401980
push edi
call fcn.004070c8
xor eax, eax
cmp esi, ebx
setne al
inc eax
push eax
push 0x40000000
push edi
call fcn.00406e50
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
jne 0x401a26
test esi, esi
jne 0x401a0d
push section..ndata
push 0x4130d8
call fcn.00407059
push edi
push section..ndata
call fcn.00407059
push dword [esp + 0x40]
push 0x40f0d0
call fcn.004063b3
push 0x4130d8
push section..ndata
call fcn.00407059
mov eax, dword [esp + 0x28]
sar eax, 3
push eax
push 0x40f0d0
call fcn.00406fe7
sub eax, 4
je 0x401944
dec eax
je 0x401a02
push edi
push 0xfffffffffffffffa
jmp 0x4015df
inc dword [0x470e88]
jmp 0x403053
push dword [esp + 0x14]
push 0xffffffffffffffe2
call fcn.00406231
cmp esi, 2
jne case.0x4015cf.68
jmp 0x40304d
mov esi, dword [esp + 0x14]
push esi
push 0xffffffffffffffea
call fcn.00406231
push dword [esp + 0x44]
inc dword [0x470eb4]
cmp dword [esp + 0x28], 0x15
push ebp
push ebp
push dword [esp + 0x2c]
push dword [esp + 0x44]
push dword [esp + 0x44]
jne 0x401a54
push ebx
jmp 0x401a55
push ebp
call fcn.004033a1
dec dword [0x470eb4]
or ebx, 0xffffffff
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x38], ebx
jne 0x401a77
cmp dword [esp + 0x3c], ebx
je 0x401a88
lea eax, [esp + 0x38]
push eax
push ebp
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
cmp ecx, ebp
jg case.0x4015cf.68
mov eax, dword [esp + 0x18]
jl 0x401aac
cmp eax, ebp
jae case.0x4015cf.68
cmp eax, 0xfffffffe
jne 0x401ac6
cmp ecx, ebx
jne 0x401ac6
push 0xffffffffffffffe9
push edi
call fcn.004063b3
push esi
push edi
call sub.KERNEL32.dll_lstrcatW
jmp 0x401ace
push 0xffffffffffffffee
push edi
call fcn.004063b3
push 0x200010
push edi
call fcn.00406fe7
jmp 0x4015e4
xor ebx, ebx
or esi, 0xffffffff
inc ebx
cmp dword [0x40b014], esi
je 0x401af4
cmp dword [0x470db0], ebp
jmp 0x401b61
cmp dword [0x470db0], ebp
je 0x40304d
push ebp
call fcn.004031f0
mov edi, eax
push edi
mov dword [esp + 0x20], edi
call fcn.00407321
test eax, eax
jne 0x401b47
push 0x4dd0d8
mov edi, 0x40f0d0
push edi
call fcn.00407059
push edi
call fcn.004071f4
push eax
push edi
call fcn.00407059
push edi
mov edi, dword [esp + 0x20]
push str._s.nsisbin
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push edi
call fcn.00407265
push 3
push 0x80000000
push edi
call fcn.00406e50
mov dword [0x40b014], eax
cmp eax, esi
je 0x40304d
mov ebx, ebp
jmp 0x40304d
push ebp
call fcn.004031f0
push dword [esp + 0x2c]
push eax
call fcn.00406c3c
jmp case.0x4015cf.68
push 0x31
call fcn.004031f0
push dword [esp + 0x28]
push eax
call fcn.00406fe7
test eax, eax
je 0x401714
cmp eax, dword [esp + 0x30]
jne 0x401bab
mov eax, dword [esp + 0x34]
jmp 0x403055
cmp eax, dword [esp + 0x38]
jne case.0x4015cf.68
mov eax, dword [esp + 0x3c]
jmp 0x403055
push 0xfffffffffffffff0
jmp 0x401b6f
push 1
call fcn.004031f0
push eax
call sub.KERNEL32.dll_lstrlenW
push eax
jmp 0x4016c1
push 2
call fcn.004031b4
push 3
mov ebx, eax
mov esi, edx
call fcn.004031b4
pop ecx
pop ecx
push 1
mov ebp, eax
mov dword [esp + 0x64], edx
call fcn.004031f0
push eax
mov dword [esp + 0x20], eax
call sub.KERNEL32.dll_lstrlenW
xor ecx, ecx
test esi, esi
mov word [edi], cx
cmove ebx, eax
test ebx, ebx
je case.0x4015cf.68
test ebp, ebp
jns 0x401c1e
add ebp, eax
js case.0x4015cf.68
cmp ebp, eax
cmovg ebp, eax
mov eax, dword [esp + 0x1c]
lea eax, [eax + ebp*2]
push eax
push edi
call fcn.00407059
test ebx, ebx
jns 0x401c43
push edi
call sub.KERNEL32.dll_lstrlenW
add ebx, eax
push 0
pop eax
cmovs ebx, eax
cmp ebx, 0x2004
jge case.0x4015cf.68
xor eax, eax
mov word [edi + ebx*2], ax
jmp case.0x4015cf.68
push 0x20
call fcn.004031f0
push 0x31
mov esi, eax
call fcn.004031f0
push eax
push esi
cmp dword [esp + 0x40], ebp
jne 0x401c89
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x401ba2
mov eax, dword [esp + 0x30]
jmp 0x403055
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
jmp 0x401c78
xor ebx, ebx
inc ebx
push ebx
call fcn.004031f0
push 0x2004
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x401cbf
cmp dword [esp + 0x30], ebp
je 0x401cc6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x401cc6
xor eax, eax
mov word [edi], ax
jmp 0x401cca
mov ebx, dword [esp + 0x10]
xor eax, eax
mov word [edi + 0x4006], ax
jmp 0x40304d
mov esi, dword [esp + 0x3c]
push ebp
call fcn.004031b4
push 1
mov edi, eax
mov dword [esp + 0x68], edx
call fcn.004031b4
mov dword [esp + 0x68], edx
pop ecx
pop ecx
test esi, esi
jne 0x401d10
cmp edi, eax
jl 0x401ba2
jle 0x401c80
mov eax, dword [esp + 0x38]
jmp 0x403055
cmp edi, eax
jb 0x401ba2
jbe 0x401c80
jmp 0x401d07
xor ebx, ebx
inc ebx
push ebx
call fcn.004031b4
push 2
mov esi, eax
mov dword [esp + 0x68], edx
call fcn.004031b4
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x60], edx
mov eax, dword [esp + 0x34]
cmp eax, 0xd
ja case.default.0x401d47
jmp dword [eax*4 + 0x40317c]
add esi, ecx
jmp case.default.0x401d47
sub esi, ecx
jmp case.default.0x401d47
imul esi, ecx
jmp case.default.0x401d47
test ecx, ecx
je 0x401d68
mov eax, esi
cdq
idiv ecx
mov esi, eax
jmp case.default.0x401d47
mov esi, ebp
jmp 0x401db2
or esi, ecx
jmp case.default.0x401d47
and esi, ecx
jmp case.default.0x401d47
xor esi, ecx
jmp case.default.0x401d47
xor eax, eax
test esi, esi
sete al
jmp 0x401d64
test esi, esi
je 0x401d91
mov esi, ebx
jmp case.default.0x401d47
mov esi, ebp
jmp case.default.0x401d47
test esi, esi
je 0x401d89
test ecx, ecx
je 0x401d89
jmp 0x401d85
test ecx, ecx
je 0x401d68
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp case.default.0x401d47
shl esi, cl
jmp case.default.0x401d47
sar esi, cl
jmp case.default.0x401d47
shr esi, cl
mov ebx, dword [esp + 0x10]
push esi
push edi
call fcn.00406b40
jmp 0x40304d
push 1
call fcn.004031f0
push 2
mov esi, eax
call fcn.004031b4
push eax
push esi
push edi
mov dword [esp + 0x70], edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp case.0x4015cf.68
mov ecx, dword [esp + 0x30]
mov esi, dword [0x40b0c0]
test ecx, ecx
je 0x401e45
dec ecx
test esi, esi
je 0x401e32
mov esi, dword [esi]
test ecx, ecx
jne 0x401df1
test esi, esi
je 0x401e32
add esi, 4
mov edi, 0x40b0c8
push esi
push edi
call fcn.00407059
mov eax, dword [0x40b0c0]
add eax, 4
push eax
push esi
call fcn.00407059
mov eax, dword [0x40b0c0]
push edi
add eax, 4
push eax
call fcn.00407059
jmp case.0x4015cf.68
push 0x200010
push 0xffffffffffffffe8
push ebp
call fcn.004063b3
push eax
jmp 0x401ad4
test eax, eax
je 0x401e6e
test esi, esi
je 0x401714
lea eax, [esi + 4]
push eax
push edi
call fcn.00407059
mov eax, dword [esi]
push esi
mov dword [0x40b0c0], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x4015cf.68
push 0x400c
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [esp + 0x28]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.004063b3
mov eax, dword [0x40b0c0]
mov dword [esi], eax
mov dword [0x40b0c0], esi
jmp case.0x4015cf.68
push 3
call fcn.004031b4
mov esi, eax
mov dword [esp + 0x64], edx
push 4
mov dword [esp + 0x1c], esi
call fcn.004031b4
mov ebx, eax
mov dword [esp + 0x68], edx
mov eax, dword [esp + 0x44]
pop ecx
pop ecx
test al, 1
je 0x401ed5
push 0x33
call fcn.004031f0
mov esi, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
test al, 2
je 0x401ee2
push 0x44
call fcn.004031f0
mov ebx, eax
cmp dword [esp + 0x24], 0x23
push 1
jne 0x401f42
call fcn.004031b4
push 2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x68], edx
call fcn.004031b4
pop ecx
pop ecx
mov ecx, dword [esp + 0x3c]
sar ecx, 2
mov dword [esp + 0x60], edx
test ecx, ecx
je 0x401f33
lea edx, [esp + 0x18]
push edx
push ecx
push ebp
push ebx
push esi
push eax
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
neg eax
sbb ebx, ebx
mov eax, dword [esp + 0x18]
inc ebx
mov dword [esp + 0x10], ebx
jmp 0x401f71
push ebx
push esi
push eax
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x401f6d
call fcn.004031f0
push 0x12
mov esi, eax
call fcn.004031f0
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 + 0x20]
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x28], ebp
jl case.0x4015cf.68
jmp 0x401bcf
push ebp
call fcn.004031b4
pop ecx
push eax
mov dword [esp + 0x64], edx
call dword [sym.imp.USER32.dll_IsWindow]
jmp 0x4017dd
push 2
call fcn.004031b4
push 1
mov esi, eax
mov dword [esp + 0x68], edx
call fcn.004031b4
pop ecx
pop ecx
push esi
push eax
mov dword [esp + 0x68], edx
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x401bcf
mov esi, dword [0x470e08]
push ebp
add esi, eax
call fcn.004031b4
pop ecx
push esi
push 0xffffffffffffffeb
push eax
mov dword [esp + 0x6c], edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp case.0x4015cf.68
test dword [esp + 0x34], 0x100
je 0x401ff8
push 2
call fcn.004031b4
pop ecx
mov dword [esp + 0x60], edx
jmp 0x402003
push dword [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esp + 0x34]
mov ebp, eax
mov eax, ecx
mov ebx, ecx
and eax, 4
shr ebx, 0x1e
mov dword [esp + 0x18], eax
mov esi, ecx
mov eax, ecx
and esi, 3
shr eax, 0x1f
and ebx, 1
mov dword [esp + 0x1c], eax
test ecx, 0x10000
je 0x402039
push 0x11
call fcn.004031f0
jmp 0x40203e
movzx eax, word [esp + 0x2c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x98]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x34]
and eax, 0xfef0
push eax
mov eax, dword [esp + 0xa8]
imul eax, ebx
push eax
mov eax, dword [esp + 0xa8]
imul eax, dword [esp + 0x24]
push eax
xor eax, eax
cmp dword [esp + 0x24], eax
push esi
push dword [esp + 0x24]
cmovne eax, dword [0x468d94]
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 0x4020ab
test esi, esi
jne 0x4020ab
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0x28], 0
jl case.0x4015cf.68
push ebx
jmp 0x4016c1
push edx
call dword [sym.imp.USER32.dll_GetDC]
push 2
mov edi, eax
call fcn.004031b4
pop ecx
push 0x48
push 0x5a
push edi
mov esi, eax
mov dword [esp + 0x6c], edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [0x41f0f0], eax
mov eax, dword [esp + 0x20]
push edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 3
call fcn.004031b4
pop ecx
mov ecx, dword [esp + 0x38]
push dword [esp + 0x2c]
mov dword [0x41f100], eax
mov al, cl
and al, 1
mov dword [esp + 0x64], edx
mov byte [0x41f104], al
mov al, cl
and al, 2
mov byte [0x41f107], 1
and cl, 4
mov byte [0x41f105], al
push 0x41f10c
mov byte [0x41f106], cl
call fcn.004063b3
push 0x41f0f0
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov ebp, dword [esp + 0x18]
push eax
push ebp
jmp 0x4016c2
push ebp
call fcn.004031b4
push 1
mov esi, eax
mov dword [esp + 0x68], edx
call fcn.004031b4
pop ecx
pop ecx
push eax
mov dword [esp + 0x64], edx
push esi
cmp dword [esp + 0x3c], ebp
jne 0x402180
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x4015cf.68
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x4015cf.68
push ebp
call fcn.004031f0
push 0x31
mov ebx, eax
call fcn.004031f0
push 0x22
mov esi, eax
call fcn.004031f0
push 0x15
mov edi, eax
call fcn.004031f0
push 0x40f0d0
push 0xffffffffffffffec
call fcn.00406231
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x64], eax
xor eax, eax
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x34]
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], 0x4c90b0
cmovne eax, edi
mov dword [esp + 0x70], eax
lea eax, [esp + 0x5c]
push eax
call fcn.00406f2c
test eax, eax
je 0x401714
test byte [esp + 0x60], 0x40
je case.0x4015cf.68
push dword [esp + 0x94]
call fcn.00406a3d
push dword [esp + 0x94]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x4015cf.68
push ebp
call fcn.004031f0
mov esi, eax
push esi
push 0xffffffffffffffeb
call fcn.00406231
push esi
call fcn.00406bf7
mov ebx, dword [esp + 0x10]
mov esi, eax
test esi, esi
je 0x401714
cmp dword [esp + 0x30], ebp
je 0x40227d
push esi
call fcn.00406a3d
cmp dword [esp + 0x2c], ebp
jl 0x402271
push eax
push dword [esp + 0x18]
call fcn.00406b40
jmp 0x40227d
xor ecx, ecx
inc ecx
test eax, eax
cmovne ebx, ecx
mov dword [esp + 0x10], ebx
push esi
jmp 0x402224
push 2
call fcn.004031f0
push eax
call fcn.00406afa
mov ebx, eax
test ebx, ebx
je 0x4022a4
push dword [ebx + 0x14]
push esi
call fcn.00406b40
push dword [ebx + 0x18]
jmp 0x4016c1
xor eax, eax
mov word [edi], ax
mov word [esi], ax
jmp 0x401714
push 0xffffffffffffffee
call fcn.004031f0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x4c], eax
push ecx
push eax
push 0xa
call fcn.00406e1b
call eax
xor ecx, ecx
mov dword [esp + 0x1c], eax
xor ebx, ebx
mov word [edi], cx
inc ebx
mov word [esi], cx
test eax, eax
je 0x40304d
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x40304d
push 0xb
call fcn.00406e1b
push 0xc
mov esi, eax
call fcn.00406e1b
push dword [esp + 0x18]
mov dword [esp + 0x24], eax
push dword [esp + 0x20]
push ebp
push dword [esp + 0x58]
call esi
test eax, eax
je 0x402365
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x58]
push eax
push 0x4092c8
push dword [esp + 0x24]
call dword [esp + 0x30]
test eax, eax
je 0x402365
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x34]
push dword [ecx + eax*4 + 8]
push edi
call fcn.00406b40
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x54]
push dword [eax + ecx*4 + 0xc]
push dword [esp + 0x18]
call fcn.00406b40
mov ebx, ebp
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40304d
xor esi, esi
inc esi
mov ebx, esi
cmp dword [0x470e24], ebp
jl 0x402450
push 0xfffffffffffffff0
call fcn.004031f0
mov edi, eax
push esi
mov dword [esp + 0x20], edi
call fcn.004031f0
mov dword [esp + 0x14], eax
cmp dword [esp + 0x38], ebp
je 0x4023b3
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
jne 0x4023c7
mov edi, dword [esp + 0x1c]
push 8
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x402447
push dword [esp + 0x14]
push edi
call fcn.00406779
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x402418
mov ebx, ebp
cmp dword [esp + 0x30], ebx
je 0x4023f8
push dword [esp + 0x30]
call fcn.004032d3
call dword [esp + 0x1c]
test eax, eax
je 0x402423
mov ebx, esi
jmp 0x402423
mov eax, dword [esp + 0x20]
push section..data
push 0x40b0c0
push section..ndata
push 0x2004
push eax
call ecx
add esp, 0x14
jmp 0x402423
push dword [esp + 0x14]
push 0xfffffffffffffff7
call fcn.00406231
cmp dword [esp + 0x34], ebp
jne 0x40304d
push edi
call fcn.00404221
test eax, eax
je 0x40304d
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40304d
push 0x40f0d0
push 0xfffffffffffffff6
jmp 0x402457
push 0x40f0d0
push 0xffffffffffffffe7
call fcn.00406231
jmp 0x40304d
push 0xfffffffffffffff0
call fcn.004031f0
push 0xffffffffffffffdf
mov dword [esp + 0x60], eax
call fcn.004031f0
mov ebx, eax
push 2
mov dword [esp + 0x20], ebx
call fcn.004031f0
push 0xffffffffffffffcd
mov dword [esp + 0x54], eax
call fcn.004031f0
push 0x45
mov dword [esp + 0x50], eax
call fcn.004031f0
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x38]
mov ecx, eax
and ecx, 0xfff
mov edi, eax
mov dword [esp + 0x20], ecx
mov ecx, eax
sar eax, 0x10
and ecx, 0x8000
and eax, 0xffff
sar edi, 0xc
push ebx
mov dword [esp + 0x1c], ecx
and edi, 7
mov dword [esp + 0x58], eax
call fcn.00407321
test eax, eax
jne 0x4024de
push 0x21
call fcn.004031f0
lea eax, [esp + 0x48]
xor ebx, ebx
push eax
push 0x4099fc
inc ebx
push ebx
push ebp
push 0x409a1c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4025cf
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x14]
push edx
push 0x409a0c
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
test esi, esi
js 0x4025b5
mov eax, dword [esp + 0x48]
push dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov esi, eax
cmp dword [esp + 0x18], ebp
jne 0x402542
mov eax, dword [esp + 0x48]
push 0x4c90b0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test edi, edi
je 0x402551
mov eax, dword [esp + 0x48]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x48]
push dword [esp + 0x54]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [esp + 0x4c]
cmp word [edx], bp
je 0x402577
mov eax, dword [esp + 0x48]
push dword [esp + 0x20]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [esp + 0x48]
push dword [esp + 0x50]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esp + 0x48]
push dword [esp + 0x98]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test esi, esi
js 0x4025ab
mov eax, dword [esp + 0x14]
push ebx
push dword [esp + 0x60]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x48]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
js 0x4025cf
push 0x40f0d0
push 0xfffffffffffffff4
jmp 0x401616
push 0x40f0d0
push 0xfffffffffffffff0
jmp 0x402457
push ebp
call fcn.004031f0
push 0x11
mov esi, eax
call fcn.004031f0
push 0x23
mov edi, eax
call fcn.004031f0
push esi
mov ebx, eax
call fcn.00406afa
test eax, eax
jne 0x40260c
push ebp
push 0xfffffffffffffff9
call fcn.00406231
jmp 0x401714
mov eax, dword [esp + 0x20]
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 + 0x38]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], edi
mov dword [esp + 0x7e], ebx
mov word [esp + 0x74], ax
call fcn.00406231
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je case.0x4015cf.68
jmp 0x4025ff
cmp ecx, 0xbadf00d
jne 0x401e32
inc dword [0x470e94]
jmp case.0x4015cf.68
mov esi, ebp
mov edi, ebp
test ecx, ecx
je 0x402693
push ebp
call fcn.004031f0
mov ebp, eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4026a0
push 0x11
call fcn.004031f0
mov esi, eax
cmp dword [esp + 0x38], edi
je 0x4026af
push 0x22
call fcn.004031f0
mov edi, eax
push 0xffffffffffffffcd
call fcn.004031f0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x40170c
xor ebx, ebx
mov dword [esp + 0x5c], 0xa
inc ebx
push ebx
call fcn.004031f0
push 0x12
mov edi, eax
call fcn.004031f0
push 0xffffffffffffffdd
mov esi, eax
call fcn.004031f0
mov ebp, dword [esp + 0x18]
push eax
push 0x2003
push ebp
lea eax, [esp + 0x68]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xa
pop eax
cmp word [ebp], ax
jne case.0x4015cf.68
xor eax, eax
mov word [ebp], ax
jmp 0x40304d
cmp dword [esp + 0x38], ebp
jne 0x402749
push 2
call fcn.00403276
mov esi, eax
test esi, esi
je 0x401714
push 0x33
call fcn.004031f0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402764
push 0x22
call fcn.004031f0
mov ecx, dword [esp + 0x38]
sar ecx, 1
push ecx
mov ecx, dword [esp + 0x58]
push eax
push ecx
call fcn.00403231
mov edi, eax
test edi, edi
je case.0x4015cf.68
jmp 0x401714
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
push 2
mov dword [esp + 0x20], eax
call fcn.004031f0
push 0x11
mov dword [esp + 0x18], eax
call fcn.004031f0
lea ecx, [esp + 0x98]
xor esi, esi
push ecx
push 0x100022
push eax
push dword [esp + 0x68]
inc esi
mov ebx, esi
call fcn.004031d5
push eax
call fcn.004067b7
mov ecx, dword [esp + 0x98]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [esp + 0x5c], ecx
test ecx, ecx
je 0x40304d
mov ecx, dword [esp + 0x18]
mov eax, ebp
mov edi, 0x4130d8
cmp ecx, esi
jne 0x4027f6
push 0x23
call fcn.004031f0
push edi
call sub.KERNEL32.dll_lstrlenW
mov ecx, dword [esp + 0x18]
lea eax, [eax*2 + 2]
cmp ecx, 4
jne 0x402813
push 3
call fcn.004031b4
pop ecx
mov ecx, dword [esp + 0x18]
push 4
mov dword [0x4130d8], eax
mov dword [esp + 0x5c], edx
pop eax
cmp ecx, 3
jne 0x40283c
push dword [esp + 0x44]
push 0xc018
push edi
push ebp
push dword [esp + 0x48]
push dword [esp + 0x48]
cmp dword [0x470db0], ebp
je 0x402836
push esi
jmp 0x402837
push ebp
call fcn.004033a1
mov esi, dword [esp + 0x5c]
push eax
push edi
push dword [esp + 0x24]
push ebp
push dword [esp + 0x24]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
and ebx, eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40304d
push 0x20019
call fcn.00403276
push 0x33
mov esi, eax
call fcn.004031f0
xor ecx, ecx
mov word [edi], cx
test esi, esi
je 0x401714
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], 0x4008
push ecx
push edi
lea ecx, [esp + 0x20]
push ecx
push ebp
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ebx, ebx
inc ebx
test eax, eax
jne 0x4028e0
cmp dword [esp + 0x18], 4
je 0x4028ca
cmp dword [esp + 0x18], ebx
je 0x4028bb
cmp dword [esp + 0x18], 2
jne 0x4028e0
mov ebx, dword [esp + 0x38]
xor eax, eax
mov word [edi + 0x4006], ax
jmp 0x402858
push dword [edi]
xor ebx, ebx
cmp dword [esp + 0x3c], ebx
push edi
sete bl
call fcn.00406b40
jmp 0x402858
xor eax, eax
mov word [edi], ax
jmp 0x402858
push 0x20019
call fcn.00403276
push 3
mov esi, eax
call fcn.004031b4
mov ebx, dword [esp + 0x14]
pop ecx
xor ecx, ecx
mov dword [esp + 0x60], edx
mov word [edi], cx
test esi, esi
je 0x401714
mov ecx, 0x2003
mov dword [esp + 0x5c], ecx
cmp dword [esp + 0x38], ebp
je 0x40292e
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x40294c
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 + 0x4006], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x4015cf.68
push edi
call fcn.00407150
test eax, eax
je case.0x4015cf.68
push eax
jmp 0x402224
push 0xffffffffffffffed
call fcn.004031f0
push dword [esp + 0x30]
push dword [esp + 0x30]
push eax
call fcn.00406e50
cmp eax, 0xffffffff
jne 0x401bcf
xor eax, eax
mov word [edi], ax
jmp 0x401714
mov ecx, dword [esp + 0x24]
xor eax, eax
mov edx, dword [esp + 0x30]
cmp ecx, 0x3a
mov dword [esp + 0x5c], edx
mov esi, 0x40f0d0
sete al
xor ebx, ebx
inc ebx
mov dword [esp + 0x14], eax
test edx, edx
je 0x4029e1
push ebx
call fcn.004031b4
mov word [0x40f0d0], ax
xor eax, eax
cmp dword [esp + 0x18], eax
pop ecx
sete al
mov dword [esp + 0x9c], edx
inc eax
jmp 0x402a18
cmp ecx, 0x3a
jne 0x402a09
push 0x21
call fcn.004031f0
push 0x2004
push esi
push 0x4130d8
call fcn.00406992
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x402a18
push 0x11
call fcn.004031f0
push eax
call sub.KERNEL32.dll_lstrlenW
add eax, eax
mov dword [esp + 0x18], eax
cmp word [edi], bp
je 0x40304d
push edi
call fcn.00407150
mov edi, eax
mov eax, dword [esp + 0x14]
or eax, dword [esp + 0x5c]
jne 0x402a4c
cmp dword [esp + 0x34], ebp
je 0x402a4c
push edi
push edi
call fcn.004069ad
test eax, eax
js 0x40304d
push dword [esp + 0x18]
push esi
push edi
call fcn.00406f44
test eax, eax
jmp 0x401a1b
push 2
pop ecx
push ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ecx
call fcn.004031b4
xor ebx, ebx
mov dword [esp + 0x64], edx
inc ebx
pop ecx
cmp eax, ebx
jl case.0x4015cf.68
mov ecx, 0x2003
cmp eax, ecx
cmovg eax, ecx
mov dword [esp + 0x1c], eax
cmp word [edi], bp
je 0x402be9
push edi
mov dword [esp + 0x58], ebp
call fcn.00407150
mov ecx, eax
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x1c], ebp
jle 0x402be9
mov dword [esp + 0x98], 0xd
mov edi, ebp
cmp dword [esp + 0x24], 0x3b
jne 0x402b7a
push ebp
lea eax, [esp + 0x50]
push eax
push 2
pop eax
sub eax, dword [esp + 0x3c]
push eax
lea eax, [esp + 0x54]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402be9
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x402be9
movzx eax, byte [esp + 0x48]
mov dword [esp + 0x50], eax
cmp dword [esp + 0x34], ebp
jne 0x402c2a
push ebx
lea eax, [esp + 0x54]
push eax
push ecx
lea eax, [esp + 0x54]
push eax
push 8
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x402ba4
mov ecx, dword [esp + 0x20]
mov edx, ecx
neg edx
dec dword [esp + 0x4c]
mov eax, 0xfffd
mov dword [esp + 0x50], eax
je 0x402bac
push ebx
dec ecx
inc edx
push ebp
push edx
push dword [esp + 0x24]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x6c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x54]
lea eax, [esp + 0x54]
push eax
push 8
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x5c]
test eax, eax
je 0x402b2e
jmp 0x402ba4
cmp dword [esp + 0x34], ebp
jne 0x402b93
test edi, edi
jne 0x402b93
push ebp
push ecx
call fcn.004069ad
test eax, eax
js 0x402be9
mov ecx, dword [esp + 0x18]
push 2
lea eax, [esp + 0x54]
push eax
push ecx
call fcn.00406e7d
test eax, eax
je 0x402be9
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x34], ebp
jne 0x402c2a
push 0xd
pop edx
cmp word [esp + 0x54], dx
push 0xa
pop edx
je 0x402bf8
cmp word [esp + 0x54], dx
je 0x402bf8
mov word [esi + edi*2], ax
inc edi
movzx ecx, ax
mov dword [esp + 0x14], edi
mov dword [esp + 0x54], ecx
test ax, ax
je 0x402be9
mov ecx, dword [esp + 0x18]
cmp edi, dword [esp + 0x1c]
jl 0x402abd
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x402a57
cmp word [esp + 0x54], ax
je 0x402c19
cmp ax, word [esp + 0x98]
je 0x402c0e
cmp ax, dx
jne 0x402c19
mov word [esi + edi*2], ax
inc edi
mov dword [esp + 0x14], edi
jmp 0x402be9
push ebx
push ebp
neg ecx
push ecx
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x402be9
movzx eax, ax
push eax
push esi
call fcn.00406b40
jmp 0x403053
cmp word [edi], bp
je case.0x4015cf.68
push 2
call fcn.004031b4
pop ecx
push dword [esp + 0x34]
mov dword [esp + 0x64], edx
push ebp
push eax
push edi
call fcn.00407150
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x2c], ebp
jl case.0x4015cf.68
push eax
push esi
jmp 0x4016c2
push edi
call fcn.00407150
test eax, eax
je case.0x4015cf.68
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x4015cf.68
push esi
call fcn.00407150
test eax, eax
je 0x4018d8
lea ecx, [esp + 0xa8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4018d8
lea eax, [esp + 0xd4]
push eax
push edi
jmp 0x401e28
push 2
call fcn.004031f0
lea ecx, [esp + 0xa8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x402ce4
xor eax, eax
mov word [esi], ax
jmp 0x402993
push eax
push esi
call fcn.00406b40
jmp 0x402cb1
push 0xfffffffffffffff0
mov dword [esp + 0x18], 0xfffffd66
or esi, 0xffffffff
call fcn.004031f0
mov ebx, eax
push ebx
mov dword [esp + 0x50], ebx
call fcn.00407321
test eax, eax
jne 0x402d16
push 0xffffffffffffffec
call fcn.004031f0
push ebx
call fcn.004070c8
push 2
push 0x40000000
push ebx
call fcn.00406e50
xor ebx, ebx
mov edi, eax
inc ebx
mov dword [esp + 0x98], edi
cmp edi, esi
je 0x402e47
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], eax
mov dword [esp + 0x54], ecx
cmp dword [esp + 0x34], ebp
je 0x402e20
mov eax, dword [0x470dbc]
push eax
push 0x40
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x402e18
push ebp
call fcn.0040338a
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.004032fa
push dword [esp + 0x34]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [esp + 0x5c], edi
test edi, edi
je 0x402df3
push dword [esp + 0x3c]
push dword [esp + 0x38]
push edi
push ebp
push dword [esp + 0x64]
push dword [esp + 0x28]
cmp dword [0x470db0], ebp
je 0x402dbb
push ebx
jmp 0x402dbc
push ebp
call fcn.004033a1
cmp byte [edi], 0
je 0x402de9
mov ebx, dword [esp + 0x18]
mov esi, dword [edi]
mov eax, dword [edi + 4]
add edi, 8
push esi
push edi
add eax, ebx
push eax
call fcn.00406bd7
add edi, esi
cmp byte [edi], 0
jne 0x402dca
xor ebx, ebx
inc ebx
or esi, 0xffffffff
push dword [esp + 0x5c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
mov edi, dword [esp + 0x9c]
push dword [esp + 0x1c]
push edi
call fcn.00406f44
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
mov ecx, esi
jmp 0x402e20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x54]
push dword [esp + 0x40]
push ebp
push ebp
push edi
push ecx
push eax
cmp dword [0x470db0], ebp
je 0x402e34
push ebx
jmp 0x402e35
push ebp
call fcn.004033a1
push edi
mov esi, edx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffff3
pop edi
cmp esi, ebp
jg 0x402e65
jl 0x402e56
cmp dword [esp + 0x14], ebp
jae 0x402e65
push 0xffffffffffffffef
pop edi
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x402e69
mov ebx, dword [esp + 0x10]
push edi
call fcn.004032d3
jmp 0x40304d
push ebp
call fcn.004031b4
mov ebx, eax
mov dword [esp + 0x64], edx
pop ecx
cmp ebx, dword [0x470dec]
jae 0x401714
mov ecx, dword [esp + 0x30]
imul edi, ebx, 0x4020
add edi, dword [0x470de8]
test ecx, ecx
js 0x402eb4
mov eax, dword [edi + ecx*4]
jne 0x402c6b
lea eax, [edi + 0x18]
push eax
push esi
jmp 0x401e28
or eax, 0xffffffff
sub eax, ecx
mov dword [esp + 0x30], eax
je 0x402ed3
push 1
call fcn.004031b4
pop ecx
mov ecx, eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x2c], ecx
jmp 0x402eeb
push dword [esp + 0x38]
lea eax, [edi + 0x18]
push eax
call fcn.004063b3
or dword [edi + 8], 0x100
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov dword [edi + eax*4], ecx
cmp dword [esp + 0x34], ebp
je case.0x4015cf.68
push ebx
call fcn.0040122b
jmp case.0x4015cf.68
push ebp
call fcn.004031b4
mov edi, eax
mov dword [esp + 0x64], edx
pop ecx
cmp edi, 0x20
jae 0x401714
cmp dword [esp + 0x34], ebp
je 0x402f46
cmp dword [esp + 0x30], ebp
je 0x402f3b
push edi
call fcn.0040129a
push ebp
push ebp
call fcn.004012e7
jmp case.0x4015cf.68
push ebp
call fcn.004011a0
jmp 0x402c6b
mov eax, dword [0x470dc4]
cmp dword [esp + 0x30], ebp
je 0x402f61
mov ecx, dword [esp + 0x2c]
mov dword [eax + edi*4 + 0x94], ecx
jmp case.0x4015cf.68
push dword [eax + edi*4 + 0x94]
push esi
call fcn.004063b3
jmp case.0x4015cf.68
mov eax, dword [esp + 0x34]
sub eax, ebp
je 0x402fcb
dec eax
jne case.0x4015cf.68
push 2
call fcn.004031b4
push 4
mov esi, eax
mov dword [esp + 0x68], edx
call fcn.004031b4
pop ecx
pop ecx
mov dword [esp + 0x60], edx
mov ecx, 0x470e80
movzx edx, al
shr eax, 0x18
test esi, esi
push edx
cmovne ecx, esi
mov dword [esp + 0x20], ebp
add eax, ecx
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00406bd7
push dword [esp + 0x1c]
push dword [esp + 0x18]
jmp 0x4016c2
push 5
call fcn.00406e1b
push 0x22
mov edi, eax
call fcn.004031f0
test edi, edi
je 0x40301a
lea ecx, [esp + 0x5c]
push ecx
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
test eax, eax
js 0x40301a
lea eax, [esp + 0x1c]
push eax
push ebp
push dword [esp + 0x3c]
lea eax, [esp + 0x68]
push eax
call edi
test eax, eax
js 0x40301a
push dword [esp + 0x1c]
push esi
call fcn.00407059
push dword [esp + 0x1c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp case.0x4015cf.68
xor ebx, ebx
inc ebx
xor eax, eax
mov word [esi], ax
jmp 0x40304d
mov eax, dword [0x437200]
push ebp
and eax, ecx
push eax
push 0xb
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esp + 0x28], ebp
je case.0x4015cf.68
mov eax, dword [esp + 0x20]
push ebp
push ebp
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ebx, dword [esp + 0x10]
add dword [0x470e88], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2e8
ret 4