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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
mov eax, dword [0x429d24]
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 7
pop ecx
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x28]
mov ecx, edx
shl ecx, 0xb
mov ebx, section..ndata
add ecx, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x24]
mov edi, eax
shl edi, 0xb
mov dword [0x40a0c0], ecx
lea ecx, [esi - 2]
add edi, ebx
cmp ecx, 0x43
ja case.0x4015f4.65
jmp dword [ecx*4 + 0x402ccd]
push 0
push eax
call fcn.00404aef
mov eax, 0x7fffffff
jmp case.0x4015f4.2
inc dword [0x428cf4]
cmp dword [ebp - 0xc], 0
je 0x401603
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x401603
push eax
call fcn.0040137c
dec eax
push 0
push eax
call fcn.00401398
jmp case.0x4015f4.2
push 0
push eax
call fcn.00404aef
jmp case.0x4015f4.65
xor ecx, ecx
call fcn.00401443
cmp eax, 1
mov dword [ebp - 0x44], edx
jg 0x401656
xor eax, eax
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x4015f4.65
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x4015f4.65
shl eax, 2
cmp dword [ebp - 0x1c], 0
jne 0x40169f
mov ecx, dword [eax + 0x429de0]
mov dword [eax + 0x429da0], ecx
xor ecx, ecx
inc ecx
call fcn.00401443
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x44], edx
mov dword [ecx*4 + 0x429de0], eax
jmp case.0x4015f4.65
mov ecx, dword [eax + 0x429da0]
mov dword [eax + 0x429de0], ecx
jmp case.0x4015f4.65
mov edx, dword [ebp - 0x1c]
lea edx, [edx*4 + 0x429de0]
mov ecx, dword [edx]
xor eax, eax
test ecx, ecx
sete al
and ecx, dword [ebp - 0x18]
mov dword [edx], ecx
mov eax, dword [ebp + eax*4 - 0x24]
jmp case.0x4015f4.2
push dword [edx*4 + 0x429de0]
push edi
call fcn.00405be3
jmp case.0x4015f4.65
mov ecx, dword [0x428d00]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test ecx, ecx
je 0x4016fa
push edx
push ecx
call esi
mov eax, dword [ebp - 0x24]
mov ecx, dword [0x428cec]
test ecx, ecx
je case.0x4015f4.65
push eax
push ecx
call esi
jmp case.0x4015f4.65
push 0xfffffffffffffff0
pop esi
call fcn.00401460
push dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne case.0x4015f4.65
mov dword [ebp - 4], 1
jmp case.0x4015f4.65
push 0xfffffffffffffff0
pop esi
call fcn.00401460
mov ebx, eax
push ebx
call fcn.0040590e
mov esi, eax
test esi, esi
je 0x4017a4
push 0x5c
push esi
call fcn.004058ba
mov esi, eax
movzx edi, word [esi]
xor eax, eax
mov word [esi], ax
test di, di
jne 0x40177b
cmp dword [ebp - 0x1c], 0
je 0x40177b
call fcn.00405eb5
test eax, eax
je 0x40177b
push ebx
call fcn.00405750
jmp 0x401781
push ebx
call fcn.004057d2
test eax, eax
je 0x40179a
cmp eax, 0xb7
jne 0x401797
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x40179a
inc dword [ebp - 4]
mov word [esi], di
inc esi
inc esi
test di, di
jne 0x40174d
cmp dword [ebp - 0x20], 0
je 0x4017d3
push 0xffffffffffffffe6
call fcn.00401432
push ebx
push 0x435000
call fcn.00405c9c
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne case.0x4015f4.65
inc dword [ebp - 4]
jmp case.0x4015f4.65
push 0xfffffffffffffff5
call fcn.00401432
jmp case.0x4015f4.65
xor esi, esi
call fcn.00401460
push eax
call fcn.00405d6f
test eax, eax
je 0x401bbc
mov eax, dword [ebp - 0x20]
jmp case.0x4015f4.2
push 0xffffffffffffffd0
pop esi
call fcn.00401460
push 0xffffffffffffffdf
pop esi
mov edi, eax
call fcn.00401460
push 0x13
pop esi
mov ebx, eax
call fcn.00401460
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x401828
push 0xffffffffffffffe3
jmp 0x4017d5
cmp dword [ebp - 0x1c], 0
je 0x40172b
push edi
call fcn.00405d6f
test eax, eax
je 0x40172b
push ebx
push edi
call fcn.004063e2
push 0xffffffffffffffe4
jmp 0x4017d5
xor esi, esi
call fcn.00401460
mov ebx, dword [ebp - 8]
mov esi, eax
lea eax, [ebp + 8]
push eax
push ebx
mov edi, 0x400
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x401892
mov eax, dword [ebp + 8]
cmp eax, esi
jbe 0x40189e
cmp word [eax], 0
je 0x40189e
push esi
call fcn.00405d6f
test eax, eax
je 0x401892
add eax, 0x2c
push eax
push dword [ebp + 8]
call fcn.00405c9c
jmp 0x40189e
xor eax, eax
mov word [ebx], ax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
jne case.0x4015f4.65
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
jmp case.0x4015f4.65
or esi, 0xffffffff
call fcn.00401460
lea ecx, [ebp + 8]
push ecx
push edi
push 0x400
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne case.0x4015f4.65
xor eax, eax
mov dword [ebp - 4], 1
mov word [edi], ax
jmp case.0x4015f4.65
push 0xffffffffffffffef
pop esi
call fcn.00401460
push eax
push edi
call fcn.00405a3a
jmp 0x401723
push 0x31
pop esi
call fcn.00401460
mov esi, eax
mov eax, dword [ebp - 0x24]
and eax, 7
push esi
mov dword [ebp - 0x30], esi
mov dword [ebp + 8], eax
call fcn.004058d9
push esi
mov esi, 0x40a0c8
test eax, eax
je 0x40192e
push esi
call fcn.00405c9c
jmp 0x401945
push 0x435000
push esi
call fcn.00405c9c
push eax
call fcn.00405f15
push eax
call sub.KERNEL32.dll_lstrcatW
push esi
call fcn.00405cbe
mov edi, 0x40b0c8
cmp dword [ebp + 8], 3
jl 0x401987
push esi
call fcn.00405d6f
xor ecx, ecx
test eax, eax
je 0x401972
lea ecx, [ebp - 0x18]
push ecx
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffd
or eax, 0x80000000
and eax, ecx
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x401993
push esi
call fcn.004059e5
xor eax, eax
cmp dword [ebp + 8], 1
setne al
inc eax
push eax
push 0x40000000
push esi
call fcn.00405a0b
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
jne 0x401a1c
cmp dword [ebp + 8], 0
jne 0x4019fe
push ebx
push edi
call fcn.00405c9c
push esi
push ebx
call fcn.00405c9c
push dword [ebp - 0x10]
push 0x40a8c8
call fcn.00405ff9
push edi
push ebx
call fcn.00405c9c
mov eax, dword [ebp - 0x24]
sar eax, 3
push eax
push 0x40a8c8
call fcn.00405854
sub eax, 4
je 0x401950
dec eax
je 0x401a11
push esi
push 0xfffffffffffffffa
jmp 0x4015fe
push dword [ebp - 0x30]
push 0xffffffffffffffe2
call fcn.00404aef
cmp dword [ebp + 8], 2
jmp 0x401725
inc dword [0x429de8]
jmp 0x402cc1
push dword [ebp - 0x30]
push 0xffffffffffffffea
call fcn.00404aef
inc dword [0x429e14]
xor edi, edi
push edi
push edi
push dword [ebp - 0x34]
push dword [ebp - 0x1c]
call fcn.00402fd5
dec dword [0x429e14]
cmp dword [ebp - 0x18], 0xffffffff
mov ebx, eax
jne 0x401a4f
cmp dword [ebp - 0x14], 0xffffffff
je 0x401a5e
lea eax, [ebp - 0x18]
push eax
push edi
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
jge case.0x4015f4.65
cmp ebx, 0xfffffffe
jne 0x401a87
push 0xffffffffffffffe9
push esi
call fcn.00405ff9
push dword [ebp - 0x30]
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x401a8f
push 0xffffffffffffffee
push esi
call fcn.00405ff9
push 0x200010
push esi
call fcn.00405854
jmp 0x401603
xor esi, esi
call fcn.00401460
push dword [ebp - 0x20]
push eax
call fcn.0040640e
jmp case.0x4015f4.65
push 0x31
pop esi
call fcn.00401460
push dword [ebp - 0x24]
push eax
call fcn.00405854
test eax, eax
je 0x40172b
cmp eax, dword [ebp - 0x1c]
jne 0x401ada
mov eax, dword [ebp - 0x18]
jmp case.0x4015f4.2
cmp eax, dword [ebp - 0x14]
jne case.0x4015f4.65
mov eax, dword [ebp - 0x10]
jmp case.0x4015f4.2
push 0xfffffffffffffff0
pop esi
jmp 0x401aa1
xor esi, esi
inc esi
call fcn.00401460
push eax
call sub.KERNEL32.dll_lstrlenW
push eax
jmp 0x4016d8
push 2
pop ecx
call fcn.00401443
push 3
pop ecx
mov esi, eax
mov dword [ebp - 0x60], edx
call fcn.00401443
mov dword [ebp + 8], esi
xor esi, esi
inc esi
mov ebx, eax
mov dword [ebp - 0x44], edx
call fcn.00401460
push eax
mov dword [ebp - 0x44], eax
call sub.KERNEL32.dll_lstrlenW
xor ecx, ecx
mov word [edi], cx
mov esi, eax
cmp dword [ebp - 0x60], ecx
je 0x401b41
mov esi, dword [ebp + 8]
test esi, esi
je case.0x4015f4.65
test ebx, ebx
jge 0x401b55
add ebx, eax
js case.0x4015f4.65
cmp ebx, eax
jle 0x401b5b
mov ebx, eax
mov eax, dword [ebp - 0x44]
lea eax, [eax + ebx*2]
push eax
push edi
call fcn.00405c9c
test esi, esi
jge 0x401b7d
push edi
call sub.KERNEL32.dll_lstrlenW
add esi, eax
jns 0x401b7d
and dword [ebp + 8], 0
mov esi, dword [ebp + 8]
cmp esi, 0x400
jge case.0x4015f4.65
xor eax, eax
mov word [edi + esi*2], ax
jmp case.0x4015f4.65
push 0x20
pop esi
call fcn.00401460
push 0x31
pop esi
mov edi, eax
call fcn.00401460
cmp dword [ebp - 0x14], 0
push eax
push edi
jne 0x401bc4
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x401ad2
mov eax, dword [ebp - 0x1c]
jmp case.0x4015f4.2
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
jmp 0x401bb4
xor esi, esi
inc esi
call fcn.00401460
push 0x400
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x401bf9
cmp dword [ebp - 0x1c], 0
je 0x401c01
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x401c01
xor eax, eax
mov dword [ebp - 4], esi
mov word [edi], ax
xor eax, eax
mov word [edi + 0x7fe], ax
jmp case.0x4015f4.65
xor ecx, ecx
call fcn.00401443
xor ecx, ecx
inc ecx
mov esi, eax
mov dword [ebp - 0x44], edx
call fcn.00401443
cmp dword [ebp - 0x10], 0
mov dword [ebp - 0x44], edx
jne 0x401c3e
cmp esi, eax
jl 0x401ad2
jle 0x401bbc
mov eax, dword [ebp - 0x14]
jmp case.0x4015f4.2
cmp esi, eax
jb 0x401ad2
jbe 0x401bbc
jmp 0x401c36
xor ecx, ecx
inc ecx
call fcn.00401443
push 2
pop ecx
mov esi, eax
mov dword [ebp - 0x44], edx
call fcn.00401443
mov ecx, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x44], edx
cmp eax, 0xc
ja case.default.0x401c70
jmp dword [eax*4 + 0x402ddd]
add esi, ecx
jmp case.default.0x401c70
sub esi, ecx
jmp case.default.0x401c70
imul ecx, esi
mov esi, ecx
jmp case.default.0x401c70
test ecx, ecx
je 0x401c91
mov eax, esi
cdq
idiv ecx
jmp 0x401caf
xor esi, esi
mov dword [ebp - 4], 1
jmp case.default.0x401c70
or ecx, esi
jmp 0x401c82
and ecx, esi
jmp 0x401c82
xor ecx, esi
jmp 0x401c82
xor eax, eax
test esi, esi
sete al
mov esi, eax
jmp case.default.0x401c70
test esi, esi
jne 0x401cbb
test ecx, ecx
je 0x401cc4
xor esi, esi
inc esi
jmp case.default.0x401c70
test esi, esi
jne 0x401cb7
xor esi, esi
jmp case.default.0x401c70
test ecx, ecx
je 0x401c91
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp case.default.0x401c70
shl esi, cl
jmp case.default.0x401c70
sar esi, cl
push esi
jmp 0x4016d8
xor esi, esi
inc esi
call fcn.00401460
push 2
pop ecx
mov esi, eax
call fcn.00401443
push eax
push esi
push edi
mov dword [ebp - 0x44], edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp case.0x4015f4.65
mov eax, dword [ebp - 0x1c]
mov esi, dword [0x40a0c4]
test eax, eax
je 0x401d64
dec eax
test esi, esi
je 0x401d23
mov esi, dword [esi]
test eax, eax
jne 0x401d14
test esi, esi
jne 0x401d37
push 0x200010
push 0xffffffffffffffe8
push 0
call fcn.00405ff9
push eax
jmp 0x401a95
lea edi, [esi + 4]
push edi
mov esi, 0x40a0c8
push esi
call fcn.00405c9c
mov eax, dword [0x40a0c4]
add eax, 4
push eax
push edi
call fcn.00405c9c
mov eax, dword [0x40a0c4]
push esi
add eax, 4
push eax
jmp 0x402a97
test edx, edx
je 0x401d87
test esi, esi
je 0x40172b
lea eax, [esi + 4]
push eax
push edi
call fcn.00405c9c
mov eax, dword [esi]
mov dword [0x40a0c4], eax
push esi
jmp 0x4021c4
push 0x804
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [ebp - 0x24]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.00405ff9
mov eax, dword [0x40a0c4]
mov dword [esi], eax
mov dword [0x40a0c4], esi
jmp case.0x4015f4.65
push 3
pop ecx
call fcn.00401443
push 4
pop ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x2c], eax
call fcn.00401443
test byte [ebp - 0x10], 1
mov dword [ebp - 0x44], edx
mov dword [ebp + 8], eax
je 0x401de1
push 0x33
pop esi
call fcn.00401460
mov dword [ebp - 0x2c], eax
test byte [ebp - 0x10], 2
je 0x401df2
push 0x44
pop esi
call fcn.00401460
mov dword [ebp + 8], eax
cmp dword [ebp - 0x28], 0x21
jne 0x401e49
xor ecx, ecx
inc ecx
call fcn.00401443
push 2
pop ecx
mov esi, eax
mov dword [ebp - 0x44], edx
call fcn.00401443
mov ecx, dword [ebp - 0x10]
sar ecx, 2
mov dword [ebp - 0x44], edx
test ecx, ecx
je 0x401e39
lea edx, [ebp - 0x34]
push edx
push ecx
push 0
push dword [ebp + 8]
push dword [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 4], eax
jmp 0x401e7e
push dword [ebp + 8]
push dword [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x401e7b
xor esi, esi
inc esi
call fcn.00401460
push 0x12
pop esi
mov ebx, eax
call fcn.00401460
movzx ecx, word [eax]
neg ecx
sbb ecx, ecx
and ecx, eax
movzx eax, word [ebx]
neg eax
push ecx
sbb eax, eax
and eax, ebx
push eax
push dword [ebp + 8]
push dword [ebp - 0x2c]
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x24], 0
jl case.0x4015f4.65
push dword [ebp - 0x34]
jmp 0x4016d8
xor ecx, ecx
call fcn.00401443
push eax
mov dword [ebp - 0x44], edx
call dword [sym.imp.USER32.dll_IsWindow]
jmp 0x4017ec
push 2
pop ecx
call fcn.00401443
xor ecx, ecx
inc ecx
mov esi, eax
mov dword [ebp - 0x44], edx
call fcn.00401443
push esi
push eax
mov dword [ebp - 0x44], edx
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x401afe
mov eax, dword [0x429d68]
xor ecx, ecx
lea esi, [eax + edx]
call fcn.00401443
push esi
push 0xffffffffffffffeb
push eax
mov dword [ebp - 0x44], edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp case.0x4015f4.65
push edx
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
lea eax, [ebp - 0x50]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x44]
imul eax, dword [ebp - 0x1c]
push 0x10
push eax
mov eax, dword [ebp - 0x48]
imul eax, dword [ebp - 0x1c]
push eax
xor ebx, ebx
push ebx
xor esi, esi
call fcn.00401460
push eax
push ebx
call dword [sym.imp.USER32.dll_LoadImageW]
push eax
push ebx
push 0x172
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
je case.0x4015f4.65
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp case.0x4015f4.65
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_GetDC]
push 2
pop ecx
mov esi, eax
call fcn.00401443
push 0x48
push 0x5a
push esi
mov ebx, eax
mov dword [ebp - 0x44], edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MulDiv]
push esi
push dword [ebp - 0xc]
neg eax
mov dword [0x40c8c8], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 3
pop ecx
call fcn.00401443
push dword [ebp - 0x20]
mov dword [0x40c8d8], eax
mov al, byte [ebp - 0x14]
mov cl, al
and cl, 1
mov byte [0x40c8dc], cl
mov cl, al
and cl, 2
and al, 4
push 0x40c8e4
mov dword [ebp - 0x44], edx
mov byte [0x40c8dd], cl
mov byte [0x40c8de], al
mov byte [0x40c8df], 1
call fcn.00405ff9
push 0x40c8c8
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
jmp 0x401afe
xor ecx, ecx
call fcn.00401443
xor ecx, ecx
inc ecx
mov esi, eax
mov dword [ebp - 0x44], edx
call fcn.00401443
cmp dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x44], edx
push esi
jne 0x402003
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x4015f4.65
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x4015f4.65
xor esi, esi
call fcn.00401460
push 0x31
pop esi
mov edi, eax
call fcn.00401460
push 0x22
pop esi
mov dword [ebp + 8], eax
call fcn.00401460
push 0x15
pop esi
mov ebx, eax
call fcn.00401460
push 0xffffffffffffffec
call fcn.00401432
movzx eax, word [ebx]
push dword [ebp - 0x18]
neg eax
sbb eax, eax
and eax, ebx
push 0x435000
push eax
movzx eax, word [edi]
push dword [ebp + 8]
neg eax
sbb eax, eax
and eax, edi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x21
jge case.0x4015f4.65
jmp 0x40172b
xor esi, esi
call fcn.00401460
mov esi, eax
push esi
push 0xffffffffffffffeb
call fcn.00404aef
push esi
call fcn.004057ef
mov ebx, eax
test ebx, ebx
je 0x40172b
cmp dword [ebp - 0x1c], 0
je 0x4020e5
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push ebx
call esi
mov edi, 0x102
jmp 0x4020b6
push 0xf
call fcn.00405e40
push 0x64
push ebx
call esi
cmp eax, edi
je 0x4020aa
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x20], 0
jl 0x4020d8
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.00405be3
jmp 0x4020e5
cmp dword [ebp + 8], 0
je 0x4020e5
mov dword [ebp - 4], 1
push ebx
jmp 0x402759
push 2
pop esi
call fcn.00401460
push eax
call fcn.00405d6f
mov esi, eax
test esi, esi
je 0x402112
push dword [esi + 0x14]
push dword [ebp - 8]
call fcn.00405be3
push dword [esi + 0x18]
jmp 0x4016d8
mov ecx, dword [ebp - 8]
xor eax, eax
mov word [edi], ax
mov word [ecx], ax
jmp 0x40172b
push 0xffffffffffffffee
pop esi
call fcn.00401460
mov ebx, eax
lea eax, [ebp - 0x30]
push eax
push ebx
push 9
call fcn.00405e06
call eax
mov ecx, dword [ebp - 8]
mov esi, eax
xor eax, eax
mov word [edi], ax
mov word [ecx], ax
mov dword [ebp - 4], 1
test esi, esi
je case.0x4015f4.65
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp + 8], eax
test eax, eax
je case.0x4015f4.65
push 0xa
call fcn.00405e06
push 0xb
mov dword [ebp - 0x60], eax
call fcn.00405e06
push dword [ebp + 8]
mov dword [ebp - 0x34], eax
push esi
push 0
push ebx
call dword [ebp - 0x60]
test eax, eax
je 0x4021c1
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x4082b0
push dword [ebp + 8]
call dword [ebp - 0x34]
test eax, eax
je 0x4021c1
mov eax, dword [ebp - 0x44]
push dword [eax + 8]
push edi
call fcn.00405be3
mov eax, dword [ebp - 0x44]
push dword [eax + 0xc]
push dword [ebp - 8]
call fcn.00405be3
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x4015f4.65
cmp dword [0x429e18], 0
mov dword [ebp - 4], 1
jl 0x40229b
push 0xfffffffffffffff0
pop esi
call fcn.00401460
xor esi, esi
inc esi
mov edi, eax
call fcn.00401460
cmp dword [ebp - 0x14], 0
mov dword [ebp + 8], eax
je 0x40220b
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x40221c
push 8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x402294
push dword [ebp + 8]
push esi
call fcn.00405e73
mov edi, eax
test edi, edi
je 0x402266
and dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0
je 0x40224c
push dword [ebp - 0x1c]
call fcn.00401432
call edi
test eax, eax
je 0x402270
mov dword [ebp - 4], 1
jmp 0x402270
push section..data
push 0x40a0c4
push ebx
push 0x400
push dword [ebp - 0xc]
call edi
add esp, 0x14
jmp 0x402270
push dword [ebp + 8]
push 0xfffffffffffffff7
call fcn.00404aef
cmp dword [ebp - 0x18], 0
jne case.0x4015f4.65
push esi
call fcn.004038a2
test eax, eax
je case.0x4015f4.65
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp case.0x4015f4.65
push 0xfffffffffffffff6
jmp 0x4017d5
push 0xffffffffffffffe7
jmp 0x4017d5
push 0xfffffffffffffff0
pop esi
call fcn.00401460
push 0xffffffffffffffdf
pop esi
mov dword [ebp - 8], eax
call fcn.00401460
push 2
pop esi
mov dword [ebp - 0x44], eax
call fcn.00401460
push 0xffffffffffffffcd
pop esi
mov dword [ebp - 0x3c], eax
call fcn.00401460
push 0x45
pop esi
mov dword [ebp - 0x30], eax
call fcn.00401460
push dword [ebp - 0x44]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov ebx, eax
mov edi, eax
sar eax, 0x10
and ecx, 0xfff
and eax, 0xffff
sar edi, 0xc
mov dword [ebp - 0x2c], ecx
and ebx, 0x8000
and edi, 7
mov dword [ebp - 0x34], eax
call fcn.004058d9
test eax, eax
jne 0x402316
push 0x21
pop esi
call fcn.00401460
lea eax, [ebp + 8]
push eax
push 0x40896c
push 1
push 0
push 0x40898c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4023e3
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x60]
push edx
push 0x40897c
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x4023d6
mov eax, dword [ebp + 8]
push dword [ebp - 0x44]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov esi, eax
test ebx, ebx
jne 0x402371
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 0x435000
push eax
call dword [ecx + 0x24]
test edi, edi
je 0x40237f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp + 8]
push dword [ebp - 0x34]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov ecx, dword [ebp - 0x30]
cmp word [ecx], 0
je 0x4023a1
push dword [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x44]
mov eax, dword [ebp + 8]
push dword [ebp - 0x3c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp + 8]
push dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test esi, esi
jl 0x4023cd
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
push 1
push dword [ebp - 8]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
jge 0x4023f1
mov dword [ebp - 4], 1
push 0xfffffffffffffff0
jmp 0x4017d5
push 0xfffffffffffffff4
jmp 0x4017d5
xor esi, esi
call fcn.00401460
push 0x11
pop esi
mov edi, eax
call fcn.00401460
push 0x23
pop esi
mov ebx, eax
call fcn.00401460
push edi
mov esi, eax
call fcn.00405d6f
test eax, eax
jne 0x40242d
push 0
push 0xfffffffffffffff9
call fcn.00404aef
jmp 0x40172b
mov eax, dword [ebp - 0xc]
push edi
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 2
call sub.KERNEL32.dll_lstrlenW
xor ecx, ecx
push ebx
mov word [edi + eax*2 + 2], cx
call sub.KERNEL32.dll_lstrlenW
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
mov ax, word [ebp - 0x1c]
push esi
push ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x42], esi
mov word [ebp - 0x4c], ax
call fcn.00404aef
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je case.0x4015f4.65
jmp 0x40241f
cmp eax, 0xbadf00d
jne 0x401d23
inc dword [0x429df4]
jmp case.0x4015f4.65
xor ebx, ebx
xor edi, edi
mov dword [ebp + 8], ebx
cmp eax, ebx
je 0x4024ad
xor esi, esi
call fcn.00401460
mov edx, dword [ebp - 0x20]
mov edi, eax
test edx, edx
je 0x4024bc
push 0x11
pop esi
call fcn.00401460
mov dword [ebp + 8], eax
cmp dword [ebp - 0x14], ebx
je 0x4024cb
push 0x22
pop esi
call fcn.00401460
mov ebx, eax
push 0xffffffffffffffcd
pop esi
call fcn.00401460
push eax
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x401723
xor esi, esi
inc esi
mov dword [ebp + 8], 0xa
call fcn.00401460
push 0x12
pop esi
mov ebx, eax
call fcn.00401460
push 0xffffffffffffffdd
pop esi
mov dword [ebp - 0x44], eax
call fcn.00401460
push eax
push 0x3ff
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x44]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [edi], 0xa
jmp 0x4018d5
cmp dword [ebp - 0x14], 0
jne 0x402558
push 2
call fcn.0040154e
mov edi, eax
test edi, edi
je 0x40172b
push 0x33
pop esi
call fcn.00401460
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402583
push 0x22
pop esi
call fcn.00401460
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x402573
mov ecx, dword [0x429de4]
add ecx, 0x80000001
mov edx, dword [ebp - 0x14]
and edx, 2
push edx
push eax
push ecx
call fcn.00401498
mov esi, eax
test esi, esi
je case.0x4015f4.65
jmp 0x40172b
test eax, eax
je 0x402598
mov edi, eax
jmp 0x4025a4
mov edi, dword [0x429de4]
add edi, 0x80000001
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
push 2
pop esi
mov dword [ebp - 0x44], eax
call fcn.00401460
push 0x11
pop esi
mov dword [ebp - 0x60], eax
call fcn.00401460
xor ecx, ecx
push ecx
lea edx, [ebp + 8]
push edx
mov edx, dword [0x429e10]
push ecx
or edx, 2
push edx
push ecx
push ecx
push ecx
push eax
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne case.0x4015f4.65
mov edi, 0x40b0c8
cmp ebx, 1
jne 0x402608
push 0x23
pop esi
call fcn.00401460
push edi
call sub.KERNEL32.dll_lstrlenW
lea eax, [eax + eax + 2]
cmp ebx, 4
jne 0x40261f
push 3
pop ecx
call fcn.00401443
push ebx
mov dword [0x40b0c8], eax
mov dword [ebp - 0x34], edx
pop eax
cmp ebx, 3
jne 0x402634
push 0x1800
push edi
push 0
push dword [ebp - 0x18]
call fcn.00402fd5
push eax
push edi
push dword [ebp - 0x44]
push 0
push dword [ebp - 0x60]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40264e
and dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x4015f4.65
push 0x20019
call fcn.0040154e
push 0x33
pop esi
mov ebx, eax
call fcn.00401460
xor ecx, ecx
mov word [edi], cx
test ebx, ebx
je 0x40172b
lea ecx, [ebp - 0x44]
push ecx
push edi
lea ecx, [ebp + 8]
push ecx
push 0
push eax
push ebx
mov dword [ebp - 0x44], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x4026d5
cmp dword [ebp + 8], 4
je 0x4026c0
cmp dword [ebp + 8], ecx
je 0x4026af
cmp dword [ebp + 8], 2
jne 0x4026d5
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
xor eax, eax
mov word [edi + 0x7fe], ax
jmp 0x4026dd
push dword [edi]
xor eax, eax
cmp dword [ebp - 0x14], eax
push edi
sete al
mov dword [ebp - 4], eax
call fcn.00405be3
jmp 0x4026dd
xor eax, eax
mov word [edi], ax
mov dword [ebp - 4], ecx
push ebx
jmp 0x402651
push 0x20019
call fcn.0040154e
push 3
pop ecx
mov esi, eax
call fcn.00401443
mov dword [ebp - 0x44], edx
xor ecx, ecx
xor edx, edx
mov word [edi], cx
cmp esi, edx
je 0x40172b
mov ecx, 0x3ff
mov dword [ebp + 8], ecx
cmp dword [ebp - 0x14], edx
je 0x402722
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x40273b
push edx
push edx
push edx
push edx
lea ecx, [ebp + 8]
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40172b
xor eax, eax
mov word [edi + 0x7fe], ax
push esi
jmp 0x402651
push edi
call fcn.00405bfc
test eax, eax
je case.0x4015f4.65
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x4015f4.65
push 0xffffffffffffffed
pop esi
call fcn.00401460
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push eax
call fcn.00405a0b
cmp eax, 0xffffffff
jne 0x401afe
xor eax, eax
mov word [edi], ax
jmp 0x40172b
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
cmp esi, 0x38
sete bl
mov dword [ebp + 8], eax
test eax, eax
je 0x4027b8
xor ecx, ecx
inc ecx
call fcn.00401443
mov word [0x40a8c8], ax
xor eax, eax
test ebx, ebx
sete al
mov dword [ebp - 0x44], edx
inc eax
jmp 0x4027ea
cmp esi, 0x38
jne 0x4027ee
push 0x21
pop esi
call fcn.00401460
xor eax, eax
push eax
push eax
push 0x400
mov esi, 0x40a8c8
push esi
push 0xffffffffffffffff
push 0x40b0c8
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
jmp 0x402800
push 0x11
pop esi
call fcn.00401460
push eax
call sub.KERNEL32.dll_lstrlenW
mov esi, eax
add esi, esi
cmp word [edi], 0
je 0x40172b
push edi
call fcn.00405bfc
or ebx, dword [ebp + 8]
mov edi, eax
jne 0x40282b
cmp dword [ebp - 0x18], ebx
je 0x40282b
push edi
push edi
call fcn.00405aec
test eax, eax
jl 0x40172b
push esi
push 0x40a8c8
push edi
call fcn.00405abd
jmp 0x401723
push 2
pop ecx
xor esi, esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x3c], ecx
call fcn.00401443
cmp eax, 1
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x44], eax
jl case.0x4015f4.65
mov ecx, 0x3ff
cmp eax, ecx
jle 0x402867
mov dword [ebp - 0x44], ecx
xor ebx, ebx
cmp word [edi], bx
je 0x4029d1
push edi
mov dword [ebp - 0x34], ebx
call fcn.00405bfc
cmp dword [ebp - 0x44], ebx
mov dword [ebp - 0x2c], eax
jle 0x4029d1
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [ebp - 0x28], 0x39
jne 0x402965
push ebx
lea eax, [ebp - 0x30]
push eax
push 2
pop eax
sub eax, dword [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4029d1
mov ecx, dword [ebp - 0x30]
cmp ecx, ebx
je 0x4029d1
movzx ax, byte [ebp + 8]
movzx eax, ax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x18], ebx
jne 0x402992
push 1
lea eax, [ebp - 0xc]
push eax
push ecx
lea eax, [ebp + 8]
push eax
push 8
push ebx
call edi
test eax, eax
jne 0x40298d
mov esi, dword [ebp - 0x3c]
neg esi
dec dword [ebp - 0x30]
mov eax, 0xfffd
mov dword [ebp - 0xc], eax
je 0x40292e
dec dword [ebp - 0x3c]
push 1
push ebx
inc esi
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x30]
lea eax, [ebp + 8]
push eax
push 8
push ebx
call edi
test eax, eax
je 0x4028f7
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x60]
cmp dword [ebp - 0x18], ebx
jne 0x402992
cmp word [ebp - 0x34], 0xd
je 0x4029a3
cmp word [ebp - 0x34], 0xa
je 0x4029a3
mov ecx, dword [ebp - 8]
mov word [ecx + esi*2], ax
movzx ecx, ax
inc esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x34], ecx
cmp ax, bx
je 0x4029d1
cmp esi, dword [ebp - 0x44]
jl 0x40288d
jmp 0x4029d1
cmp dword [ebp - 0x18], ebx
jne 0x40297b
cmp esi, ebx
jne 0x40297b
push ebx
push dword [ebp - 0x2c]
call fcn.00405aec
test eax, eax
jl 0x4029d1
push 2
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x2c]
call fcn.00405a8e
test eax, eax
je 0x4029d1
mov eax, dword [ebp - 0xc]
jmp 0x402931
movzx eax, ax
push eax
push dword [ebp - 8]
call fcn.00405be3
jmp 0x402cc1
cmp word [ebp - 0x34], ax
je 0x4029bf
cmp ax, 0xd
je 0x4029b5
cmp ax, 0xa
jne 0x4029bf
mov ecx, dword [ebp - 8]
mov word [ecx + esi*2], ax
inc esi
jmp 0x4029d1
mov eax, dword [ebp - 0x3c]
push 1
push ebx
neg eax
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 8]
xor eax, eax
mov word [ecx + esi*2], ax
cmp esi, ebx
jmp 0x401725
cmp word [edi], 0
je case.0x4015f4.65
push 2
pop ecx
call fcn.00401443
push dword [ebp - 0x18]
mov dword [ebp - 0x44], edx
push 0
push eax
push edi
call fcn.00405bfc
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x20], 0
jl case.0x4015f4.65
push eax
push dword [ebp - 8]
jmp 0x4016d9
push edi
call fcn.00405bfc
test eax, eax
je case.0x4015f4.65
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x4015f4.65
push dword [ebp - 8]
call fcn.00405bfc
test eax, eax
je 0x4018db
lea ecx, [ebp - 0x2b4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4018db
jmp 0x402a8f
push 2
pop esi
call fcn.00401460
lea ecx, [ebp - 0x2b4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x402a86
mov ecx, dword [ebp - 8]
xor eax, eax
mov word [ecx], ax
jmp 0x402781
push eax
push dword [ebp - 8]
call fcn.00405be3
lea eax, [ebp - 0x288]
push eax
push edi
call fcn.00405c9c
jmp case.0x4015f4.65
push 0xfffffffffffffff0
pop esi
mov ebx, 0xfffffd66
call fcn.00401460
mov edi, eax
push edi
mov dword [ebp - 0x34], edi
call fcn.004058d9
test eax, eax
jne 0x402ac5
push 0xffffffffffffffed
pop esi
call fcn.00401460
push edi
call fcn.004059e5
push 2
push 0x40000000
push edi
call fcn.00405a0b
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x402b7b
mov eax, dword [0x429d8c]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
push 0x40
mov dword [ebp - 0x44], eax
call esi
mov edi, eax
test edi, edi
je 0x402b72
push 0
call fcn.00402e57
push dword [ebp - 0x44]
push edi
call fcn.00402e41
push dword [ebp - 0x1c]
push 0x40
call esi
mov esi, eax
mov dword [ebp - 0x60], esi
test esi, esi
je 0x402b4f
push dword [ebp - 0x1c]
push esi
push 0
push dword [ebp - 0x20]
call fcn.00402fd5
jmp 0x402b41
mov ebx, dword [esi]
mov eax, dword [esi + 4]
push ebx
add esi, 8
push esi
add eax, edi
push eax
call fcn.004059c1
add esi, ebx
cmp byte [esi], 0
jne 0x402b2d
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x44]
push edi
push dword [ebp + 8]
call fcn.00405abd
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0
push 0
push dword [ebp + 8]
push 0xffffffffffffffff
call fcn.00402fd5
mov ebx, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffff3
pop esi
test ebx, ebx
jge 0x402b95
push 0xffffffffffffffef
pop esi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 1
push esi
jmp 0x4017d5
xor ecx, ecx
call fcn.00401443
mov edi, eax
mov dword [ebp - 0x44], edx
cmp edi, dword [0x429d4c]
jae 0x40172b
mov eax, dword [ebp - 0x1c]
mov esi, edi
imul esi, esi, 0x818
add esi, dword [0x429d48]
test eax, eax
jl 0x402bdf
mov ecx, dword [esi + eax*4]
jne 0x402bd9
add esi, 0x18
push esi
push dword [ebp - 8]
jmp 0x402a97
push ecx
jmp 0x402a14
or ecx, 0xffffffff
sub ecx, eax
mov dword [ebp - 0x1c], ecx
je 0x402bf9
xor ecx, ecx
inc ecx
call fcn.00401443
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x20], eax
jmp 0x402c0c
push dword [ebp - 0x14]
lea eax, [esi + 0x18]
push eax
call fcn.00405ff9
or dword [esi + 8], 0x100
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [esi + eax*4], ecx
cmp dword [ebp - 0x18], 0
je case.0x4015f4.65
push edi
call fcn.00401186
jmp case.0x4015f4.65
xor ecx, ecx
call fcn.00401443
mov dword [ebp - 0x44], edx
cmp eax, 0x20
jae 0x40172b
xor esi, esi
cmp dword [ebp - 0x18], esi
je 0x402c63
cmp dword [ebp - 0x1c], esi
je 0x402c58
push eax
call fcn.004012a6
push esi
push esi
call fcn.004011f8
jmp case.0x4015f4.65
push esi
call fcn.004012f1
jmp 0x402a13
cmp dword [ebp - 0x1c], esi
je 0x402c7a
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x429d2c]
mov dword [edx + eax*4 + 0x94], ecx
jmp case.0x4015f4.65
mov ecx, dword [0x429d2c]
push dword [ecx + eax*4 + 0x94]
push dword [ebp - 8]
call fcn.00405ff9
jmp case.0x4015f4.65
mov ecx, dword [0x425208]
xor esi, esi
push esi
and ecx, eax
push ecx
push 0xb
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x24], esi
je case.0x4015f4.65
push esi
push esi
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp - 4]
add dword [0x429de8], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4