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

Disassembly:
sub esp, 0x2d4
mov eax, dword [0x40b0f8]
xor eax, esp
mov dword [esp + 0x2d0], eax
mov edx, dword [0x46fd38]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2e4]
xor ebp, ebp
push edi
push 7
pop ecx
lea edi, [esp + 0x38]
mov dword [esp + 0x20], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x3c]
mov edx, section..ndata
mov eax, dword [esp + 0x40]
mov edi, ecx
mov esi, eax
shl edi, 0xe
add edi, edx
shl esi, 0xe
add esi, edx
mov dword [esp + 0x54], ecx
lea edx, [esp + 0x3c]
mov dword [esp + 0x14], edi
mov dword [0x40b104], edx
mov ebx, ebp
mov edx, dword [esp + 0x38]
add edx, 0xfffffffe
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], edx
cmp edx, 0x44
mov edx, dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], esi
ja case.0x401613.20
mov ebx, dword [esp + 0x18]
jmp dword [ebx*4 + 0x402fd0]
mov eax, ecx
jmp 0x402fb2
push ebp
push ecx
call fcn.004061ae
mov eax, 0x7fffffff
jmp 0x402fb2
inc dword [0x46fd2c]
test edx, edx
je 0x401628
push ebp
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x401628
push ecx
call fcn.00403217
dec eax
push ebp
push eax
call fcn.004013c0
jmp 0x402fb2
push ebp
push ecx
call fcn.004061ae
jmp case.0x401613.20
push ebp
call fcn.0040311c
pop ecx
xor ecx, ecx
inc ecx
cmp eax, ecx
cmovg ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x401613.20
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x401613.20
mov eax, dword [esp + 0x44]
test eax, eax
jg 0x4016c4
mov eax, dword [ecx*4 + 0x477e00]
jns 0x4016a3
mov dword [0x41f108], eax
jmp 0x4016aa
mov dword [ecx*4 + 0x477dc0], eax
push 1
call fcn.0040311c
pop ecx
mov ecx, eax
mov eax, dword [esp + 0x3c]
mov dword [eax*4 + 0x477e00], ecx
jmp case.0x401613.20
mov eax, dword [ecx*4 + 0x477dc0]
mov ebx, dword [esp + 0x10]
mov dword [ecx*4 + 0x477e00], eax
cmp dword [esp + 0x48], ebp
jge 0x402faa
mov eax, dword [0x41f108]
mov dword [ecx*4 + 0x477e00], eax
jmp 0x402faa
mov ecx, dword [esp + 0x44]
push 4
mov edx, dword [ecx*4 + 0x477e00]
mov eax, edx
and eax, dword [esp + 0x4c]
mov dword [ecx*4 + 0x477e00], eax
xor eax, eax
test edx, edx
pop ecx
cmove eax, ecx
mov eax, dword [esp + eax + 0x3c]
jmp 0x402fb2
push dword [eax*4 + 0x477e00]
push edi
call fcn.00406b10
jmp case.0x401613.20
mov edx, dword [0x46fd24]
test edx, edx
je 0x401744
push eax
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x3c]
mov eax, dword [0x46fd28]
test eax, eax
je case.0x401613.20
push ecx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x401613.20
push 0xfffffffffffffff0
call fcn.00403158
push dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne case.0x401613.20
xor ebx, ebx
inc ebx
jmp 0x402faa
push 0xfffffffffffffff0
call fcn.00403158
mov edi, eax
push edi
call fcn.004070de
mov ebx, dword [esp + 0x10]
mov esi, eax
test esi, esi
je 0x4017f3
push 0x5c
push esi
call fcn.00406ae7
mov esi, eax
xor eax, eax
movzx ebp, word [esi]
mov word [esi], ax
test bp, bp
jne 0x4017c7
cmp dword [esp + 0x44], eax
je 0x4017c7
call fcn.004069e0
test eax, eax
je 0x4017c7
push edi
call fcn.004062c6
jmp 0x4017cd
push edi
call fcn.004062a6
test eax, eax
je 0x4017e4
cmp eax, 0xb7
jne 0x4017e3
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4017e4
inc ebx
mov word [esi], bp
add esi, 2
test bp, bp
jne 0x401799
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x40], 0
push 0x40f108
je 0x40182a
push 0xffffffffffffffe6
call fcn.004061ae
push edi
push 0x4d0000
call fcn.0040704c
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne case.0x401613.20
inc ebx
mov dword [esp + 0x10], ebx
jmp case.0x401613.20
push 0xfffffffffffffff5
jmp 0x40165a
push ebp
call fcn.00403158
push eax
call fcn.00406ac0
jmp 0x401efb
push 0xffffffffffffffd0
call fcn.00403158
push 0xffffffffffffffdf
mov esi, eax
call fcn.00403158
push 0x13
mov edi, eax
call fcn.00403158
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x401873
push 0x40f108
push 0xffffffffffffffe3
jmp 0x40165a
cmp dword [esp + 0x44], ebp
je 0x401778
push esi
call fcn.00406ac0
test eax, eax
je 0x401778
push edi
push esi
call fcn.00406702
push 0x40f108
push 0xffffffffffffffe4
jmp 0x40165a
push ebp
call fcn.00403158
mov edi, eax
lea eax, [esp + 0x14]
push eax
push esi
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x4018c6
xor ebx, ebx
inc ebx
xor eax, eax
mov word [esi], ax
jmp 0x4018ee
mov eax, dword [esp + 0x14]
cmp eax, edi
jbe 0x4018ea
cmp word [eax], bp
je 0x4018ea
push edi
call fcn.00406ac0
test eax, eax
je 0x4018bc
add eax, 0x2c
push eax
push dword [esp + 0x18]
call fcn.0040704c
mov ebx, dword [esp + 0x10]
cmp dword [esp + 0x44], ebp
jne 0x402faa
push 0x2000
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
jmp 0x402faa
push 0xffffffffffffffff
call fcn.00403158
lea ecx, [esp + 0x54]
push ecx
push edi
push 0x2000
push ebp
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne case.0x401613.20
xor ebx, ebx
inc ebx
xor eax, eax
mov word [edi], ax
jmp 0x402faa
push 0xffffffffffffffef
call fcn.00403158
push eax
push edi
call fcn.00406f70
jmp 0x401770
push 0x31
call fcn.00403158
mov esi, dword [esp + 0x3c]
mov ebx, eax
push ebx
mov dword [esp + 0x18], ebx
and esi, 7
call fcn.0040732c
push ebx
mov ebx, 0x40b108
test eax, eax
je 0x401979
push ebx
call fcn.0040704c
jmp 0x401990
push 0x4d0000
push ebx
call fcn.0040704c
push eax
call fcn.00406a47
push eax
call sub.KERNEL32.dll_lstrcatW
push ebx
call fcn.00407260
xor edi, edi
inc edi
cmp esi, 3
jl 0x4019cb
push ebx
call fcn.00406ac0
mov ecx, ebp
test eax, eax
je 0x4019bb
lea ecx, [esp + 0x48]
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 0x4019d5
push ebx
call fcn.004070b6
xor eax, eax
cmp esi, edi
setne al
inc eax
push eax
push 0x40000000
push ebx
call fcn.00406e34
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x401a7d
test esi, esi
jne 0x401a64
push section..ndata
push 0x413108
call fcn.0040704c
push ebx
push section..ndata
call fcn.0040704c
push dword [esp + 0x50]
push 0x40f108
call fcn.00406321
push 0x413108
push section..ndata
call fcn.0040704c
mov eax, dword [esp + 0x3c]
sar eax, 3
push eax
push 0x40f108
call fcn.00406fda
sub eax, 4
je 0x401999
sub eax, 1
je 0x401a59
push ebx
push 0xfffffffffffffffa
jmp 0x401623
inc dword [0x477e08]
jmp 0x402fb0
mov edi, dword [esp + 0x14]
push edi
push 0xffffffffffffffe2
call fcn.004061ae
xor ebx, ebx
cmp esi, 2
sete bl
jmp 0x402faa
mov edi, dword [esp + 0x14]
push edi
push 0xffffffffffffffea
call fcn.004061ae
mov esi, dword [esp + 0x18]
inc dword [0x477e34]
push ebp
push ebp
push esi
push dword [esp + 0x50]
call fcn.00403400
dec dword [0x477e34]
cmp dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x18], eax
jne 0x401ab7
cmp dword [esp + 0x4c], 0xffffffff
je 0x401ac5
lea eax, [esp + 0x48]
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 eax, dword [esp + 0x18]
test eax, eax
jns case.0x401613.20
cmp eax, 0xfffffffe
jne 0x401aee
push 0xffffffffffffffe9
push ebx
call fcn.00406321
push edi
push ebx
call sub.KERNEL32.dll_lstrcatW
jmp 0x401af6
push 0xffffffffffffffee
push ebx
call fcn.00406321
push 0x200010
push ebx
call fcn.00406fda
jmp 0x401628
push ebp
call fcn.00403158
push dword [esp + 0x40]
push eax
call fcn.00406c0a
jmp case.0x401613.20
push 0x31
call fcn.00403158
push dword [esp + 0x3c]
push eax
call fcn.00406fda
test eax, eax
je 0x401778
cmp eax, dword [esp + 0x44]
je 0x401c8c
cmp eax, dword [esp + 0x4c]
jne case.0x401613.20
mov eax, dword [esp + 0x50]
jmp 0x402fb2
push 0xfffffffffffffff0
jmp 0x401b07
push 1
call fcn.00403158
push eax
call sub.KERNEL32.dll_lstrlenW
push eax
jmp 0x401723
push 2
call fcn.0040311c
push 3
mov ebx, eax
mov esi, edx
call fcn.0040311c
pop ecx
pop ecx
push 1
mov ebp, eax
call fcn.00403158
push eax
mov dword [esp + 0x1c], eax
call sub.KERNEL32.dll_lstrlenW
xor ecx, ecx
test esi, esi
mov word [edi], cx
cmove ebx, eax
test ebx, ebx
je case.0x401613.20
test ebp, ebp
jns 0x401bad
add ebp, eax
js case.0x401613.20
cmp ebp, eax
cmovg ebp, eax
mov eax, dword [esp + 0x18]
lea eax, [eax + ebp*2]
push eax
push edi
call fcn.0040704c
test ebx, ebx
jns 0x401bcc
push edi
call sub.KERNEL32.dll_lstrlenW
add ebx, eax
xor eax, eax
test ebx, ebx
cmovns eax, ebx
mov ebx, dword [esp + 0x10]
cmp eax, 0x2000
jge 0x402faa
xor ecx, ecx
mov word [edi + eax*2], cx
jmp 0x402faa
push 0x20
call fcn.00403158
push 0x31
mov esi, eax
call fcn.00403158
push eax
push esi
cmp dword [esp + 0x54], ebp
jne 0x401c0d
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x401c13
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x401c8c
mov eax, dword [esp + 0x44]
jmp 0x402fb2
xor ebx, ebx
inc ebx
push ebx
call fcn.00403158
push 0x2000
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x401c4e
cmp dword [esp + 0x44], ebp
je 0x401c55
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x401c55
xor eax, eax
mov word [edi], ax
jmp 0x401c59
mov ebx, dword [esp + 0x10]
xor eax, eax
mov word [edi + 0x3ffe], ax
jmp 0x402faa
mov esi, dword [esp + 0x50]
push ebp
call fcn.0040311c
push 1
mov edi, eax
call fcn.0040311c
pop ecx
pop ecx
test esi, esi
jne 0x401c88
cmp edi, eax
jl 0x401c8c
jle 0x401c17
jmp 0x401c97
cmp edi, eax
jae 0x401c95
mov eax, dword [esp + 0x48]
jmp 0x402fb2
jbe 0x401c17
mov eax, dword [esp + 0x4c]
jmp 0x402fb2
xor ebx, ebx
inc ebx
push ebx
call fcn.0040311c
push 2
mov esi, eax
call fcn.0040311c
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [esp + 0x48]
cmp eax, 0xd
ja case.default.0x401cbf
jmp dword [eax*4 + 0x4030e4]
add esi, ecx
jmp case.default.0x401cbf
sub esi, ecx
jmp case.default.0x401cbf
imul esi, ecx
jmp case.default.0x401cbf
test ecx, ecx
je 0x401ce0
mov eax, esi
cdq
idiv ecx
mov esi, eax
jmp 0x401ce2
mov esi, ebp
xor ebx, ebx
test ecx, ecx
sete bl
jmp 0x401d33
or esi, ecx
jmp case.default.0x401cbf
and esi, ecx
jmp case.default.0x401cbf
xor esi, ecx
jmp case.default.0x401cbf
xor eax, eax
test esi, esi
sete al
mov esi, eax
jmp case.default.0x401cbf
test esi, esi
je 0x401d12
mov esi, ebx
jmp case.default.0x401cbf
mov esi, ebp
jmp case.default.0x401cbf
test esi, esi
je 0x401d0a
test ecx, ecx
je 0x401d0a
jmp 0x401d06
test ecx, ecx
je 0x401ce0
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp 0x401ce2
shl esi, cl
jmp case.default.0x401cbf
sar esi, cl
jmp case.default.0x401cbf
shr esi, cl
mov ebx, dword [esp + 0x10]
push esi
push edi
call fcn.00406b10
jmp 0x402faa
push 1
call fcn.00403158
push 2
mov esi, eax
call fcn.0040311c
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp case.0x401613.20
mov ecx, dword [esp + 0x44]
mov esi, dword [0x40b100]
test ecx, ecx
je 0x401dc2
dec ecx
test esi, esi
je 0x401daf
mov esi, dword [esi]
test ecx, ecx
jne 0x401d6e
test esi, esi
je 0x401daf
add esi, 4
mov ebx, 0x40b108
push esi
push ebx
call fcn.0040704c
mov eax, dword [0x40b100]
add eax, 4
push eax
push esi
call fcn.0040704c
mov eax, dword [0x40b100]
push ebx
add eax, 4
push eax
call fcn.0040704c
jmp case.0x401613.20
push 0x200010
push 0xffffffffffffffe8
push ebp
call fcn.00406321
push eax
jmp 0x401afc
test eax, eax
je 0x401deb
test esi, esi
je 0x401778
lea eax, [esi + 4]
push eax
push edi
call fcn.0040704c
mov eax, dword [esi]
push esi
mov dword [0x40b100], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x401613.20
push 0x4004
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [esp + 0x3c]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.00406321
mov eax, dword [0x40b100]
mov dword [esi], eax
mov dword [0x40b100], esi
jmp case.0x401613.20
push 3
call fcn.0040311c
mov esi, eax
push 4
mov dword [esp + 0x1c], esi
call fcn.0040311c
mov ebx, eax
mov eax, dword [esp + 0x58]
pop ecx
pop ecx
test al, 1
je 0x401e4a
push 0x33
call fcn.00403158
mov esi, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], esi
test al, 2
je 0x401e57
push 0x44
call fcn.00403158
mov ebx, eax
cmp dword [esp + 0x38], 0x22
push 1
jne 0x401eaf
call fcn.0040311c
push 2
mov dword [esp + 0x1c], eax
call fcn.0040311c
pop ecx
pop ecx
mov ecx, dword [esp + 0x50]
sar ecx, 2
test ecx, ecx
je 0x401ea0
lea edx, [esp + 0x1c]
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 + 0x1c]
inc ebx
mov dword [esp + 0x10], ebx
jmp 0x401ede
push ebx
push esi
push eax
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x401eda
call fcn.00403158
push 0x12
mov esi, eax
call fcn.00403158
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 + 0x1c], eax
cmp dword [esp + 0x3c], ebp
jl case.0x401613.20
jmp 0x401b62
push ebp
call fcn.0040311c
pop ecx
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401c17
mov eax, dword [esp + 0x40]
jmp 0x402fb2
push 2
call fcn.0040311c
push 1
mov esi, eax
call fcn.0040311c
pop ecx
pop ecx
push esi
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x401b62
mov esi, dword [0x477d88]
push ebp
add esi, eax
call fcn.0040311c
pop ecx
push esi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp case.0x401613.20
test dword [esp + 0x48], 0x100
je 0x401f5d
push 2
call fcn.0040311c
pop ecx
jmp 0x401f68
push dword [esp + 0x44]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, eax
mov eax, dword [esp + 0x48]
mov ecx, eax
mov ebx, eax
and ecx, 4
shr ebx, 0x1e
mov dword [esp + 0x1c], ecx
mov esi, eax
mov ecx, eax
and esi, 3
shr ecx, 0x1f
and ebx, 1
mov dword [esp + 0x18], ecx
test eax, 0x10000
je 0x401f9d
push 0x11
call fcn.00403158
jmp 0x401fa2
movzx eax, word [esp + 0x40]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x54]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x48]
and eax, 0xfef0
push eax
mov eax, dword [esp + 0x64]
imul eax, ebx
push eax
mov eax, dword [esp + 0x64]
imul eax, dword [esp + 0x20]
push eax
xor eax, eax
cmp dword [esp + 0x28], eax
push esi
push dword [esp + 0x24]
cmovne eax, dword [0x46fd34]
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 0x402006
test esi, esi
jne 0x402006
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0x3c], 0
jl case.0x401613.20
push ebx
jmp 0x401723
push edx
call dword [sym.imp.USER32.dll_GetDC]
push 2
mov edi, eax
call fcn.0040311c
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 [0x41f110], eax
mov eax, dword [esp + 0x20]
push edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 3
call fcn.0040311c
pop ecx
mov ecx, dword [esp + 0x4c]
push dword [esp + 0x40]
mov dword [0x41f120], eax
mov al, cl
and al, 1
mov byte [0x41f127], 1
mov byte [0x41f124], al
mov al, cl
and al, 2
and cl, 4
push 0x41f12c
mov byte [0x41f125], al
mov byte [0x41f126], cl
call fcn.00406321
push 0x41f110
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov ebp, dword [esp + 0x14]
push eax
push ebp
jmp 0x401724
push ebp
call fcn.0040311c
push 1
mov esi, eax
call fcn.0040311c
pop ecx
pop ecx
push eax
push esi
cmp dword [esp + 0x50], ebp
je 0x401753
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x401613.20
push ebp
call fcn.00403158
push 0x31
mov ebx, eax
call fcn.00403158
push 0x22
mov esi, eax
call fcn.00403158
push 0x15
mov edi, eax
call fcn.00403158
push 0x40f108
push 0xffffffffffffffec
call fcn.004061ae
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x5c], eax
xor eax, eax
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x70], ecx
cmp word [ebx], bp
mov dword [esp + 0x64], esi
cmovne eax, ebx
mov dword [esp + 0x60], eax
xor eax, eax
cmp word [edi], bp
mov dword [esp + 0x6c], 0x4d0000
cmovne eax, edi
mov dword [esp + 0x68], eax
lea eax, [esp + 0x54]
push eax
call fcn.00406f0d
test eax, eax
je 0x401778
test byte [esp + 0x58], 0x40
je case.0x401613.20
push dword [esp + 0x8c]
call fcn.00406a05
push dword [esp + 0x8c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x401613.20
push ebp
call fcn.00403158
mov esi, eax
push esi
push 0xffffffffffffffeb
call fcn.004061ae
push esi
call fcn.00406bc7
mov ebx, dword [esp + 0x10]
mov esi, eax
test esi, esi
je 0x401778
cmp dword [esp + 0x44], ebp
je 0x4021c2
push esi
call fcn.00406a05
cmp dword [esp + 0x40], ebp
jl 0x4021b6
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.00406b10
jmp 0x4021c2
xor ecx, ecx
inc ecx
test eax, eax
cmovne ebx, ecx
mov dword [esp + 0x10], ebx
push esi
jmp 0x402168
push 2
call fcn.00403158
push eax
call fcn.00406ac0
mov ebx, eax
test ebx, ebx
je 0x4021e9
push dword [ebx + 0x14]
push esi
call fcn.00406b10
push dword [ebx + 0x18]
jmp 0x401723
xor eax, eax
mov word [edi], ax
mov word [esi], ax
jmp 0x401778
push 0xffffffffffffffee
call fcn.00403158
lea ecx, [esp + 0x54]
mov dword [esp + 0x30], eax
push ecx
push eax
push 0xb
call fcn.00406dff
mov esi, eax
mov ecx, eax
call dword [0x4092c8]
call esi
mov ecx, eax
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x18], ecx
mov word [edi], ax
xor edx, edx
mov eax, dword [esp + 0x1c]
inc ebx
mov word [eax], dx
test ecx, ecx
je 0x402faa
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x24], eax
test eax, eax
je 0x402faa
push 0xc
call fcn.00406dff
push 0xd
mov esi, eax
call fcn.00406dff
push dword [esp + 0x24]
mov ecx, esi
mov dword [esp + 0x24], eax
push dword [esp + 0x1c]
push ebp
push dword [esp + 0x3c]
call dword [0x4092c8]
call esi
test eax, eax
je 0x4022cb
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x18]
mov ecx, esi
push eax
push 0x409318
push dword [esp + 0x30]
call dword [0x4092c8]
call esi
test eax, eax
je 0x4022cb
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x48]
push dword [ecx + eax*4 + 8]
push edi
call fcn.00406b10
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
push dword [eax + ecx*4 + 0xc]
push dword [esp + 0x20]
call fcn.00406b10
mov ebx, ebp
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x402faa
xor esi, esi
inc esi
mov ebx, esi
cmp dword [0x477da0], ebp
jl 0x4023d0
push 0xfffffffffffffff0
call fcn.00403158
mov edi, eax
push esi
mov dword [esp + 0x1c], edi
call fcn.00403158
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x4c], ebp
je 0x402319
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
jne 0x40232d
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 0x4023c7
push dword [esp + 0x1c]
push edi
call fcn.0040672e
mov ecx, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x402397
mov ebx, ebp
cmp dword [esp + 0x44], ebx
je 0x40236d
push 0x40f108
push dword [esp + 0x48]
call fcn.004061ae
mov ebp, dword [esp + 0x14]
mov ecx, ebp
call dword [0x4092c8]
call ebp
test eax, eax
je 0x4023a2
mov ebx, esi
jmp 0x4023a2
mov eax, dword [esp + 0x20]
push section..data
push 0x40b100
push section..ndata
push 0x2000
push eax
call dword [0x4092c8]
mov ebp, dword [esp + 0x28]
call ebp
add esp, 0x14
jmp 0x4023a2
push dword [esp + 0x1c]
push 0xfffffffffffffff7
call fcn.004061ae
cmp dword [esp + 0x48], 0
jne 0x402faa
push edi
call fcn.00404018
test eax, eax
je 0x402faa
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x402faa
push 0x40f108
push 0xfffffffffffffff6
jmp 0x4023d7
push 0x40f108
push 0xffffffffffffffe7
call fcn.004061ae
jmp 0x402faa
push 0xfffffffffffffff0
call fcn.00403158
push 0xffffffffffffffdf
mov dword [esp + 0x58], eax
call fcn.00403158
mov ebx, eax
push 2
mov dword [esp + 0x1c], ebx
call fcn.00403158
push 0xffffffffffffffcd
mov dword [esp + 0x38], eax
call fcn.00403158
push 0x45
mov dword [esp + 0x24], eax
call fcn.00403158
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
mov eax, ecx
and eax, 0xfff
mov dword [esp + 0x2c], eax
mov eax, ecx
and eax, 0x8000
mov dword [esp + 0x1c], eax
mov eax, ecx
sar eax, 0xc
and eax, 7
sar ecx, 0x10
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], ecx
call fcn.0040732c
test eax, eax
jne 0x402458
push 0x21
call fcn.00403158
lea eax, [esp + 0x10]
xor edi, edi
push eax
push 0x409b44
inc edi
push edi
push ebp
push 0x409b64
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
js 0x4025aa
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0x409b54
push eax
mov esi, dword [eax]
mov esi, dword [esi]
mov ecx, esi
call dword [0x4092c8]
call esi
mov ebx, eax
test ebx, ebx
js 0x402596
mov eax, dword [esp + 0x10]
push dword [esp + 0x18]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x4092c8]
call esi
mov ebx, eax
cmp dword [esp + 0x1c], ebp
jne 0x4024dc
mov eax, dword [esp + 0x10]
push 0x4d0000
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x4092c8]
call esi
mov edx, dword [esp + 0x24]
test edx, edx
je 0x4024f9
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x3c]
mov ecx, esi
call dword [0x4092c8]
call esi
mov eax, dword [esp + 0x10]
push dword [esp + 0x30]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x34]
mov ecx, esi
call dword [0x4092c8]
call esi
mov edx, dword [esp + 0x20]
cmp word [edx], bp
je 0x402533
mov eax, dword [esp + 0x10]
push dword [esp + 0x2c]
push edx
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x44]
mov ecx, esi
call dword [0x4092c8]
call esi
mov eax, dword [esp + 0x10]
push dword [esp + 0x34]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x2c]
mov ecx, esi
call dword [0x4092c8]
call esi
mov eax, dword [esp + 0x10]
push dword [esp + 0x28]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x4092c8]
call esi
test ebx, ebx
js 0x402582
mov eax, dword [esp + 0x14]
push edi
push dword [esp + 0x58]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x4092c8]
call esi
mov ebx, eax
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4092c8]
call esi
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4092c8]
call esi
mov eax, ebx
sar eax, 0x1f
and eax, 0xfffffffc
push 0x40f108
sub eax, 0xc
push eax
call fcn.004061ae
shr ebx, 0x1f
jmp 0x402faa
push ebp
call fcn.00403158
push 0x11
mov esi, eax
call fcn.00403158
push 0x23
mov edi, eax
call fcn.00403158
push esi
mov ebx, eax
call fcn.00406ac0
test eax, eax
jne 0x4025f9
push ebp
push 0xfffffffffffffff9
call fcn.004061ae
jmp 0x401778
mov eax, dword [esp + 0x20]
push esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 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 + 0x4c]
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], edi
mov dword [esp + 0x76], ebx
mov word [esp + 0x6c], ax
call fcn.004061ae
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je case.0x401613.20
jmp 0x4025ec
cmp ecx, 0xbadf00d
jne 0x401daf
inc dword [0x477e14]
jmp case.0x401613.20
mov esi, ebp
mov edi, ebp
test ecx, ecx
je 0x402680
push ebp
call fcn.00403158
mov ebp, eax
mov eax, dword [esp + 0x40]
test eax, eax
je 0x40268d
push 0x11
call fcn.00403158
mov esi, eax
cmp dword [esp + 0x4c], edi
je 0x40269c
push 0x22
call fcn.00403158
mov edi, eax
push 0xffffffffffffffcd
call fcn.00403158
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x401770
xor ebx, ebx
mov dword [esp + 0x54], 0xa
inc ebx
push ebx
call fcn.00403158
push 0x12
mov edi, eax
call fcn.00403158
push 0xffffffffffffffdd
mov esi, eax
call fcn.00403158
mov ebp, dword [esp + 0x14]
push eax
push 0x1fff
push ebp
lea eax, [esp + 0x60]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xa
pop eax
cmp word [ebp], ax
jne case.0x401613.20
xor eax, eax
mov word [ebp], ax
jmp 0x402faa
xor edi, edi
inc edi
cmp dword [esp + 0x4c], ebp
jne 0x402735
push 2
call fcn.004031db
mov esi, eax
test esi, esi
je 0x402750
push 0x33
call fcn.00403158
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402750
push 0x22
call fcn.00403158
mov ecx, dword [esp + 0x4c]
sar ecx, 1
push ecx
mov ecx, dword [esp + 0x28]
push eax
push ecx
call fcn.00403196
mov edi, eax
xor ebx, ebx
test edi, edi
setne bl
jmp 0x402faa
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x50]
push 2
mov dword [esp + 0x1c], eax
call fcn.00403158
push 0x11
mov dword [esp + 0x18], eax
call fcn.00403158
lea ecx, [esp + 0x28]
xor edi, edi
push ecx
push 0x100022
push eax
push dword [esp + 0x60]
inc edi
mov ebx, edi
call fcn.0040313d
push eax
call fcn.00406782
mov esi, dword [esp + 0x28]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
mov dword [esp + 0x54], esi
test esi, esi
je 0x402faa
mov eax, dword [esp + 0x34]
cmp eax, edi
jne 0x4027d6
push 0x23
call fcn.00403158
push 0x413108
call sub.KERNEL32.dll_lstrlenW
lea esi, [eax*2 + 2]
jmp 0x402809
push 4
pop esi
cmp eax, esi
jne 0x4027ec
push 3
call fcn.0040311c
pop ecx
mov dword [0x413108], eax
jmp 0x402809
mov esi, ebp
cmp eax, 3
jne 0x402809
push 0xc000
push 0x413108
push ebp
push dword [esp + 0x54]
call fcn.00403400
mov esi, eax
push esi
mov esi, dword [esp + 0x58]
push 0x413108
push dword [esp + 0x20]
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 0x402faa
push 0x20019
call fcn.004031db
push 0x33
mov esi, eax
call fcn.00403158
xor ecx, ecx
mov word [edi], cx
test esi, esi
je 0x401778
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], 0x4000
push ecx
push edi
lea ecx, [esp + 0x24]
push ecx
push ebp
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x4028b1
cmp dword [esp + 0x1c], 4
je 0x40289b
cmp dword [esp + 0x1c], ecx
je 0x40288c
cmp dword [esp + 0x1c], 2
jne 0x4028b1
mov ebx, dword [esp + 0x4c]
xor eax, eax
mov word [edi + 0x3ffe], ax
jmp 0x402829
push dword [edi]
xor ebx, ebx
cmp dword [esp + 0x50], ebx
push edi
sete bl
call fcn.00406b10
jmp 0x402829
xor eax, eax
mov ebx, ecx
mov word [edi], ax
jmp 0x402829
push 0x20019
call fcn.004031db
push 3
mov esi, eax
call fcn.0040311c
mov ebx, dword [esp + 0x14]
pop ecx
xor ecx, ecx
mov word [edi], cx
test esi, esi
je 0x401778
mov ecx, 0x1fff
mov dword [esp + 0x54], ecx
cmp dword [esp + 0x4c], ebp
je 0x4028fd
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x40291b
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0x64]
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 + 0x3ffe], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x401613.20
push edi
call fcn.00407142
test eax, eax
je case.0x401613.20
push eax
jmp 0x402168
push 0xffffffffffffffed
call fcn.00403158
push dword [esp + 0x44]
push dword [esp + 0x44]
push eax
call fcn.00406e34
cmp eax, 0xffffffff
jne 0x401b62
xor eax, eax
mov word [edi], ax
jmp 0x401778
mov ecx, dword [esp + 0x38]
xor eax, eax
mov edx, dword [esp + 0x44]
cmp ecx, 0x39
mov dword [esp + 0x54], edx
mov esi, 0x40f108
sete al
xor ebx, ebx
inc ebx
mov dword [esp + 0x14], eax
test edx, edx
je 0x4029a6
push ebx
call fcn.0040311c
mov esi, dword [esp + 0x18]
xor esi, ebx
mov word [0x40f108], ax
pop ecx
inc esi
jmp 0x4029e1
cmp ecx, 0x39
jne 0x4029d0
push 0x21
call fcn.00403158
push 0x2000
push esi
push 0x413108
call fcn.00406948
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
jmp 0x4029e1
push 0x11
call fcn.00403158
push eax
call sub.KERNEL32.dll_lstrlenW
mov esi, eax
add esi, esi
cmp word [edi], bp
je 0x402faa
push edi
call fcn.00407142
mov edi, eax
mov eax, dword [esp + 0x14]
or eax, dword [esp + 0x54]
jne 0x402a11
cmp dword [esp + 0x48], ebp
je 0x402a11
push edi
push edi
call fcn.00406963
test eax, eax
js 0x402faa
push esi
push 0x40f108
push edi
call fcn.00406f25
test eax, eax
jne case.0x401613.20
jmp 0x402faa
push 2
pop ecx
push ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ecx
call fcn.0040311c
xor ebx, ebx
inc ebx
pop ecx
cmp eax, ebx
jl case.0x401613.20
mov ecx, 0x1fff
cmp eax, ecx
cmovg eax, ecx
mov dword [esp + 0x18], eax
cmp word [edi], bp
je 0x402bb6
push edi
mov dword [esp + 0x28], ebp
call fcn.00407142
mov ecx, eax
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x18], ebp
jbe 0x402bb6
mov dword [esp + 0x28], 0xd
mov edi, ebp
cmp dword [esp + 0x38], 0x3a
jne 0x402b46
push ebp
lea eax, [esp + 0x34]
push eax
push 2
pop eax
sub eax, dword [esp + 0x50]
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402bb6
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x402bb6
movzx eax, byte [esp + 0x10]
mov word [esp + 0x2c], ax
cmp dword [esp + 0x48], ebp
jne 0x402bf8
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 0x402b70
mov ecx, dword [esp + 0x20]
mov edx, ecx
neg edx
sub dword [esp + 0x30], 1
mov eax, 0xfffd
mov word [esp + 0x2c], ax
je 0x402b79
push ebx
dec ecx
inc edx
push ebp
push edx
push dword [esp + 0x28]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x64], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x38]
lea eax, [esp + 0x1c]
push eax
push 8
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x54]
test eax, eax
je 0x402af8
jmp 0x402b70
cmp dword [esp + 0x48], ebp
jne 0x402b5f
test edi, edi
jne 0x402b5f
push ebp
push ecx
call fcn.00406963
test eax, eax
js 0x402bb6
mov ecx, dword [esp + 0x1c]
push 2
lea eax, [esp + 0x30]
push eax
push ecx
call fcn.00406e61
test eax, eax
je 0x402bb6
mov ecx, dword [esp + 0x20]
mov ax, word [esp + 0x2c]
cmp dword [esp + 0x48], ebp
jne 0x402bf8
push 0xd
pop edx
cmp word [esp + 0x24], dx
push 0xa
pop edx
je 0x402bc9
cmp word [esp + 0x24], dx
je 0x402bc9
mov word [esi + edi*2], ax
inc edi
movzx eax, ax
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], eax
test ax, ax
je 0x402bb6
mov ecx, dword [esp + 0x1c]
cmp edi, dword [esp + 0x18]
jl 0x402a82
mov eax, dword [esp + 0x14]
xor ecx, ecx
xor ebx, ebx
test eax, eax
mov word [esi + eax*2], cx
jmp 0x401a75
cmp word [esp + 0x24], ax
je 0x402be7
cmp ax, word [esp + 0x28]
je 0x402bdc
cmp ax, dx
jne 0x402be7
mov word [esi + edi*2], ax
inc edi
mov dword [esp + 0x14], edi
jmp 0x402bb6
push ebx
push ebp
neg ecx
push ecx
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x402bb6
movzx eax, ax
push eax
push esi
call fcn.00406b10
jmp 0x402fb0
cmp word [edi], bp
je case.0x401613.20
push 2
call fcn.0040311c
pop ecx
push dword [esp + 0x48]
push ebp
push eax
push edi
call fcn.00407142
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x40], ebp
jl case.0x401613.20
push eax
push esi
jmp 0x401724
push edi
call fcn.00407142
test eax, eax
je case.0x401613.20
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x401613.20
push esi
call fcn.00407142
test eax, eax
je 0x40192d
lea ecx, [esp + 0x90]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40192d
lea eax, [esp + 0xbc]
push eax
push edi
jmp 0x401da5
push 2
call fcn.00403158
lea ecx, [esp + 0x90]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x402cae
xor eax, eax
mov word [esi], ax
jmp 0x402962
push eax
push esi
call fcn.00406b10
jmp 0x402c7b
push 0xfffffffffffffff0
mov edi, 0xfffffd66
call fcn.00403158
mov ebx, eax
push ebx
mov dword [esp + 0x1c], ebx
call fcn.0040732c
test eax, eax
jne 0x402cda
push 0xffffffffffffffed
call fcn.00403158
push ebx
call fcn.004070b6
push 2
push 0x40000000
push ebx
call fcn.00406e34
mov esi, eax
mov dword [esp + 0x54], esi
cmp esi, 0xffffffff
je 0x402db6
mov eax, dword [esp + 0x40]
mov dword [esp + 0x28], eax
cmp dword [esp + 0x44], ebp
je 0x402da4
mov edi, dword [0x477d48]
push edi
push 0x40
mov dword [esp + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x402d9c
push ebp
call fcn.0040324b
push edi
push ebx
call fcn.00403235
push dword [esp + 0x44]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [esp + 0x28], edi
test edi, edi
je 0x402d85
push dword [esp + 0x44]
push edi
push ebp
push dword [esp + 0x4c]
call fcn.00403400
cmp byte [edi], 0
je 0x402d7b
mov esi, dword [edi]
mov eax, dword [edi + 4]
add edi, 8
push esi
push edi
add eax, ebx
push eax
call fcn.00406ba5
add edi, esi
cmp byte [edi], 0
jne 0x402d5e
mov esi, dword [esp + 0x54]
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x34]
push ebx
push esi
call fcn.00406f25
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
or eax, 0xffffffff
jmp 0x402da0
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x18]
push ebp
push ebp
push esi
push eax
call fcn.00403400
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffff3
pop esi
test edi, edi
jns 0x402dcc
push 0xffffffffffffffef
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
inc ebx
jmp 0x402dd0
mov ebx, dword [esp + 0x10]
push 0x40f108
push esi
jmp 0x4023d7
push ebp
call fcn.0040311c
mov ebx, eax
pop ecx
cmp ebx, dword [0x477d6c]
jae 0x401778
mov ecx, dword [esp + 0x44]
imul edi, ebx, 0x4018
add edi, dword [0x477d68]
test ecx, ecx
js 0x402e17
mov eax, dword [edi + ecx*4]
jne 0x402c35
lea eax, [edi + 0x18]
push eax
push esi
jmp 0x401da5
or eax, 0xffffffff
sub eax, ecx
mov dword [esp + 0x44], eax
je 0x402e32
push 1
call fcn.0040311c
pop ecx
mov ecx, eax
mov dword [esp + 0x40], ecx
jmp 0x402e4a
push dword [esp + 0x4c]
lea eax, [edi + 0x18]
push eax
call fcn.00406321
or dword [edi + 8], 0x100
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov dword [edi + eax*4], ecx
cmp dword [esp + 0x48], ebp
je case.0x401613.20
push ebx
call fcn.00401243
jmp case.0x401613.20
push ebp
call fcn.0040311c
mov edx, eax
pop ecx
cmp edx, 0x20
jae 0x401778
cmp dword [esp + 0x48], ebp
je 0x402ea1
cmp dword [esp + 0x44], ebp
je 0x402e96
push edx
call fcn.004012b2
push ebp
push ebp
call fcn.004012ff
jmp case.0x401613.20
push ebp
call fcn.004011c2
jmp 0x402c35
mov eax, dword [0x477d50]
cmp dword [esp + 0x44], ebp
je 0x402ebc
mov ecx, dword [esp + 0x40]
mov dword [eax + edx*4 + 0x94], ecx
jmp case.0x401613.20
push dword [eax + edx*4 + 0x94]
push esi
call fcn.00406321
jmp case.0x401613.20
mov eax, dword [esp + 0x48]
sub eax, ebp
je 0x402f20
sub eax, 1
jne case.0x401613.20
push 2
call fcn.0040311c
push 4
mov esi, eax
call fcn.0040311c
pop ecx
movzx edx, al
pop ecx
shr eax, 0x18
mov ecx, 0x477e00
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.00406ba5
push dword [esp + 0x18]
push dword [esp + 0x20]
jmp 0x401724
push 5
call fcn.00406dff
push 0x22
mov edi, eax
call fcn.00403158
test edi, edi
je 0x402f77
lea ecx, [esp + 0x54]
push ecx
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
test eax, eax
js 0x402f77
lea eax, [esp + 0x18]
mov ecx, edi
push eax
push ebp
push dword [esp + 0x50]
lea eax, [esp + 0x60]
push eax
call dword [0x4092c8]
call edi
test eax, eax
js 0x402f77
push dword [esp + 0x18]
push esi
call fcn.0040704c
push dword [esp + 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp case.0x401613.20
xor ebx, ebx
inc ebx
xor eax, eax
mov word [esi], ax
jmp 0x402faa
mov eax, dword [0x43cd58]
push ebp
and eax, ecx
push eax
push 0xb
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esp + 0x3c], ebp
je case.0x401613.20
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 [0x477e08], ebx
xor eax, eax
mov ecx, dword [esp + 0x2e0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00408581
add esp, 0x2d4
ret 4