Function at 0x401592
Capabilities:
Copy file
Create process on windows
Create shortcut via ishelllink
Delete file
Delete registry value
Enumerate files on windows
Enumerate files recursively
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
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2ec
mov eax, dword [0x40b688]
add eax, 0xb000
mov dword [ebp - 0x294], eax
jmp 0x4032f8
imul eax, dword [ebp + 8], 0x1c
add eax, dword [0x435a88]
cmp dword [eax], 1
je 0x403302
mov edx, dword [0x435b08]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x2a8], edx
push edx
push 0x1c
push eax
push ecx
call fcn.00408b14
mov esi, dword [ebp - 0x30]
mov edi, dword [0x40b688]
mov eax, esi
mov ecx, dword [ebp - 0x2c]
shl eax, 0xb
mov edx, dword [ebp - 0x34]
add edi, eax
mov eax, ecx
shl eax, 0xb
add esp, 0x10
add eax, dword [0x40b688]
mov dword [ebp - 0x290], eax
lea eax, [ebp - 0x30]
mov dword [0x40f870], eax
lea eax, [edx - 2]
cmp eax, 0x43
ja case.0x40161d.65
jmp dword [eax*4 + 0x40b008]
push eax
push eax
push 0
push esi
jmp 0x401b41
inc dword [0x436b28]
cmp dword [ebp - 0x2a8], 0
je 0x403306
sub esp, 0xc
push 0
call sub.USER32.dll_PostQuitMessage
mov eax, 0x7fffffff
add esp, 0xc
jmp 0x403311
sub esp, 0xc
push esi
call fcn.00401453
sub esp, 0xc
dec eax
push 0
push eax
call fcn.00401592
mov esi, eax
add esp, 0x18
jmp case.0x40161d.2
push edi
push edi
push 0
push esi
call fcn.004042ef
jmp 0x401c33
xor eax, eax
call fcn.00401434
sub esp, 0xc
test eax, eax
jg 0x401699
mov eax, 1
push eax
call sub.KERNEL32.DLL_Sleep
jmp 0x401f53
sub esp, 0xc
push dword [ebp - 0x2a8]
call sub.USER32.dll_SetForegroundWindow
jmp 0x401f53
cmp dword [ebp - 0x28], 0
jne 0x4016e4
mov eax, dword [esi*4 + 0x435a08]
mov ebx, dword [ebp - 0x30]
mov dword [esi*4 + 0x4359c8], eax
mov eax, 1
call fcn.00401434
mov dword [ebx*4 + 0x435a08], eax
jmp case.0x40161d.65
mov eax, dword [esi*4 + 0x4359c8]
mov dword [esi*4 + 0x435a08], eax
jmp case.0x40161d.65
mov ecx, dword [ebp - 0x28]
shl ecx, 2
mov edx, dword [ecx + 0x435a08]
cmp edx, 1
sbb eax, eax
and edx, dword [ebp - 0x24]
and eax, 4
mov dword [ecx + 0x435a08], edx
mov esi, dword [ebp + eax - 0x30]
jmp case.0x40161d.2
push ebx
push ebx
push dword [ecx*4 + 0x435a08]
jmp 0x402ba9
mov eax, dword [0x436b38]
test eax, eax
je 0x40173f
push edx
push edx
push ecx
push eax
call sub.USER32.dll_ShowWindow
pop edi
pop eax
mov eax, dword [0x436b48]
test eax, eax
je case.0x40161d.65
push esi
push esi
push dword [ebp - 0x30]
push eax
jmp 0x402232
mov eax, 0xfffffff0
call fcn.004013e8
push ebx
push ebx
push dword [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_SetFileAttributesW
jmp 0x4019c1
mov eax, 0xfffffff0
call fcn.004013e8
sub esp, 0xc
mov edi, eax
push eax
call fcn.0040691a
mov dword [ebp - 0x2ac], 0
add esp, 0xc
test eax, eax
je 0x401811
push ecx
push ecx
push 0x5c
push eax
call fcn.004068eb
mov ebx, eax
mov si, word [eax]
mov word [eax], 0
test si, si
pop eax
pop edx
jne 0x4017cc
cmp dword [ebp - 0x28], 0
je 0x4017cc
call fcn.00406895
test eax, eax
je 0x4017cc
sub esp, 0xc
push edi
call fcn.0040775f
jmp 0x4017d5
sub esp, 0xc
push edi
call fcn.0040773a
add esp, 0xc
test eax, eax
je 0x401804
cmp eax, 0xb7
je 0x4017eb
inc dword [ebp - 0x2ac]
jmp 0x401804
sub esp, 0xc
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
and eax, 0x10
add esp, 0xc
cmp eax, 1
adc dword [ebp - 0x2ac], 0
test si, si
mov word [ebx], si
je 0x401811
lea eax, [ebx + 2]
jmp 0x401797
cmp dword [ebp - 0x2c], 0
je 0x40184f
sub esp, 0xc
push 0xffffffffffffffe6
call fcn.004013cf
sub esp, 0xc
push edi
push dword [ebp - 0x294]
call fcn.00406aea
add esp, 0xc
push edi
call sub.KERNEL32.DLL_SetCurrentDirectoryW
add esp, 0xc
test eax, eax
jne 0x403285
inc dword [ebp - 0x2ac]
jmp 0x403285
sub esp, 0xc
push 0xfffffffffffffff5
jmp 0x403103
xor eax, eax
call fcn.004013e8
sub esp, 0xc
push eax
call fcn.004068b8
jmp 0x4020a7
mov eax, 0xffffffd0
call fcn.004013e8
mov ebx, eax
mov eax, 0xffffffdf
call fcn.004013e8
mov esi, eax
mov eax, 0x13
call fcn.004013e8
push edi
push edi
push esi
push ebx
call sub.KERNEL32.DLL_MoveFileW
pop edx
test eax, eax
pop ecx
je 0x4018a9
sub esp, 0xc
push 0xffffffffffffffe3
jmp 0x40275a
cmp dword [ebp - 0x28], 0
je 0x40327b
sub esp, 0xc
push ebx
call fcn.004068b8
add esp, 0xc
test eax, eax
je 0x40327b
push edi
push edi
push esi
push ebx
call fcn.0040733a
push ebx
push 0xffffffffffffffe4
jmp 0x40275a
xor eax, eax
call fcn.004013e8
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x290]
push 0x400
push ebx
call sub.KERNEL32.DLL_GetFullPathNameW
test eax, eax
jne 0x401907
mov edx, dword [ebp - 0x290]
mov word [edx], 0
jmp 0x40194b
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jbe 0x401957
cmp word [eax], 0
je 0x401957
sub esp, 0xc
push ebx
call fcn.004068b8
add esp, 0xc
test eax, eax
je 0x401940
add eax, 0x2c
push ecx
push ecx
push eax
push dword [ebp - 0x10]
call fcn.00406aea
mov dword [ebp - 0x2ac], 0
pop eax
pop edx
jmp 0x401961
mov ecx, dword [ebp - 0x290]
mov word [ecx], 0
mov dword [ebp - 0x2ac], 1
jmp 0x401961
mov dword [ebp - 0x2ac], 0
cmp dword [ebp - 0x28], 0
jne 0x403285
push edi
push 0x400
push dword [ebp - 0x290]
push dword [ebp - 0x290]
call sub.KERNEL32.DLL_GetShortPathNameW
jmp 0x40326c
or eax, 0xffffffff
call fcn.004013e8
lea edx, [ebp - 0x10]
push esi
push esi
push edx
push edi
push 0x400
push 0
push eax
push 0
call sub.KERNEL32.DLL_SearchPathW
pop ecx
test eax, eax
pop ebx
jmp 0x4028f1
mov eax, 0xffffffef
call fcn.004013e8
push edx
push edx
push eax
push edi
call fcn.00406f75
pop ebx
pop esi
jmp 0x402c8b
mov eax, 0x31
call fcn.004013e8
sub esp, 0xc
mov edi, eax
mov ebx, dword [ebp - 0x30]
push eax
call fcn.00406624
add esp, 0xc
test eax, eax
je 0x4019f8
push ecx
push ecx
push edi
push 0x40d070
call fcn.00406aea
pop eax
pop edx
jmp 0x401a1e
push eax
push eax
push dword [ebp - 0x294]
push 0x40d070
call fcn.00406aea
push esi
push eax
call fcn.00406aac
sub esp, 0xc
push edi
push eax
call fcn.00406a60
add esp, 0x18
sub esp, 0xc
mov esi, ebx
and esi, 7
push 0x40d070
call fcn.00406995
add esp, 0xc
cmp esi, 2
jle 0x401a73
sub esp, 0xc
push 0x40d070
call fcn.004068b8
xor ecx, ecx
add esp, 0xc
mov edx, eax
test eax, eax
je 0x401a63
lea eax, [ebp - 0x24]
push ecx
push ecx
push eax
lea eax, [edx + 0x14]
push eax
call sub.KERNEL32.DLL_CompareFileTime
mov ecx, eax
pop ebx
pop eax
lea eax, [esi - 3]
or eax, 0x80000000
test ecx, eax
sete al
movzx esi, al
test esi, esi
jne 0x401a89
sub esp, 0xc
push 0x40d070
call fcn.004070d8
add esp, 0xc
jmp 0x401a93
mov eax, 1
cmp esi, 1
je 0x401a98
mov eax, 2
push edx
push eax
push 0x40000000
push 0x40d070
call fcn.004070a0
mov ebx, eax
pop eax
cmp ebx, 0xffffffff
jne 0x401b4b
test esi, esi
je 0x401acd
push eax
push eax
push edi
push 0xffffffffffffffe2
call fcn.004042ef
cmp esi, 2
pop edi
pop eax
jmp 0x402c8d
push ebx
push ebx
push dword [0x40b688]
push 0x40e070
call fcn.00406aea
push 0x40d070
push dword [0x40b688]
call fcn.00406aea
push dword [ebp - 0x1c]
push 0x40d870
call fcn.00406b8a
push 0x40e070
push dword [0x40b688]
call fcn.00406aea
mov eax, dword [ebp - 0x30]
sar eax, 3
push eax
push 0x40d870
call fcn.00407652
pop edx
cmp eax, 4
pop ecx
je 0x401a77
cmp eax, 5
jne 0x401b38
inc dword [0x435a10]
jmp 0x40330d
push ebx
push ebx
push 0x40d070
push 0xfffffffffffffffa
call fcn.004042ef
jmp 0x402841
push ecx
push ecx
push edi
push 0xffffffffffffffea
call fcn.004042ef
inc dword [0x435a3c]
pop eax
pop edx
push 0
push 0
push ebx
push dword [ebp - 0x28]
call fcn.00403373
dec dword [0x435a3c]
mov esi, eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x401b7e
cmp dword [ebp - 0x20], 0xffffffff
je 0x401b8b
lea eax, [ebp - 0x24]
push eax
push 0
push eax
push ebx
call sub.KERNEL32.DLL_SetFileTime
sub esp, 0xc
push ebx
call sub.KERNEL32.DLL_CloseHandle
add esp, 0xc
test esi, esi
jns case.0x40161d.65
cmp esi, 0xfffffffe
jne 0x401bbf
push eax
push eax
push 0xffffffffffffffe9
push 0x40d070
call fcn.00406b8a
push edi
push 0x40d070
call fcn.00406a60
jmp 0x401bcd
push eax
push eax
push 0xffffffffffffffee
push 0x40d070
call fcn.00406b8a
push 0x200010
push 0x40d070
call fcn.00407652
jmp 0x402841
xor eax, eax
jmp 0x401c23
mov eax, 0x31
call fcn.004013e8
push edi
push edi
push dword [ebp - 0x30]
push eax
call fcn.00407652
pop ebx
test eax, eax
pop esi
je 0x40327b
cmp eax, dword [ebp - 0x28]
je 0x401de0
cmp eax, dword [ebp - 0x20]
jne case.0x40161d.65
mov esi, dword [ebp - 0x1c]
jmp case.0x40161d.2
mov eax, 0xfffffff0
call fcn.004013e8
push ecx
push ecx
push dword [ebp - 0x2c]
push eax
call fcn.004073d8
mov dword [ebp - 0x2ac], 0
pop eax
pop edx
jmp 0x403285
mov eax, 1
call fcn.004013e8
sub esp, 0xc
push eax
call fcn.00406a69
jmp 0x40220b
mov eax, 2
call fcn.00401434
mov ebx, eax
mov eax, 3
call fcn.00401434
mov esi, eax
mov eax, 1
call fcn.004013e8
test ebx, ebx
mov dword [ebp - 0x2b0], eax
mov word [edi], 0
setne byte [ebp - 0x295]
cmp dword [ebp - 0x28], 0
je 0x401ca5
cmp byte [ebp - 0x295], 0
je case.0x40161d.65
sub esp, 0xc
push dword [ebp - 0x2b0]
call fcn.00406a69
add esp, 0xc
mov edx, eax
test esi, esi
jns 0x401cc4
add esi, eax
js case.0x40161d.65
cmp esi, edx
push eax
push eax
mov eax, esi
jle 0x401cce
mov eax, edx
mov edx, dword [ebp - 0x2b0]
lea eax, [edx + eax*2]
push eax
push edi
call fcn.00406aea
cmp byte [ebp - 0x295], 0
pop ecx
pop esi
je case.0x40161d.65
test ebx, ebx
jns 0x401d05
sub esp, 0xc
push edi
call fcn.00406a69
add esp, 0xc
add ebx, eax
jns 0x401d05
xor ebx, ebx
jmp 0x401d11
cmp ebx, 0x3ff
jg case.0x40161d.65
mov word [edi + ebx*2], 0
jmp case.0x40161d.65
mov eax, 0x20
call fcn.004013e8
mov ebx, eax
mov eax, 0x31
call fcn.004013e8
cmp dword [ebp - 0x20], 0
jne 0x401d43
push edx
push edx
push eax
push ebx
call sub.KERNEL32.DLL_lstrcmpiW
jmp 0x401d4c
push edi
push edi
push eax
push ebx
call sub.KERNEL32.DLL_lstrcmpW
pop ebx
test eax, eax
pop esi
je 0x4020b6
jmp 0x401de0
mov eax, 1
call fcn.004013e8
mov ebx, eax
push ecx
push 0x400
push edi
push eax
call sub.KERNEL32.DLL_ExpandEnvironmentStringsW
pop edx
test eax, eax
je 0x401d8e
cmp dword [ebp - 0x28], 0
je 0x401d9f
push eax
push eax
push edi
push ebx
call sub.KERNEL32.DLL_lstrcmpW
pop ebx
test eax, eax
pop esi
jne 0x401d9f
mov word [edi], 0
mov dword [ebp - 0x2ac], 1
jmp 0x401da9
mov dword [ebp - 0x2ac], 0
mov word [edi + 0x7fe], 0
jmp 0x403285
xor eax, eax
call fcn.00401434
mov ebx, eax
mov eax, 1
call fcn.00401434
cmp dword [ebp - 0x1c], 0
jne 0x401ddc
cmp ebx, eax
jl 0x401de0
jle 0x4020b6
jmp 0x401dee
cmp ebx, eax
jae 0x401de8
mov esi, dword [ebp - 0x24]
jmp case.0x40161d.2
jbe 0x4020b6
mov esi, dword [ebp - 0x20]
jmp case.0x40161d.2
mov eax, 1
call fcn.00401434
mov ebx, eax
mov eax, 2
call fcn.00401434
mov dword [ebp - 0x2ac], 0
mov ecx, eax
cmp dword [ebp - 0x24], 0xc
ja case.default.0x401e21
mov eax, dword [ebp - 0x24]
jmp dword [eax*4 + 0x40b118]
add ebx, ecx
jmp 0x401e7e
sub ebx, ecx
jmp 0x401e7e
imul ebx, ecx
jmp 0x401e7e
test ecx, ecx
je 0x401e8e
mov eax, ebx
cdq
idiv ecx
mov ebx, eax
jmp 0x401e7e
or ebx, ecx
jmp 0x401e7e
and ebx, ecx
jmp 0x401e7e
xor ebx, ecx
jmp 0x401e7e
test ebx, ebx
sete al
jmp 0x401e5a
or ecx, ebx
setne al
movzx ebx, al
jmp 0x401e7e
test ebx, ebx
setne dl
xor ebx, ebx
test ecx, ecx
setne bl
and ebx, edx
jmp 0x401e7e
test ecx, ecx
je 0x401e8e
mov eax, ebx
cdq
idiv ecx
mov ebx, edx
jmp 0x401e7e
shl ebx, cl
mov dword [ebp - 0x2ac], 0
jmp case.default.0x401e21
sar ebx, cl
jmp 0x401e7e
mov dword [ebp - 0x2ac], 1
xor ebx, ebx
push ecx
push ecx
push ebx
jmp 0x40208c
mov eax, 1
call fcn.004013e8
mov ebx, eax
mov eax, 2
call fcn.00401434
push edx
push eax
push ebx
push edi
call sub.USER32.dll_wsprintfW
add esp, 0x10
mov dword [ebp - 0x2ac], 0
jmp 0x403285
mov eax, dword [ebp - 0x28]
mov ebx, dword [0x40d060]
test eax, eax
jne 0x401ee4
jmp 0x401f2d
mov ebx, dword [ebx]
dec eax
cmp eax, 0xffffffff
je 0x401ef3
test ebx, ebx
jne 0x401ee2
jmp 0x40282b
test ebx, ebx
je 0x40282b
add ebx, 4
push esi
push esi
push ebx
push 0x40d070
call fcn.00406aea
mov eax, dword [0x40d060]
add eax, 4
push eax
push ebx
call fcn.00406aea
mov eax, dword [0x40d060]
add eax, 4
push 0x40d070
push eax
jmp 0x402f7f
test ecx, ecx
je 0x401f65
test ebx, ebx
je 0x40327b
lea eax, [ebx + 4]
push ecx
push ecx
push eax
push edi
call fcn.00406aea
mov eax, dword [ebx]
mov dword [0x40d060], eax
push edx
push ebx
call sub.KERNEL32.DLL_GlobalFree
mov dword [ebp - 0x2ac], 0
add esp, 0xc
jmp 0x403285
push eax
push eax
push 0x804
push pe_nt_image_headers32
call sub.KERNEL32.DLL_GlobalAlloc
push dword [ebp - 0x30]
mov ebx, eax
lea eax, [eax + 4]
push eax
call fcn.00406b8a
mov eax, dword [0x40d060]
mov dword [ebx], eax
mov dword [0x40d060], ebx
jmp 0x401c33
mov eax, 3
call fcn.00401434
mov dword [ebp - 0x2b4], eax
mov eax, 4
call fcn.00401434
test byte [ebp - 0x1c], 1
mov esi, eax
je 0x401fc5
mov eax, 0x33
call fcn.004013e8
mov dword [ebp - 0x2b4], eax
test byte [ebp - 0x1c], 2
je 0x401fd7
mov eax, 0x44
call fcn.004013e8
mov esi, eax
cmp dword [ebp - 0x34], 0x21
jne 0x402038
mov eax, 1
call fcn.00401434
mov ebx, eax
mov eax, 2
call fcn.00401434
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov edx, eax
sar edx, 2
je 0x402028
sub esp, 4
lea eax, [ebp - 0x10]
push eax
push edx
push 0
push esi
push dword [ebp - 0x2b4]
push ecx
push ebx
call sub.USER32.dll_SendMessageTimeoutW
test eax, eax
pop esi
sete al
movzx eax, al
mov dword [ebp - 0x2ac], eax
jmp 0x40207d
push esi
push dword [ebp - 0x2b4]
push ecx
push ebx
call sub.USER32.dll_SendMessageW
jmp 0x402070
mov eax, 1
call fcn.004013e8
mov ebx, eax
mov eax, 0x12
call fcn.004013e8
xor edx, edx
cmp word [eax], 0
je 0x402058
mov edx, eax
xor eax, eax
cmp word [ebx], 0
je 0x402062
mov eax, ebx
push edx
push eax
push esi
push dword [ebp - 0x2b4]
call sub.USER32.dll_FindWindowExW
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x2ac], 0
cmp dword [ebp - 0x30], 0
js 0x403285
push ebx
push ebx
push dword [ebp - 0x10]
push edi
call fcn.004067be
jmp 0x401c3d
xor eax, eax
call fcn.00401434
sub esp, 0xc
push eax
call sub.USER32.dll_IsWindow
add esp, 0xc
test eax, eax
je 0x4020b6
mov esi, dword [ebp - 0x2c]
jmp case.0x40161d.2
mov esi, dword [ebp - 0x28]
jmp case.0x40161d.2
mov eax, 2
call fcn.00401434
mov ebx, eax
mov eax, 1
call fcn.00401434
push ecx
push ecx
push ebx
push eax
call sub.USER32.dll_GetDlgItem
push eax
jmp 0x402398
mov ebx, ecx
xor eax, eax
add ebx, dword [0x435aa0]
call fcn.00401434
push edx
push ebx
push 0xffffffffffffffeb
push eax
call sub.USER32.dll_SetWindowLongW
jmp 0x403262
push eax
push eax
push ecx
push dword [ebp - 0x2a8]
call sub.USER32.dll_GetDlgItem
mov edi, eax
lea eax, [ebp - 0x284]
push eax
push edi
call sub.USER32.dll_GetClientRect
mov ebx, dword [ebp - 0x28]
mov esi, ebx
pop ecx
imul ebx, dword [ebp - 0x27c]
pop eax
xor eax, eax
imul esi, dword [ebp - 0x278]
call fcn.004013e8
push edx
push edx
push 0x10
push esi
push ebx
push 0
push eax
push 0
call sub.USER32.dll_LoadImageW
pop ecx
pop ebx
push eax
push 0
push 0x172
push edi
call sub.USER32.dll_SendMessageW
test eax, eax
je case.0x40161d.65
sub esp, 0xc
push eax
call sub.GDI32.dll_DeleteObject
jmp 0x401f53
sub esp, 0xc
push dword [ebp - 0x2a8]
call sub.USER32.dll_GetDC
sub esp, 0xc
mov esi, eax
push 0x5a
push eax
call sub.GDI32.dll_GetDeviceCaps
add esp, 0x18
mov ebx, eax
mov eax, 2
call fcn.00401434
push edx
push 0x48
push ebx
push eax
call sub.KERNEL32.DLL_MulDiv
neg eax
push ecx
push esi
push dword [ebp - 0x2a8]
mov dword [section..bss], eax
call sub.USER32.dll_ReleaseDC
pop eax
mov eax, 3
pop edx
call fcn.00401434
mov dword [0x40d010], eax
mov eax, dword [ebp - 0x20]
mov dl, al
mov byte [0x40d017], 1
and edx, 1
mov byte [0x40d014], dl
mov dl, al
and eax, 4
and edx, 2
mov byte [0x40d016], al
push eax
push eax
mov byte [0x40d015], dl
push dword [ebp - 0x2c]
push 0x40d01c
call fcn.00406b8a
push eax
push section..bss
call sub.GDI32.dll_CreateFontIndirectW
sub esp, 0xc
push eax
push edi
jmp 0x4031ee
xor eax, eax
call fcn.00401434
mov ebx, eax
mov eax, 1
call fcn.00401434
cmp dword [ebp - 0x24], 0
jne 0x40223c
push edi
push edi
push eax
push ebx
call sub.USER32.dll_ShowWindow
jmp 0x401c33
push esi
push esi
push eax
push ebx
call sub.USER32.dll_EnableWindow
jmp 0x401c33
xor eax, eax
call fcn.004013e8
mov esi, eax
mov eax, 0x31
call fcn.004013e8
mov edi, eax
mov eax, 0x22
call fcn.004013e8
mov ebx, eax
mov eax, 0x15
call fcn.004013e8
sub esp, 0xc
push 0xffffffffffffffec
call fcn.004013cf
xor ecx, ecx
add esp, 0xc
cmp word [ebx], 0
mov eax, dword [ebp - 0x24]
je 0x40228f
mov ecx, ebx
xor edx, edx
cmp word [esi], 0
je 0x402299
mov edx, esi
push ebx
push ebx
push eax
push dword [ebp - 0x294]
push ecx
push edi
push edx
push dword [ebp - 0x2a8]
call sub.SHELL32.DLL_ShellExecuteW
pop edx
cmp eax, 0x20
pop ecx
jle 0x40327b
jmp case.0x40161d.65
xor eax, eax
call fcn.004013e8
mov ebx, eax
push eax
push eax
push ebx
push 0xffffffffffffffeb
call fcn.004042ef
push eax
push ebx
call fcn.004076e9
add esp, 0xc
mov ebx, eax
test eax, eax
je 0x40327b
cmp dword [ebp - 0x28], 0
je 0x402351
jmp 0x4022fc
sub esp, 0xc
push 0xf
call fcn.00406783
add esp, 0xc
push eax
push eax
push 0x64
push ebx
call sub.KERNEL32.DLL_WaitForSingleObject
pop esi
cmp eax, 0x102
pop edi
je 0x4022ef
lea eax, [ebp - 0x10]
push ecx
push ecx
push eax
push ebx
call sub.KERNEL32.DLL_GetExitCodeProcess
cmp dword [ebp - 0x2c], 0
pop eax
pop edx
js 0x402341
push eax
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x290]
call fcn.004067be
mov dword [ebp - 0x2ac], 0
pop edi
pop eax
jmp 0x40235b
mov dword [ebp - 0x2ac], 1
cmp dword [ebp - 0x10], 0
jne 0x40235b
mov dword [ebp - 0x2ac], 0
sub esp, 0xc
push ebx
call sub.KERNEL32.DLL_CloseHandle
jmp 0x401f5d
mov eax, 2
call fcn.004013e8
sub esp, 0xc
push eax
call fcn.004068b8
add esp, 0xc
mov ebx, eax
test eax, eax
je 0x4023a3
push esi
push esi
push dword [eax + 0x14]
push dword [ebp - 0x290]
call fcn.004067be
push dword [ebx + 0x18]
push edi
call fcn.004067be
jmp 0x401c33
mov word [edi], 0
mov ecx, dword [ebp - 0x290]
mov word [ecx], 0
jmp 0x40327b
mov eax, 0xffffffee
call fcn.004013e8
sub esp, 0xc
mov dword [ebp - 0x2b8], eax
push 8
call fcn.00406846
lea edx, [ebp - 0x10]
sub esp, 0xc
push edx
push dword [ebp - 0x2b8]
call eax
mov word [edi], 0
mov esi, eax
mov eax, dword [ebp - 0x290]
add esp, 0x18
test esi, esi
mov word [eax], 0
je 0x40327b
push ebx
push ebx
push esi
push pe_nt_image_headers32
call sub.KERNEL32.DLL_GlobalAlloc
pop edx
mov dword [ebp - 0x2bc], eax
pop ecx
test eax, eax
je 0x40327b
sub esp, 0xc
push 9
call fcn.00406846
mov ebx, eax
push 0xa
call fcn.00406846
add esp, 0xc
mov dword [ebp - 0x29c], eax
push dword [ebp - 0x2bc]
push esi
push 0
push dword [ebp - 0x2b8]
call ebx
test eax, eax
je 0x402493
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x18]
push edx
push eax
push section..rdata
push dword [ebp - 0x2bc]
call dword [ebp - 0x29c]
test eax, eax
je 0x402493
push eax
push eax
mov eax, dword [ebp - 0x14]
push dword [eax + 8]
push edi
call fcn.004067be
mov eax, dword [ebp - 0x14]
push dword [eax + 0xc]
push dword [ebp - 0x290]
call fcn.004067be
mov dword [ebp - 0x2ac], 0
pop edi
pop eax
jmp 0x40249d
mov dword [ebp - 0x2ac], 1
sub esp, 0xc
push dword [ebp - 0x2bc]
call sub.KERNEL32.DLL_GlobalFree
jmp 0x401f5d
cmp dword [0x435a48], 0
js 0x4025b4
mov eax, 0xfffffff0
call fcn.004013e8
mov ebx, eax
mov eax, 1
call fcn.004013e8
cmp dword [ebp - 0x20], 0
mov edi, eax
je 0x4024ed
sub esp, 0xc
push ebx
call sub.KERNEL32.DLL_GetModuleHandleW
add esp, 0xc
mov esi, eax
test eax, eax
jne 0x402503
push esi
push 8
push 0
push ebx
call sub.KERNEL32.DLL_LoadLibraryExW
mov esi, eax
pop ebx
test eax, eax
je 0x4025aa
push ecx
push ecx
push edi
push esi
call fcn.0040673d
mov ebx, eax
pop eax
test ebx, ebx
pop edx
je 0x402568
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x402539
sub esp, 0xc
push eax
call fcn.004013cf
add esp, 0xc
call ebx
test eax, eax
setne al
movzx eax, al
mov dword [ebp - 0x2ac], eax
jmp 0x40257e
sub esp, 0xc
push section..data
push 0x40d060
push dword [0x40b688]
push 0x400
push dword [ebp - 0x2a8]
call ebx
add esp, 0x20
mov dword [ebp - 0x2ac], 0
jmp 0x40257e
push eax
push eax
push edi
push 0xfffffffffffffff7
call fcn.004042ef
mov dword [ebp - 0x2ac], 1
pop edi
pop eax
cmp dword [ebp - 0x24], 0
jne 0x403285
sub esp, 0xc
push esi
call fcn.004041ed
add esp, 0xc
test eax, eax
je 0x403285
sub esp, 0xc
push esi
call sub.KERNEL32.DLL_FreeLibrary
jmp 0x401f5d
sub esp, 0xc
push 0xfffffffffffffff6
jmp 0x402741
sub esp, 0xc
push 0xffffffffffffffe7
jmp 0x402741
mov eax, 0xfffffff0
call fcn.004013e8
mov dword [ebp - 0x2c0], eax
mov eax, 0xffffffdf
call fcn.004013e8
mov edi, eax
mov eax, 2
call fcn.004013e8
mov dword [ebp - 0x2c4], eax
mov eax, 0xffffffcd
call fcn.004013e8
mov dword [ebp - 0x2c8], eax
mov eax, 0x45
call fcn.004013e8
sub esp, 0xc
mov dword [ebp - 0x2cc], eax
mov ebx, dword [ebp - 0x20]
push edi
call fcn.00406624
add esp, 0xc
test eax, eax
jne 0x402624
mov al, 0x21
call fcn.004013e8
sub esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 0x40bbb8
push 1
push 0
push 0x40b9e8
call sub.OLE32.dll_CoCreateInstance
add esp, 0xc
test eax, eax
js 0x40273c
mov eax, dword [ebp - 0x18]
push esi
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
push edx
push 0x40bed8
push eax
call dword [ecx]
mov esi, eax
pop ecx
test eax, eax
js 0x402729
mov eax, dword [ebp - 0x18]
push edx
push edx
mov edx, dword [eax]
push edi
push eax
call dword [edx + 0x50]
test bx, bx
pop ecx
mov esi, eax
pop edi
js 0x40268e
mov eax, dword [ebp - 0x18]
push edx
push edx
mov edx, dword [eax]
push dword [ebp - 0x294]
push eax
call dword [edx + 0x24]
pop ecx
pop edi
mov eax, ebx
sar eax, 0xc
mov ecx, eax
and ecx, 7
je 0x4026a8
mov eax, dword [ebp - 0x18]
push edx
push edx
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x3c]
pop ecx
pop edi
mov eax, dword [ebp - 0x18]
push edx
push edx
mov edx, ebx
shr edx, 0x10
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x34]
mov edx, dword [ebp - 0x2c8]
cmp word [edx], 0
pop ecx
pop edi
je 0x4026df
mov eax, dword [ebp - 0x18]
and ebx, 0xfff
push edx
mov edx, dword [eax]
push ebx
push dword [ebp - 0x2c8]
push eax
call dword [edx + 0x44]
pop eax
mov eax, dword [ebp - 0x18]
push edi
push edi
mov edx, dword [eax]
push dword [ebp - 0x2c4]
push eax
call dword [edx + 0x2c]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
push dword [ebp - 0x2cc]
push eax
call dword [edx + 0x1c]
test esi, esi
pop ecx
pop ebx
js 0x40271a
mov eax, dword [ebp - 0x14]
push edx
mov edx, dword [eax]
push 1
push dword [ebp - 0x2c0]
push eax
call dword [edx + 0x18]
mov esi, eax
pop eax
mov eax, dword [ebp - 0x14]
sub esp, 0xc
mov edx, dword [eax]
push eax
call dword [edx + 8]
add esp, 0xc
mov eax, dword [ebp - 0x18]
sub esp, 0xc
mov edx, dword [eax]
push eax
call dword [edx + 8]
add esp, 0xc
test esi, esi
jns 0x402755
sub esp, 0xc
push 0xfffffffffffffff0
call fcn.004013cf
mov dword [ebp - 0x2ac], 1
jmp 0x401f5d
sub esp, 0xc
push 0xfffffffffffffff4
call fcn.004013cf
jmp 0x401f53
xor eax, eax
call fcn.004013e8
mov ebx, eax
mov eax, 0x11
call fcn.004013e8
mov esi, eax
mov eax, 0x23
call fcn.004013e8
sub esp, 0xc
mov edi, eax
push ebx
call fcn.004068b8
add esp, 0xc
test eax, eax
je 0x402809
sub esp, 0xc
mov ecx, dword [ebp - 0x2a8]
mov dword [ebp - 0x284], ecx
mov dword [ebp - 0x280], 2
push ebx
call fcn.00406a69
mov word [ebx + eax*2 + 2], 0
push esi
call fcn.00406a69
sub esp, 0xc
mov word [esi + eax*2 + 2], 0
mov dword [ebp - 0x27c], ebx
mov eax, dword [ebp - 0x28]
push edi
mov word [ebp - 0x274], ax
mov dword [ebp - 0x278], esi
mov dword [ebp - 0x26a], edi
push 0
call fcn.004042ef
lea eax, [ebp - 0x284]
add esp, 0xc
push eax
call sub.SHELL32.DLL_SHFileOperationW
add esp, 0xc
test eax, eax
je case.0x40161d.65
push eax
push eax
push 0
push 0xfffffffffffffff9
call fcn.004042ef
mov dword [ebp - 0x2ac], 1
jmp 0x401c3d
cmp esi, 0xbadf00d
je 0x40284d
push edi
push edi
push 0xffffffffffffffe8
push 0
call fcn.00406b8a
push 0x200010
push eax
call fcn.00407652
pop ebx
mov eax, 0x7fffffff
pop esi
jmp 0x403311
inc dword [0x435a1c]
jmp case.0x40161d.65
xor edi, edi
test esi, esi
je 0x402867
xor eax, eax
call fcn.004013e8
mov edi, eax
xor esi, esi
cmp dword [ebp - 0x2c], 0
je 0x40287b
mov eax, 0x11
call fcn.004013e8
mov esi, eax
xor ebx, ebx
cmp dword [ebp - 0x20], 0
je 0x40288f
mov eax, 0x22
call fcn.004013e8
mov ebx, eax
mov eax, 0xffffffcd
call fcn.004013e8
push eax
push ebx
push esi
push edi
call sub.KERNEL32.DLL_WritePrivateProfileStringW
jmp 0x402c8b
mov eax, dword [0x40b004]
mov dword [ebp - 0x284], eax
mov eax, 1
call fcn.004013e8
mov esi, eax
mov eax, 0x12
call fcn.004013e8
mov ebx, eax
mov eax, 0xffffffdd
call fcn.004013e8
push ecx
push ecx
push eax
lea eax, [ebp - 0x284]
push 0x3ff
push edi
push eax
push ebx
push esi
call sub.KERNEL32.DLL_GetPrivateProfileStringW
cmp word [edi], 0xa
pop eax
pop edx
jne case.0x40161d.65
jmp 0x402f5f
cmp dword [ebp - 0x20], 0
jne 0x402937
mov eax, 2
call fcn.00401475
mov ebx, eax
test eax, eax
je 0x40327b
mov eax, 0x33
call fcn.004013e8
push esi
push esi
push eax
push ebx
call sub.ADVAPI32.DLL_RegDeleteValueW
mov esi, eax
push ecx
push ebx
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0xc
jmp 0x40295c
mov eax, 0x22
call fcn.004013e8
mov ebx, dword [ebp - 0x20]
mov esi, eax
mov eax, dword [ebp - 0x2c]
call fcn.004013bc
and ebx, 2
mov edx, esi
mov ecx, ebx
call fcn.004014bf
mov esi, eax
test esi, esi
jne 0x40327b
jmp case.0x40161d.65
mov eax, esi
call fcn.004013bc
mov esi, dword [ebp - 0x20]
mov ebx, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2d0], eax
mov eax, 2
call fcn.004013e8
mov edi, eax
mov eax, 0x11
call fcn.004013e8
sub esp, 0xc
lea edx, [ebp - 0x14]
push 0
push edx
mov edx, dword [0x435a38]
or edx, 2
push 0
push edx
push 0
push 0
push 0
push eax
push ebx
call sub.ADVAPI32.DLL_RegCreateKeyExW
add esp, 0xc
test eax, eax
jne 0x40327b
cmp esi, 1
jne 0x4029e3
mov al, 0x23
call fcn.004013e8
sub esp, 0xc
push 0x40e070
call fcn.00406a69
add esp, 0xc
lea eax, [eax + eax + 2]
jmp 0x402a19
cmp esi, 4
jne 0x4029fe
mov eax, 3
call fcn.00401434
mov dword [0x40e070], eax
mov eax, 4
jmp 0x402a19
xor eax, eax
cmp esi, 3
jne 0x402a19
push 0x1800
push 0x40e070
push 0
push dword [ebp - 0x24]
call fcn.00403373
push edx
push edx
push eax
push 0x40e070
push dword [ebp - 0x2d0]
push 0
push edi
push dword [ebp - 0x14]
call sub.ADVAPI32.DLL_RegSetValueExW
test eax, eax
push edi
push dword [ebp - 0x14]
setne al
movzx eax, al
mov dword [ebp - 0x2ac], eax
jmp 0x402ae5
mov eax, 0x20019
call fcn.00401475
mov ebx, eax
mov eax, 0x33
call fcn.004013e8
mov word [edi], 0
mov edx, eax
test ebx, ebx
je 0x40327b
lea eax, [ebp - 0x14]
push esi
push esi
push eax
lea eax, [ebp - 0x18]
push edi
mov dword [ebp - 0x14], 0x800
push eax
push 0
push edx
push ebx
call sub.ADVAPI32.DLL_RegQueryValueExW
pop edx
test eax, eax
pop ecx
jne 0x402aa1
mov eax, dword [ebp - 0x18]
cmp eax, 4
je 0x402ab2
cmp eax, 1
je 0x402acf
cmp eax, 2
je 0x402acf
mov word [edi], 0
mov dword [ebp - 0x2ac], 1
jmp 0x402ae1
xor eax, eax
cmp dword [ebp - 0x20], 0
sete al
mov dword [ebp - 0x2ac], eax
push eax
push eax
push dword [edi]
push edi
call fcn.004067be
pop ecx
pop esi
jmp 0x402ae1
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2ac], edx
mov word [edi + 0x7fe], 0
sub esp, 0xc
push ebx
call sub.ADVAPI32.DLL_RegCloseKey
jmp 0x401f5d
mov eax, 0x20019
call fcn.00401475
mov ebx, eax
mov eax, 3
call fcn.00401434
mov word [edi], 0
mov edx, eax
test ebx, ebx
je 0x40327b
mov dword [ebp - 0x18], 0x3ff
cmp dword [ebp - 0x20], 0
je 0x402b30
push 0x3ff
push edi
push eax
push ebx
call sub.ADVAPI32.DLL_RegEnumKeyW
jmp 0x402b4c
lea eax, [ebp - 0x18]
push 0
push 0
push 0
push 0
push eax
push edi
push edx
push ebx
call sub.ADVAPI32.DLL_RegEnumValueW
test eax, eax
jne 0x40327b
sub esp, 0xc
mov word [edi + 0x7fe], 0
push ebx
call sub.ADVAPI32.DLL_RegCloseKey
jmp 0x401f53
sub esp, 0xc
push edi
call fcn.0040667f
add esp, 0xc
test eax, eax
je case.0x40161d.65
sub esp, 0xc
push eax
call sub.KERNEL32.DLL_CloseHandle
jmp 0x401f53
mov eax, 0xffffffed
call fcn.004013e8
push edx
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push eax
call fcn.004070a0
pop esi
cmp eax, 0xffffffff
je 0x402f5f
push ebx
push ebx
push eax
push edi
jmp 0x402ecd
xor eax, eax
mov ecx, dword [ebp - 0x28]
cmp edx, 0x38
mov dword [ebp - 0x2d4], ecx
sete al
mov dword [ebp - 0x2d8], eax
test ecx, ecx
je 0x402be7
mov eax, 1
call fcn.00401434
mov esi, dword [ebp - 0x2d8]
neg esi
add esi, 2
mov word [0x40d870], ax
jmp 0x402c3e
cmp edx, 0x38
jne 0x402c25
mov eax, 0x21
call fcn.004013e8
push 0
push 0
push 0x400
push 0x40d870
push 0xffffffffffffffff
push 0x40e070
push 0
push 0
call sub.KERNEL32.DLL_WideCharToMultiByte
sub esp, 0xc
push 0x40d870
call sub.KERNEL32.DLL_lstrlenA
mov esi, eax
jmp 0x402c3b
mov eax, 0x11
call fcn.004013e8
sub esp, 0xc
push eax
call fcn.00406a69
lea esi, [eax + eax]
add esp, 0xc
cmp word [edi], 0
je 0x40327b
sub esp, 0xc
push edi
call fcn.0040667f
mov ebx, eax
mov eax, dword [ebp - 0x2d8]
add esp, 0xc
or eax, dword [ebp - 0x2d4]
jne 0x402c7d
cmp dword [ebp - 0x24], 0
je 0x402c7d
push ecx
push ecx
push ebx
push ebx
call fcn.00406eea
pop edi
test eax, eax
pop edx
js 0x40327b
push ecx
push esi
push 0x40d870
push ebx
call fcn.00406e7e
pop edx
test eax, eax
jne case.0x40161d.65
jmp 0x40327b
mov eax, 2
call fcn.00401434
test eax, eax
jle case.0x40161d.65
mov dword [ebp - 0x2e0], eax
cmp eax, 0x3ff
jle 0x402cc1
mov dword [ebp - 0x2e0], 0x3ff
mov dword [ebp - 0x2dc], 0
cmp word [edi], 0
je 0x402e74
sub esp, 0xc
mov esi, 2
push edi
call fcn.0040667f
mov dword [ebp - 0x2dc], 0
mov edi, eax
mov word [ebp - 0x2e2], 0
add esp, 0xc
cmp dword [ebp - 0x34], 0x39
jne 0x402d95
mov eax, 2
sub esp, 0xc
sub eax, dword [ebp - 0x24]
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x284]
push 0
push edx
push eax
push ecx
push edi
call sub.KERNEL32.DLL_ReadFile
add esp, 0xc
test eax, eax
je 0x402e74
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x402e74
mov esi, eax
movzx eax, byte [ebp - 0x284]
cmp dword [ebp - 0x24], 0
mov word [ebp - 0x10], ax
jne 0x402dca
mov ebx, 1
sub ebx, esi
push eax
push eax
lea eax, [ebp - 0x10]
push 1
push eax
lea edx, [ebp - 0x284]
push dword [ebp - 0x18]
push edx
push 8
push 0
call sub.KERNEL32.DLL_MultiByteToWideChar
pop edx
test eax, eax
pop ecx
jne 0x402dca
mov eax, dword [ebp - 0x18]
mov word [ebp - 0x10], 0xfffd
dec eax
mov dword [ebp - 0x18], eax
test eax, eax
je 0x402dca
push 1
push 0
push ebx
push edi
call sub.KERNEL32.DLL_SetFilePointer
dec esi
inc ebx
jmp 0x402d54
mov ecx, dword [ebp - 0x2dc]
or ecx, dword [ebp - 0x24]
jne 0x402db4
push ecx
push ecx
push 0
push edi
call fcn.00406eea
pop ebx
test eax, eax
pop edx
js 0x402e74
lea eax, [ebp - 0x10]
push ecx
push 2
push eax
push edi
call fcn.00406eb4
pop edx
test eax, eax
je 0x402e74
cmp dword [ebp - 0x24], 0
je 0x402de9
push eax
push eax
movzx eax, word [ebp - 0x10]
push eax
push dword [ebp - 0x290]
call fcn.004067be
pop edi
pop eax
jmp 0x40330d
cmp word [ebp - 0x2e2], 0xd
je 0x402dfd
cmp word [ebp - 0x2e2], 0xa
jne 0x402e3d
mov eax, dword [ebp - 0x10]
cmp word [ebp - 0x2e2], ax
je 0x402e15
cmp ax, 0xd
je 0x402e24
cmp ax, 0xa
je 0x402e24
neg esi
push 1
push 0
push esi
push edi
call sub.KERNEL32.DLL_SetFilePointer
jmp 0x402e74
mov edx, dword [ebp - 0x2dc]
mov ecx, dword [ebp - 0x290]
mov word [ecx + edx*2], ax
inc edx
mov dword [ebp - 0x2dc], edx
jmp 0x402e74
mov edx, dword [ebp - 0x2dc]
mov ecx, dword [ebp - 0x290]
mov eax, dword [ebp - 0x10]
mov word [ecx + edx*2], ax
inc edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2dc], edx
test ax, ax
mov word [ebp - 0x2e2], ax
je 0x402e74
mov ecx, dword [ebp - 0x2e0]
cmp edx, ecx
jl 0x402cfb
mov eax, dword [ebp - 0x2dc]
mov edx, dword [ebp - 0x290]
mov word [edx + eax*2], 0
jmp 0x402c8b
cmp word [edi], 0
je case.0x40161d.65
mov eax, 2
mov esi, dword [ebp - 0x24]
call fcn.00401434
sub esp, 0xc
mov ebx, eax
push edi
call fcn.0040667f
add esp, 0xc
push esi
push 0
push ebx
push eax
call sub.KERNEL32.DLL_SetFilePointer
cmp dword [ebp - 0x2c], 0
js case.0x40161d.65
push esi
push esi
push eax
push dword [ebp - 0x290]
call fcn.004067be
jmp 0x401c33
sub esp, 0xc
push edi
call fcn.0040667f
add esp, 0xc
test eax, eax
je case.0x40161d.65
sub esp, 0xc
push eax
call sub.KERNEL32.DLL_FindClose
jmp 0x401f53
sub esp, 0xc
push dword [ebp - 0x290]
call fcn.0040667f
add esp, 0xc
mov edx, eax
test eax, eax
je 0x402f5f
lea eax, [ebp - 0x284]
push ebx
push ebx
push eax
push edx
call sub.KERNEL32.DLL_FindNextFileW
pop edx
test eax, eax
pop ecx
je 0x402f5f
push eax
push eax
lea eax, [ebp - 0x258]
push eax
push edi
jmp 0x40314b
mov eax, 2
call fcn.004013e8
lea edx, [ebp - 0x284]
push esi
push esi
push edx
push eax
call sub.KERNEL32.DLL_FindFirstFileW
pop ecx
cmp eax, 0xffffffff
pop ebx
jne 0x402f69
mov ecx, dword [ebp - 0x290]
mov word [ecx], 0
mov word [edi], 0
jmp 0x40327b
push edx
push edx
push eax
push dword [ebp - 0x290]
call fcn.004067be
lea eax, [ebp - 0x258]
push eax
push edi
call fcn.00406aea
jmp 0x401c33
mov eax, 0xfffffff0
call fcn.004013e8
sub esp, 0xc
mov dword [ebp - 0x2ec], eax
push eax
call fcn.00406624
add esp, 0xc
test eax, eax
jne 0x402fb3
mov eax, 0xffffffed
call fcn.004013e8
sub esp, 0xc
push dword [ebp - 0x2ec]
call fcn.004070d8
push eax
push eax
push 2
push 0x40000000
push dword [ebp - 0x2ec]
call fcn.004070a0
mov dword [ebp - 0x2e8], eax
add esp, 0x14
inc eax
je 0x4030df
mov eax, dword [0x435ae8]
push edi
mov dword [ebp - 0x2a0], eax
push edi
push eax
push pe_nt_image_headers32
call sub.KERNEL32.DLL_GlobalAlloc
pop ebx
mov dword [ebp - 0x2a4], eax
pop esi
mov ebx, 0xfffffd66
test eax, eax
je 0x4030b9
sub esp, 0xc
push 0
call fcn.0040333c
sub esp, 0xc
push dword [ebp - 0x2a0]
push dword [ebp - 0x2a4]
call fcn.00403358
push dword [ebp - 0x28]
push pe_nt_image_headers32
call sub.KERNEL32.DLL_GlobalAlloc
add esp, 0x18
mov edi, eax
test eax, eax
je 0x40307e
push dword [ebp - 0x28]
push eax
push 0
push dword [ebp - 0x2c]
call fcn.00403373
mov eax, edi
jmp 0x40306d
mov esi, dword [eax]
lea ebx, [eax + 8]
push ecx
push esi
push ebx
mov eax, dword [eax + 4]
add eax, dword [ebp - 0x2a4]
push eax
call fcn.0040665d
lea eax, [ebx + esi]
pop edx
cmp byte [eax], 0
jne 0x403052
sub esp, 0xc
push edi
call sub.KERNEL32.DLL_GlobalFree
add esp, 0xc
push eax
push dword [ebp - 0x2a0]
push dword [ebp - 0x2a4]
push dword [ebp - 0x2e8]
call fcn.00406e7e
push eax
push eax
push dword [ebp - 0x2a4]
call sub.KERNEL32.DLL_GlobalFree
add esp, 0xc
push 0
push 0
push dword [ebp - 0x2e8]
push 0xffffffffffffffff
call fcn.00403373
mov ebx, eax
sub esp, 0xc
push dword [ebp - 0x2e8]
call sub.KERNEL32.DLL_CloseHandle
add esp, 0xc
test ebx, ebx
js 0x4030df
mov eax, 0xfffffff3
mov dword [ebp - 0x2ac], 0
jmp 0x4030ff
sub esp, 0xc
push dword [ebp - 0x2ec]
call sub.KERNEL32.DLL_DeleteFileW
mov eax, 0xffffffef
mov dword [ebp - 0x2ac], 1
add esp, 0xc
sub esp, 0xc
push eax
call fcn.004013cf
jmp 0x401f5d
xor eax, eax
call fcn.00401434
mov esi, eax
cmp eax, dword [0x435a84]
jae 0x40327b
imul ebx, eax, 0x818
mov eax, dword [ebp - 0x28]
add ebx, dword [0x435a80]
cmp eax, 0
jl 0x403155
mov eax, dword [ebx + eax*4]
jne 0x402ec4
push eax
push eax
lea eax, [ebx + 0x18]
push eax
push dword [ebp - 0x290]
call fcn.00406aea
jmp 0x401c33
not eax
mov dword [ebp - 0x28], eax
test eax, eax
je 0x40316d
mov eax, 1
call fcn.00401434
mov dword [ebp - 0x2c], eax
jmp 0x403184
push eax
push eax
push dword [ebp - 0x20]
lea eax, [ebx + 0x18]
push eax
call fcn.00406b8a
or dword [ebx + 8], 0x100
pop edi
pop eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov dword [ebx + eax*4], edx
cmp dword [ebp - 0x24], 0
je case.0x40161d.65
sub esp, 0xc
push esi
call fcn.004011c8
jmp 0x401f53
xor eax, eax
call fcn.00401434
mov edx, eax
cmp eax, 0x1f
ja 0x40327b
cmp dword [ebp - 0x24], 0
je 0x403205
cmp dword [ebp - 0x28], 0
je 0x4031da
sub esp, 0xc
push eax
call fcn.004012df
sub esp, 0xc
push 0
push 0
call fcn.0040122c
jmp 0x4031f3
sub esp, 0xc
push 0
call fcn.00401328
sub esp, 0xc
push eax
push dword [ebp - 0x290]
call fcn.004067be
add esp, 0x18
mov dword [ebp - 0x2ac], 0
jmp 0x403285
cmp dword [ebp - 0x28], 0
mov ecx, dword [0x435a68]
je 0x40321d
mov eax, dword [ebp - 0x2c]
mov dword [ecx + edx*4 + 0x94], eax
jmp case.0x40161d.65
push esi
push esi
push dword [ecx + eax*4 + 0x94]
push dword [ebp - 0x290]
call fcn.00406b8a
jmp 0x401c33
and esi, dword [0x42dc80]
push 0
push esi
push 0xb
push dword [ebp - 0x2a8]
call sub.USER32.dll_SendMessageW
cmp dword [ebp - 0x30], 0
je case.0x40161d.65
push ebx
push 0
push 0
push dword [ebp - 0x2a8]
call sub.USER32.dll_InvalidateRect
mov dword [ebp - 0x2ac], 0
pop ecx
jmp 0x403285
mov dword [ebp - 0x2ac], 0
jmp 0x403285
mov dword [ebp - 0x2ac], 1
mov edx, dword [ebp - 0x2ac]
add dword [0x435a10], edx
jmp 0x40330d
cmp esi, 0x7fffffff
je 0x403306
sub esp, 0xc
push esi
call fcn.00401453
add esp, 0xc
test eax, eax
jne 0x4032b5
inc dword [ebp + 8]
mov edx, 1
jmp 0x4032be
dec eax
mov edx, eax
sub edx, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [ebp + 0xc], 0
je 0x4032f8
mov eax, edx
push edx
push dword [0x436b78]
add eax, dword [0x436b58]
push 0x7530
mov dword [0x436b58], eax
push eax
call sub.KERNEL32.DLL_MulDiv
mov dword [esp], 0
push eax
push 0x402
push dword [ebp + 0xc]
call sub.USER32.dll_SendMessageW
cmp dword [ebp + 8], 0
jns 0x4015b3
xor eax, eax
jmp 0x403311
mov eax, 0x7fffffff
jmp 0x403311
xor esi, esi
jmp 0x40329b
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8