Function at 0x4015d0
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
Set current directory
Set file attributes
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x1cc
mov eax, dword [0x43f0e8]
and dword [ebp + 0x70], 0
push ebx
push esi
mov esi, dword [ebp + 0x7c]
push edi
push 9
pop ecx
lea edi, [ebp + 0x38]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0x40]
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x3c]
mov edi, eax
mov ecx, section..ndata
mov ebx, edx
shl edi, 0xa
add edi, ecx
shl ebx, 0xa
add ebx, ecx
lea ecx, [ebp + 0x3c]
mov dword [0x40a100], ecx
mov ecx, dword [ebp + 0x38]
add ecx, 0xfffffffe
cmp ecx, 0x43
ja case.0x401626.67
jmp dword [ecx*4 + 0x402d84]
push 0
push eax
call fcn.00404eea
mov eax, 0x7fffffff
jmp case.0x401626.2
inc dword [0x43e8b4]
cmp dword [ebp + 0x6c], 0
je 0x401635
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x401635
push eax
call fcn.0040137c
dec eax
push 0
push eax
call fcn.00401398
jmp case.0x401626.2
push 0
push eax
call fcn.00404eea
jmp case.0x401626.67
xor ecx, ecx
call fcn.00401443
cmp eax, 1
mov dword [ebp + 0x64], edx
jg 0x401688
xor eax, eax
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x401626.67
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x401626.67
shl eax, 2
cmp dword [ebp + 0x44], 0
jne 0x4016d1
mov ecx, dword [eax + 0x43f1c0]
mov dword [eax + 0x43f180], ecx
xor ecx, ecx
inc ecx
call fcn.00401443
mov ecx, dword [ebp + 0x3c]
mov dword [ebp + 0x64], edx
mov dword [ecx*4 + 0x43f1c0], eax
jmp case.0x401626.67
mov ecx, dword [eax + 0x43f180]
mov dword [eax + 0x43f1c0], ecx
jmp case.0x401626.67
mov edx, dword [ebp + 0x44]
lea edx, [edx*4 + 0x43f1c0]
mov ecx, dword [edx]
xor eax, eax
test ecx, ecx
sete al
and ecx, dword [ebp + 0x48]
mov dword [edx], ecx
mov eax, dword [ebp + eax*4 + 0x3c]
jmp case.0x401626.2
push dword [edx*4 + 0x43f1c0]
push edi
call fcn.00406010
jmp case.0x401626.67
mov ecx, dword [0x43e8c0]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test ecx, ecx
je 0x40172c
push edx
push ecx
call esi
mov eax, dword [ebp + 0x3c]
mov ecx, dword [0x43e8ac]
test ecx, ecx
je case.0x401626.67
push eax
push ecx
call esi
jmp case.0x401626.67
push 0xfffffffffffffff0
pop esi
call fcn.00401460
push dword [ebp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne case.0x401626.67
mov dword [ebp + 0x70], 1
jmp case.0x401626.67
push 0xfffffffffffffff0
pop esi
call fcn.00401460
mov edi, eax
push edi
call fcn.00405cef
mov esi, eax
test esi, esi
je 0x4017cf
push 0x5c
push esi
call fcn.00405ca9
mov esi, eax
mov bl, byte [esi]
mov byte [esi], 0
test bl, bl
jne 0x4017a9
cmp dword [ebp + 0x44], 0
je 0x4017a9
call fcn.004062b8
test eax, eax
je 0x4017a9
push edi
call fcn.00405b27
jmp 0x4017af
push edi
call fcn.00405ba9
test eax, eax
je 0x4017c8
cmp eax, 0xb7
jne 0x4017c5
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x4017c8
inc dword [ebp + 0x70]
mov byte [esi], bl
inc esi
test bl, bl
jne 0x40177f
cmp dword [ebp + 0x40], 0
je 0x4017fe
push 0xffffffffffffffe6
call fcn.00401432
push edi
push 0x445800
call fcn.004060b2
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne case.0x401626.67
inc dword [ebp + 0x70]
jmp case.0x401626.67
push 0xfffffffffffffff5
call fcn.00401432
jmp case.0x401626.67
xor esi, esi
call fcn.00401460
push eax
call fcn.0040616e
test eax, eax
je 0x401d42
mov eax, dword [ebp + 0x40]
jmp case.0x401626.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_MoveFileA]
test eax, eax
je 0x401853
push 0xffffffffffffffe3
jmp 0x401800
cmp dword [ebp + 0x44], 0
je 0x40175d
push edi
call fcn.0040616e
test eax, eax
je 0x40175d
push ebx
push edi
call fcn.004067ee
push 0xffffffffffffffe4
jmp 0x401800
xor esi, esi
call fcn.00401460
mov esi, eax
lea eax, [ebp + 0x7c]
push eax
push ebx
mov edi, 0x400
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x4018b9
mov eax, dword [ebp + 0x7c]
cmp eax, esi
jbe 0x4018c3
cmp byte [eax], 0
je 0x4018c3
push esi
call fcn.0040616e
test eax, eax
je 0x4018b9
add eax, 0x2c
push eax
push dword [ebp + 0x7c]
call fcn.004060b2
jmp 0x4018c3
mov byte [ebx], 0
mov dword [ebp + 0x70], 1
cmp dword [ebp + 0x44], 0
jne case.0x401626.67
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp case.0x401626.67
or esi, 0xffffffff
call fcn.00401460
lea ecx, [ebp + 0x7c]
push ecx
push edi
push 0x400
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne case.0x401626.67
mov dword [ebp + 0x70], 1
mov byte [edi], 0
jmp case.0x401626.67
push 0xffffffffffffffef
pop esi
call fcn.00401460
push eax
push edi
call fcn.00405e13
jmp 0x401755
push 0x31
pop esi
call fcn.00401460
mov esi, eax
mov eax, dword [ebp + 0x3c]
and eax, 7
push esi
mov dword [ebp + 0x68], esi
mov dword [ebp + 0x7c], eax
call fcn.00405cc5
push esi
mov esi, 0x40a108
test eax, eax
je 0x401951
push esi
call fcn.004060b2
jmp 0x401968
push 0x445800
push esi
call fcn.004060b2
push eax
call fcn.00406318
push eax
call sub.KERNEL32.dll_lstrcatA
push esi
call fcn.004060d4
mov ebx, 0x40a908
mov edi, 0x40a508
cmp dword [ebp + 0x7c], 3
jl 0x4019af
push esi
call fcn.0040616e
xor ecx, ecx
test eax, eax
je 0x40199a
lea ecx, [ebp + 0x4c]
push ecx
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov ecx, eax
mov eax, dword [ebp + 0x7c]
add eax, 0xfffffffd
or eax, 0x80000000
and eax, ecx
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 0x7c], eax
cmp dword [ebp + 0x7c], 0
jne 0x4019bb
push esi
call fcn.00405dbe
xor eax, eax
cmp dword [ebp + 0x7c], 1
setne al
inc eax
push eax
push 0x40000000
push esi
call fcn.00405de4
mov dword [ebp + 0x6c], eax
cmp eax, 0xffffffff
jne 0x401a48
cmp dword [ebp + 0x7c], 0
jne 0x401a2a
push section..ndata
push ebx
call fcn.004060b2
push esi
push section..ndata
call fcn.004060b2
push dword [ebp + 0x54]
push edi
call fcn.0040642d
push ebx
push section..ndata
call fcn.004060b2
mov eax, dword [ebp + 0x3c]
sar eax, 3
push eax
push edi
call fcn.00405c43
sub eax, 4
je 0x401978
dec eax
je 0x401a3d
push esi
push 0xfffffffffffffffa
jmp 0x401630
push dword [ebp + 0x68]
push 0xffffffffffffffe2
call fcn.00404eea
cmp dword [ebp + 0x7c], 2
jmp 0x401757
inc dword [0x43f1c8]
jmp 0x402d78
push dword [ebp + 0x68]
push 0xffffffffffffffea
call fcn.00404eea
push dword [ebp + 0x58]
mov ecx, dword [ebp + 0x48]
mov eax, dword [ebp + 0x44]
inc dword [0x43f1f4]
xor edi, edi
cmp dword [ebp + 0x38], 0x15
push edi
push edi
push dword [ebp + 0x6c]
push ecx
push eax
jne 0x401a74
push 1
jmp 0x401a75
push edi
call fcn.00403126
dec dword [0x43f1f4]
cmp dword [ebp + 0x4c], 0xffffffff
mov ebx, eax
jne 0x401a8e
cmp dword [ebp + 0x50], 0xffffffff
je 0x401a9d
lea eax, [ebp + 0x4c]
push eax
push edi
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
jge case.0x401626.67
cmp ebx, 0xfffffffe
jne 0x401ac6
push 0xffffffffffffffe9
push esi
call fcn.0040642d
push dword [ebp + 0x68]
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x401ace
push 0xffffffffffffffee
push esi
call fcn.0040642d
push 0x200010
push esi
call fcn.00405c43
jmp 0x401635
cmp dword [0x40a014], 0xffffffff
mov eax, dword [0x43f150]
mov ecx, dword [0x43f15c]
mov dword [ebp + 0x70], 1
je 0x401b09
test eax, eax
je case.0x401626.67
test ecx, ecx
jne 0x401c08
test eax, eax
je case.0x401626.67
test ecx, ecx
je case.0x401626.67
xor esi, esi
call fcn.00401460
mov esi, eax
push esi
call fcn.00405cc5
test eax, eax
jne 0x401b59
push 0x446c00
mov edi, 0x40a508
push edi
call fcn.004060b2
push edi
call fcn.0040636c
push eax
push edi
call fcn.004060b2
push edi
push str._s.nsisbin
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
call fcn.004060d4
push 3
push 0x80000000
push esi
call fcn.00405de4
mov dword [0x40a014], eax
cmp eax, 0xffffffff
je case.0x401626.67
cmp dword [0x43f140], 0
je 0x402d78
mov edi, dword [0x43f148]
mov esi, dword [0x43f14c]
lea eax, [ebp - 4]
push 0
push eax
call fcn.00406d55
pop ecx
pop ecx
mov ebx, edi
mov dword [ebp + 0x64], esi
test esi, esi
ja 0x401bad
test edi, edi
jbe 0x401bf6
mov esi, 0x40b508
cmp dword [ebp + 0x64], 0
ja 0x401bc6
jb 0x401bc2
cmp ebx, 0x8000
jae 0x401bc6
mov edi, ebx
jmp 0x401bcb
mov edi, 0x8000
push edi
push esi
call fcn.00403082
test eax, eax
je 0x401bf6
push edi
lea eax, [ebp - 4]
push esi
push eax
call fcn.00406d9c
add esp, 0xc
sub ebx, edi
sbb dword [ebp + 0x64], 0
cmp dword [ebp + 0x64], 0
ja 0x401bc6
jb 0x401bf6
test ebx, ebx
ja 0x401bb2
lea eax, [ebp - 4]
push eax
call fcn.00406f86
pop ecx
cmp eax, dword [0x43f0f4]
jne 0x401c11
and dword [ebp + 0x70], 0
jmp case.0x401626.67
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a014], 0xffffffff
jmp case.0x401626.67
xor esi, esi
call fcn.00401460
push dword [ebp + 0x40]
push eax
call fcn.0040681a
jmp case.0x401626.67
push 0x31
pop esi
call fcn.00401460
push dword [ebp + 0x3c]
push eax
call fcn.00405c43
test eax, eax
je 0x40175d
cmp eax, dword [ebp + 0x44]
jne 0x401c64
mov eax, dword [ebp + 0x48]
jmp case.0x401626.2
cmp eax, dword [ebp + 0x4c]
jne case.0x401626.67
mov eax, dword [ebp + 0x50]
jmp case.0x401626.2
push 0xfffffffffffffff0
pop esi
jmp 0x401c2b
xor esi, esi
inc esi
call fcn.00401460
push eax
call sub.KERNEL32.dll_lstrlenA
push eax
jmp 0x40170a
push 2
pop ecx
call fcn.00401443
push 3
pop ecx
mov esi, eax
mov dword [ebp + 0x64], edx
call fcn.00401443
mov dword [ebp + 0x7c], esi
xor esi, esi
inc esi
mov ebx, eax
mov dword [ebp + 0x28], edx
call fcn.00401460
push eax
mov dword [ebp + 0x68], eax
call sub.KERNEL32.dll_lstrlenA
cmp dword [ebp + 0x64], 0
mov byte [edi], 0
mov esi, eax
je 0x401cca
mov esi, dword [ebp + 0x7c]
test esi, esi
je case.0x401626.67
test ebx, ebx
jge 0x401cde
add ebx, eax
js case.0x401626.67
cmp ebx, eax
jle 0x401ce4
mov ebx, eax
mov eax, dword [ebp + 0x68]
add eax, ebx
push eax
push edi
call fcn.004060b2
test esi, esi
jge 0x401d05
push edi
call sub.KERNEL32.dll_lstrlenA
add esi, eax
jns 0x401d05
and dword [ebp + 0x7c], 0
mov esi, dword [ebp + 0x7c]
cmp esi, 0x400
jge case.0x401626.67
mov byte [esi + edi], 0
jmp case.0x401626.67
push 0x20
pop esi
call fcn.00401460
push 0x31
pop esi
mov edi, eax
call fcn.00401460
cmp dword [ebp + 0x4c], 0
push eax
push edi
jne 0x401d4a
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401c5c
mov eax, dword [ebp + 0x44]
jmp case.0x401626.2
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
jmp 0x401d3a
xor esi, esi
inc esi
call fcn.00401460
push 0x400
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x401d7f
cmp dword [ebp + 0x44], 0
je 0x401d85
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x401d85
mov dword [ebp + 0x70], esi
mov byte [edi], 0
mov byte [edi + 0x3ff], 0
jmp case.0x401626.67
mov esi, dword [ebp + 0x50]
xor ecx, ecx
call fcn.00401443
xor ecx, ecx
inc ecx
mov edi, eax
mov dword [ebp + 0x64], edx
call fcn.00401443
mov dword [ebp + 0x64], edx
test esi, esi
jne 0x401dc1
cmp edi, eax
jl 0x401c5c
jle 0x401d42
mov eax, dword [ebp + 0x4c]
jmp case.0x401626.2
cmp edi, eax
jb 0x401c5c
jbe 0x401d42
jmp 0x401db9
xor ecx, ecx
inc ecx
call fcn.00401443
push 2
pop ecx
mov esi, eax
mov dword [ebp + 0x64], edx
call fcn.00401443
mov ecx, eax
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x64], edx
cmp eax, 0xd
ja case.default.0x401df3
jmp dword [eax*4 + 0x402e94]
add esi, ecx
jmp case.default.0x401df3
sub esi, ecx
jmp case.default.0x401df3
imul ecx, esi
mov esi, ecx
jmp case.default.0x401df3
test ecx, ecx
je 0x401e14
mov eax, esi
cdq
idiv ecx
jmp 0x401e32
xor esi, esi
mov dword [ebp + 0x70], 1
jmp case.default.0x401df3
or ecx, esi
jmp 0x401e05
and ecx, esi
jmp 0x401e05
xor ecx, esi
jmp 0x401e05
xor eax, eax
test esi, esi
sete al
mov esi, eax
jmp case.default.0x401df3
test esi, esi
jne 0x401e3e
test ecx, ecx
je 0x401e47
xor esi, esi
inc esi
jmp case.default.0x401df3
test esi, esi
jne 0x401e3a
xor esi, esi
jmp case.default.0x401df3
test ecx, ecx
je 0x401e14
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp case.default.0x401df3
shl esi, cl
jmp case.default.0x401df3
sar esi, cl
jmp case.default.0x401df3
shr esi, cl
push esi
jmp 0x40170a
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 + 0x64], edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp case.0x401626.67
mov eax, dword [ebp + 0x44]
mov esi, dword [0x40a104]
test eax, eax
je 0x401eeb
dec eax
test esi, esi
je 0x401eaa
mov esi, dword [esi]
test eax, eax
jne 0x401e9b
test esi, esi
jne 0x401ebe
push 0x200010
push 0xffffffffffffffe8
push 0
call fcn.0040642d
push eax
jmp 0x401ad4
lea edi, [esi + 4]
push edi
mov esi, 0x40a108
push esi
call fcn.004060b2
mov eax, dword [0x40a104]
add eax, 4
push eax
push edi
call fcn.004060b2
mov eax, dword [0x40a104]
push esi
add eax, 4
push eax
jmp 0x402b1b
test edx, edx
je 0x401f0e
test esi, esi
je 0x40175d
lea eax, [esi + 4]
push eax
push edi
call fcn.004060b2
mov eax, dword [esi]
mov dword [0x40a104], eax
push esi
jmp 0x4023a9
push 0x404
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [ebp + 0x3c]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.0040642d
mov eax, dword [0x40a104]
mov dword [esi], eax
mov dword [0x40a104], esi
jmp case.0x401626.67
push 3
pop ecx
call fcn.00401443
push 4
pop ecx
mov dword [ebp + 0x64], edx
mov dword [ebp + 0x6c], eax
call fcn.00401443
test byte [ebp + 0x50], 1
mov dword [ebp + 0x64], edx
mov dword [ebp + 0x7c], eax
je 0x401f68
push 0x33
pop esi
call fcn.00401460
mov dword [ebp + 0x6c], eax
test byte [ebp + 0x50], 2
je 0x401f79
push 0x44
pop esi
call fcn.00401460
mov dword [ebp + 0x7c], eax
cmp dword [ebp + 0x38], 0x23
jne 0x401fd0
xor ecx, ecx
inc ecx
call fcn.00401443
push 2
pop ecx
mov esi, eax
mov dword [ebp + 0x64], edx
call fcn.00401443
mov ecx, dword [ebp + 0x50]
sar ecx, 2
mov dword [ebp + 0x64], edx
test ecx, ecx
je 0x401fc0
lea edx, [ebp + 0x68]
push edx
push ecx
push 0
push dword [ebp + 0x7c]
push dword [ebp + 0x6c]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 0x70], eax
jmp 0x402005
push dword [ebp + 0x7c]
push dword [ebp + 0x6c]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x402002
xor esi, esi
inc esi
call fcn.00401460
push 0x12
pop esi
mov ebx, eax
call fcn.00401460
movsx ecx, byte [eax]
neg ecx
sbb ecx, ecx
and ecx, eax
movsx eax, byte [ebx]
neg eax
push ecx
sbb eax, eax
and eax, ebx
push eax
push dword [ebp + 0x7c]
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_FindWindowExA]
mov dword [ebp + 0x68], eax
cmp dword [ebp + 0x3c], 0
jl case.0x401626.67
push dword [ebp + 0x68]
jmp 0x40170a
xor ecx, ecx
call fcn.00401443
push eax
mov dword [ebp + 0x64], edx
call dword [sym.imp.USER32.dll_IsWindow]
jmp 0x401817
push 2
pop ecx
call fcn.00401443
xor ecx, ecx
inc ecx
mov esi, eax
mov dword [ebp + 0x64], edx
call fcn.00401443
push esi
push eax
mov dword [ebp + 0x64], edx
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x401c88
mov eax, dword [0x43f128]
xor ecx, ecx
lea esi, [eax + edx]
call fcn.00401443
push esi
push 0xffffffffffffffeb
push eax
mov dword [ebp + 0x64], edx
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp case.0x401626.67
test dword [ebp + 0x44], 0x100
je 0x402089
xor ecx, ecx
inc ecx
call fcn.00401443
mov dword [ebp + 0x64], edx
jmp 0x402093
push edx
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp + 0x44]
mov dword [ebp + 0x7c], eax
mov esi, ecx
shr esi, 0x1e
mov ebx, ecx
mov edi, ecx
mov eax, ecx
shr eax, 0x1f
and esi, 1
and ebx, 3
and edi, 4
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x6c], esi
test ecx, 0x10000
je 0x4020ca
xor esi, esi
call fcn.00401460
mov esi, dword [ebp + 0x6c]
jmp 0x4020ce
movzx eax, word [ebp + 0x3c]
mov dword [ebp + 0x68], eax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp + 0x44]
and eax, 0xfef0
push eax
mov eax, dword [ebp + 0x28]
imul eax, esi
push eax
mov eax, dword [ebp + 0x24]
imul eax, dword [ebp + 0x34]
push eax
neg edi
push ebx
push dword [ebp + 0x68]
sbb edi, edi
and edi, dword [0x43f0ec]
push edi
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
push ebx
push 0x172
push dword [ebp + 0x7c]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je case.0x401626.67
test ebx, ebx
jne case.0x401626.67
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp case.0x401626.67
push dword [ebp + 0x6c]
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 + 0x64], edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MulDiv]
push esi
push dword [ebp + 0x6c]
neg eax
mov dword [0x413508], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 3
pop ecx
call fcn.00401443
push dword [ebp + 0x40]
mov dword [0x413518], eax
mov al, byte [ebp + 0x4c]
mov cl, al
and cl, 1
mov byte [0x41351c], cl
mov cl, al
and cl, 2
and al, 4
push 0x413524
mov dword [ebp + 0x64], edx
mov byte [0x41351d], cl
mov byte [0x41351e], al
mov byte [0x41351f], 1
call fcn.0040642d
push 0x413508
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
jmp 0x401c88
xor ecx, ecx
call fcn.00401443
xor ecx, ecx
inc ecx
mov esi, eax
mov dword [ebp + 0x64], edx
call fcn.00401443
cmp dword [ebp + 0x48], 0
push eax
mov dword [ebp + 0x64], edx
push esi
jne 0x4021f1
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x401626.67
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x401626.67
xor esi, esi
call fcn.00401460
push 0x31
pop esi
mov edi, eax
call fcn.00401460
push 0x22
pop esi
mov dword [ebp + 0x7c], eax
call fcn.00401460
push 0x15
pop esi
mov ebx, eax
call fcn.00401460
push 0xffffffffffffffec
call fcn.00401432
mov eax, dword [ebp + 0x4c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x6c]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0xc], eax
movsx eax, byte [edi]
neg eax
sbb eax, eax
and eax, edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x7c]
mov dword [ebp], eax
movsx eax, byte [ebx]
neg eax
sbb eax, eax
and eax, ebx
mov dword [ebp + 4], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp + 8], 0x445800
call fcn.00405c09
test eax, eax
je 0x40175d
test byte [ebp - 0xc], 0x40
je case.0x401626.67
push dword [ebp + 0x28]
call fcn.00406276
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x401626.67
xor esi, esi
call fcn.00401460
mov esi, eax
push esi
push 0xffffffffffffffeb
call fcn.00404eea
push esi
call fcn.00405bc6
mov esi, eax
test esi, esi
je 0x40175d
cmp dword [ebp + 0x44], 0
je 0x4022d8
push esi
call fcn.00406276
cmp dword [ebp + 0x40], 0
jl 0x4022cd
push eax
push ebx
call fcn.00406010
jmp 0x4022d8
test eax, eax
je 0x4022d8
mov dword [ebp + 0x70], 1
push esi
jmp 0x402286
push 2
pop esi
call fcn.00401460
push eax
call fcn.0040616e
mov esi, eax
test esi, esi
je 0x402300
push dword [esi + 0x14]
push ebx
call fcn.00406010
push dword [esi + 0x18]
jmp 0x40170a
mov byte [edi], 0
mov byte [ebx], 0
jmp 0x40175d
push 0xffffffffffffffee
pop esi
call fcn.00401460
lea ecx, [ebp + 0x64]
push ecx
push eax
push 9
mov dword [ebp + 0x34], eax
call fcn.00406203
call eax
mov esi, eax
mov byte [edi], 0
mov byte [ebx], 0
mov dword [ebp + 0x70], 1
test esi, esi
je case.0x401626.67
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp + 0x7c], eax
test eax, eax
je case.0x401626.67
push 0xa
call fcn.00406203
push 0xb
mov dword [ebp + 0x6c], eax
call fcn.00406203
push dword [ebp + 0x7c]
mov dword [ebp + 0x30], eax
push esi
push 0
push dword [ebp + 0x34]
call dword [ebp + 0x6c]
test eax, eax
je 0x4023a6
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp + 0x68]
push eax
push 0x408298
push dword [ebp + 0x7c]
call dword [ebp + 0x30]
test eax, eax
je 0x4023a6
mov eax, dword [ebp + 0x68]
push dword [eax + 8]
push edi
call fcn.00406010
mov eax, dword [ebp + 0x68]
push dword [eax + 0xc]
push ebx
call fcn.00406010
and dword [ebp + 0x70], 0
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x401626.67
cmp dword [0x43f1f8], 0
mov dword [ebp + 0x70], 1
jl 0x402481
push 0xfffffffffffffff0
pop esi
call fcn.00401460
xor esi, esi
inc esi
mov edi, eax
call fcn.00401460
xor esi, esi
mov dword [ebp + 0x7c], eax
cmp dword [ebp + 0x4c], esi
je 0x4023f1
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
cmp ebx, esi
jne 0x402401
push 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
cmp ebx, esi
je 0x40247a
push dword [ebp + 0x7c]
push ebx
call sub.KERNEL32.dll_GetProcAddress
mov edi, eax
cmp edi, esi
je 0x40244d
mov dword [ebp + 0x70], esi
cmp dword [ebp + 0x44], esi
je 0x40242f
push dword [ebp + 0x44]
call fcn.00401432
call edi
test eax, eax
je 0x402457
mov dword [ebp + 0x70], 1
jmp 0x402457
push section..data
push 0x40a104
push section..ndata
push 0x400
push dword [ebp + 0x6c]
call edi
add esp, 0x14
jmp 0x402457
push dword [ebp + 0x7c]
push 0xfffffffffffffff7
call fcn.00404eea
cmp dword [ebp + 0x48], esi
jne case.0x401626.67
push ebx
call fcn.00403cfe
test eax, eax
je case.0x401626.67
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp case.0x401626.67
push 0xfffffffffffffff6
jmp 0x401800
push 0xffffffffffffffe7
jmp 0x401800
push 0xfffffffffffffff0
pop esi
call fcn.00401460
push 0xffffffffffffffdf
pop esi
mov dword [ebp + 0x64], eax
call fcn.00401460
push 2
pop esi
mov dword [ebp + 0x6c], eax
call fcn.00401460
push 0xffffffffffffffcd
pop esi
mov dword [ebp + 0x2c], eax
call fcn.00401460
push 0x45
pop esi
mov dword [ebp + 0x34], eax
call fcn.00401460
push dword [ebp + 0x6c]
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x4c]
mov ecx, eax
mov ebx, eax
mov edi, eax
sar eax, 0x10
and ecx, 0xfff
and eax, 0xffff
sar edi, 0xc
mov dword [ebp - 0x14], ecx
and ebx, 0x8000
and edi, 7
mov dword [ebp + 0x30], eax
call fcn.00405cc5
test eax, eax
jne 0x4024fc
push 0x21
pop esi
call fcn.00401460
lea eax, [ebp + 0x7c]
push eax
push 0x408834
push 1
push 0
push 0x408854
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4025e8
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
lea edx, [ebp + 0x68]
push edx
push 0x408844
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x4025db
mov eax, dword [ebp + 0x7c]
push dword [ebp + 0x6c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov esi, eax
test ebx, ebx
jne 0x402557
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
push 0x445800
push eax
call dword [ecx + 0x24]
test edi, edi
je 0x402565
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp + 0x7c]
push dword [ebp + 0x30]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov ecx, dword [ebp + 0x34]
cmp byte [ecx], 0
je 0x402586
push dword [ebp - 0x14]
mov eax, dword [ebp + 0x7c]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x44]
mov eax, dword [ebp + 0x7c]
push dword [ebp + 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp + 0x7c]
push dword [ebp + 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test esi, esi
jl 0x4025d2
push 0x400
push dword [ebp + 0x6c]
mov esi, 0x80004005
push 0xffffffffffffffff
push dword [ebp + 0x64]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x4025d2
mov eax, dword [ebp + 0x68]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x6c]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp + 0x68]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
jge 0x4025f6
mov dword [ebp + 0x70], 1
push 0xfffffffffffffff0
jmp 0x401800
push 0xfffffffffffffff4
jmp 0x401800
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.0040616e
test eax, eax
jne 0x402632
push 0
push 0xfffffffffffffff9
call fcn.00404eea
jmp 0x40175d
mov eax, dword [ebp + 0x6c]
push edi
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], 2
call sub.KERNEL32.dll_lstrlenA
push ebx
mov byte [eax + edi + 1], 0
call sub.KERNEL32.dll_lstrlenA
mov byte [eax + ebx + 1], 0
mov ax, word [ebp + 0x44]
push esi
push 0
mov dword [ebp + 0x14], edi
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x26], esi
mov word [ebp + 0x1c], ax
call fcn.00404eea
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je case.0x401626.67
jmp 0x402624
cmp eax, 0xbadf00d
jne 0x401eaa
inc dword [0x43f1d4]
jmp case.0x401626.67
xor ebx, ebx
xor edi, edi
mov dword [ebp + 0x7c], ebx
cmp eax, ebx
je 0x4026af
xor esi, esi
call fcn.00401460
mov edx, dword [ebp + 0x40]
mov edi, eax
test edx, edx
je 0x4026be
push 0x11
pop esi
call fcn.00401460
mov dword [ebp + 0x7c], eax
cmp dword [ebp + 0x4c], ebx
je 0x4026cd
push 0x22
pop esi
call fcn.00401460
mov ebx, eax
push 0xffffffffffffffcd
pop esi
call fcn.00401460
push eax
push ebx
push dword [ebp + 0x7c]
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x401755
push 0xa
pop eax
xor esi, esi
inc esi
mov word [ebp + 0x7c], ax
call fcn.00401460
push 0x12
pop esi
mov ebx, eax
call fcn.00401460
push 0xffffffffffffffdd
pop esi
mov dword [ebp + 0x64], eax
call fcn.00401460
push eax
push 0x3ff
push edi
lea eax, [ebp + 0x7c]
push eax
push dword [ebp + 0x64]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [edi], 0xa
jmp 0x4018fa
cmp dword [ebp + 0x4c], 0
mov edi, edx
jne 0x40275c
push 2
pop eax
call fcn.004014aa
mov edi, eax
test edi, edi
je 0x40175d
push 0x33
pop esi
call fcn.00401460
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402774
push 0x22
pop esi
call fcn.00401460
mov ecx, dword [ebp + 0x4c]
sar ecx, 1
push ecx
push edi
mov esi, eax
call fcn.00401591
mov esi, eax
test esi, esi
je case.0x401626.67
jmp 0x40175d
mov edi, eax
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x7c], eax
mov eax, dword [ebp + 0x54]
push 2
pop esi
mov dword [ebp + 0x28], eax
call fcn.00401460
push 0x11
pop esi
mov dword [ebp + 0x2c], eax
call fcn.00401460
lea ecx, [ebp + 0x64]
push ecx
push 0x100022
push eax
mov eax, edi
mov dword [ebp + 0x70], 1
call fcn.00401498
push eax
call fcn.00405f66
mov edi, eax
neg edi
sbb edi, edi
not edi
and edi, dword [ebp + 0x64]
je case.0x401626.67
xor esi, esi
xor eax, eax
cmp dword [ebp + 0x7c], 1
mov ebx, 0x40a908
jne 0x4027f1
push 0x23
pop esi
call fcn.00401460
push ebx
call sub.KERNEL32.dll_lstrlenA
inc eax
xor esi, esi
cmp dword [ebp + 0x7c], 4
jne 0x40280a
push 3
pop ecx
call fcn.00401443
push 4
mov dword [0x40a908], eax
mov dword [ebp - 0x14], edx
pop eax
cmp dword [ebp + 0x7c], 3
jne 0x402834
push dword [ebp + 0x58]
mov ecx, dword [ebp + 0x4c]
mov eax, dword [ebp + 0x48]
push 0xc00
push ebx
push esi
push ecx
push eax
cmp dword [0x43f150], esi
je 0x40282e
push 1
jmp 0x40282f
push esi
call fcn.00403126
push eax
push ebx
push dword [ebp + 0x28]
push esi
push dword [ebp + 0x2c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40284b
mov dword [ebp + 0x70], esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x401626.67
mov eax, 0x20019
call fcn.004014aa
push 0x33
pop esi
mov ebx, eax
call fcn.00401460
mov byte [edi], 0
test ebx, ebx
je 0x40175d
lea ecx, [ebp + 0x64]
push ecx
push edi
lea ecx, [ebp + 0x7c]
push ecx
push 0
push eax
push ebx
mov dword [ebp + 0x64], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x4028cc
cmp dword [ebp + 0x7c], 4
je 0x4028b7
cmp dword [ebp + 0x7c], ecx
je 0x4028a8
cmp dword [ebp + 0x7c], 2
jne 0x4028cc
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x70], eax
mov byte [edi + 0x3ff], 0
jmp 0x4028d2
push dword [edi]
xor eax, eax
cmp dword [ebp + 0x4c], eax
push edi
sete al
mov dword [ebp + 0x70], eax
call fcn.00406010
jmp 0x4028d2
mov byte [edi], 0
mov dword [ebp + 0x70], ecx
push ebx
jmp 0x40284c
mov eax, 0x20019
call fcn.004014aa
push 3
pop ecx
mov esi, eax
call fcn.00401443
mov dword [ebp + 0x64], edx
xor edx, edx
mov byte [edi], 0
cmp esi, edx
je 0x40175d
mov ecx, 0x3ff
mov dword [ebp + 0x7c], ecx
cmp dword [ebp + 0x4c], edx
je 0x402915
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x402931
push edx
push edx
push edx
push edx
lea ecx, [ebp + 0x7c]
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x402931
mov dword [ebp + 0x70], 1
mov byte [edi + 0x3ff], 0
push esi
jmp 0x40284c
push edi
call fcn.00406029
test eax, eax
je case.0x401626.67
push eax
jmp 0x402286
push 0xffffffffffffffed
pop esi
call fcn.00401460
push dword [ebp + 0x44]
push dword [ebp + 0x40]
push eax
call fcn.00405de4
cmp eax, 0xffffffff
jne 0x401c88
mov byte [edi], 0
jmp 0x40175d
cmp dword [ebp + 0x44], 0
je 0x402991
xor esi, esi
inc esi
mov ecx, esi
call fcn.00401443
mov dword [ebp + 0x64], edx
mov byte [0x40a508], al
jmp 0x4029a1
push 0x11
pop esi
call fcn.00401460
push eax
call sub.KERNEL32.dll_lstrlenA
mov esi, eax
cmp byte [edi], 0
je 0x40175d
push edi
call fcn.00406029
push esi
push 0x40a508
push eax
call fcn.00405e8a
jmp 0x401755
push 2
pop ecx
xor esi, esi
call fcn.00401443
cmp eax, 1
mov dword [ebp + 0x64], edx
mov dword [ebp + 0x68], eax
jl case.0x401626.67
mov ecx, 0x3ff
cmp eax, ecx
jle 0x4029e6
mov dword [ebp + 0x68], ecx
cmp byte [edi], 0
je 0x402a66
push edi
mov byte [ebp + 0x7f], 0
call fcn.00406029
cmp dword [ebp + 0x68], esi
mov edi, eax
jle 0x402a66
push 1
lea eax, [ebp + 0x5f]
push eax
push edi
call fcn.00405e5b
test eax, eax
je 0x402a66
cmp dword [ebp + 0x48], 0
jne 0x402a33
cmp byte [ebp + 0x7f], 0xd
je 0x402a43
cmp byte [ebp + 0x7f], 0xa
je 0x402a43
mov al, byte [ebp + 0x5f]
mov byte [esi + ebx], al
inc esi
mov byte [ebp + 0x7f], al
test al, al
je 0x402a66
cmp esi, dword [ebp + 0x68]
jl 0x4029fc
jmp 0x402a66
movzx eax, byte [ebp + 0x5f]
push eax
push ebx
call fcn.00406010
jmp 0x402d78
mov al, byte [ebp + 0x5f]
cmp byte [ebp + 0x7f], al
je 0x402a59
cmp al, 0xd
je 0x402a53
cmp al, 0xa
jne 0x402a59
mov byte [esi + ebx], al
inc esi
jmp 0x402a66
push 1
push 0
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov byte [esi + ebx], 0
test esi, esi
jmp 0x401757
cmp byte [edi], 0
je case.0x401626.67
push 2
pop ecx
call fcn.00401443
push dword [ebp + 0x48]
mov dword [ebp + 0x64], edx
push 0
push eax
push edi
call fcn.00406029
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp + 0x40], 0
jl case.0x401626.67
push eax
push ebx
jmp 0x40170b
push edi
call fcn.00406029
test eax, eax
je case.0x401626.67
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x401626.67
push ebx
call fcn.00406029
test eax, eax
je 0x401900
lea ecx, [ebp - 0x158]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x401900
jmp 0x402b13
push 2
pop esi
call fcn.00401460
lea ecx, [ebp - 0x158]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x402b0c
mov byte [ebx], 0
jmp 0x40296f
push eax
push ebx
call fcn.00406010
lea eax, [ebp - 0x12c]
push eax
push edi
call fcn.004060b2
jmp case.0x401626.67
push 0xfffffffffffffff0
pop esi
mov ebx, 0xfffffd66
call fcn.00401460
mov edi, eax
push edi
mov dword [ebp + 0x28], edi
call fcn.00405cc5
test eax, eax
jne 0x402b49
push 0xffffffffffffffec
pop esi
call fcn.00401460
push edi
call fcn.00405dbe
push 2
push 0x40000000
push edi
call fcn.00405de4
mov dword [ebp + 0x6c], eax
cmp eax, 0xffffffff
je 0x402c34
mov eax, dword [0x43f164]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
push 0x40
mov dword [ebp + 0x68], eax
call esi
xor edi, edi
mov dword [ebp + 0x7c], eax
cmp eax, edi
je 0x402c29
push edi
call fcn.00403053
push dword [ebp + 0x68]
push dword [ebp + 0x7c]
call fcn.00402ff7
push dword [ebp + 0x48]
push 0x40
call esi
mov esi, eax
mov dword [ebp + 0x64], esi
cmp esi, edi
je 0x402bf2
push dword [ebp + 0x50]
mov ecx, dword [ebp + 0x44]
push dword [ebp + 0x48]
mov eax, dword [ebp + 0x40]
push esi
push edi
push ecx
push eax
cmp dword [0x43f150], edi
je 0x402bc5
push 1
jmp 0x402bc6
push edi
call fcn.00403126
jmp 0x402be4
mov ebx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 0x7c]
push ebx
add esi, 8
push esi
add eax, ecx
push eax
call fcn.00405d9a
add esi, ebx
cmp byte [esi], 0
jne 0x402bcd
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp + 0x68]
push dword [ebp + 0x7c]
push dword [ebp + 0x6c]
call fcn.00405e8a
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp + 0x54]
push edi
push edi
push dword [ebp + 0x6c]
push 0xffffffffffffffff
push 0xffffffffffffffff
cmp dword [0x43f150], edi
je 0x402c21
push 1
jmp 0x402c22
push edi
call fcn.00403126
mov ebx, eax
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402c36
xor edi, edi
cmp ebx, edi
push 0xfffffffffffffff3
pop esi
jge 0x402c50
push 0xffffffffffffffef
pop esi
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp + 0x70], 1
push esi
jmp 0x401800
xor ecx, ecx
call fcn.00401443
mov edi, eax
mov dword [ebp + 0x64], edx
cmp edi, dword [0x43f10c]
jae 0x40175d
mov eax, dword [ebp + 0x44]
mov esi, edi
imul esi, esi, 0x418
add esi, dword [0x43f108]
test eax, eax
jl 0x402c98
mov ecx, dword [esi + eax*4]
jne 0x402c92
add esi, 0x18
push esi
push ebx
jmp 0x402b1b
push ecx
jmp 0x402aa3
or ecx, 0xffffffff
sub ecx, eax
mov dword [ebp + 0x44], ecx
je 0x402cb2
xor ecx, ecx
inc ecx
call fcn.00401443
mov dword [ebp + 0x64], edx
mov dword [ebp + 0x40], eax
jmp 0x402cc5
push dword [ebp + 0x4c]
lea eax, [esi + 0x18]
push eax
call fcn.0040642d
or dword [esi + 8], 0x100
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x40]
mov dword [esi + eax*4], ecx
cmp dword [ebp + 0x48], 0
je case.0x401626.67
push edi
call fcn.00401186
jmp case.0x401626.67
xor ecx, ecx
call fcn.00401443
mov dword [ebp + 0x64], edx
cmp eax, 0x20
jae 0x40175d
xor esi, esi
cmp dword [ebp + 0x48], esi
je 0x402d1c
cmp dword [ebp + 0x44], esi
je 0x402d11
push eax
call fcn.004012a6
push esi
push esi
call fcn.004011f8
jmp case.0x401626.67
push esi
call fcn.004012f1
jmp 0x402aa2
cmp dword [ebp + 0x44], esi
je 0x402d33
mov ecx, dword [ebp + 0x40]
mov edx, dword [0x43f0f0]
mov dword [edx + eax*4 + 0x94], ecx
jmp case.0x401626.67
mov ecx, dword [0x43f0f0]
push dword [ecx + eax*4 + 0x94]
push ebx
call fcn.0040642d
jmp case.0x401626.67
mov ecx, dword [0x43b560]
xor esi, esi
push esi
and ecx, eax
push ecx
push 0xb
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp + 0x3c], esi
je case.0x401626.67
push esi
push esi
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp + 0x70]
add dword [0x43f1c8], eax
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4