Function at 0x46015c
Capabilities:
Check for time delay via gettickcount
Create directory
Delete directory
Get common file path
Get file system object information
Log keystrokes via polling
Move file
Set current directory

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 6
add esp, 0xfffff004
push eax
dec eax
jne 0x460165
mov eax, dword [ebp - 4]
add esp, 0xfffff204
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
cmp ecx, 0x4e
jne 0x460e69
mov ebx, esi
xor eax, eax
mov edx, dword [eax*4 + 0x49f718]
cmp edx, dword [ebx + 8]
jne 0x4601b0
push 0
push 0
push 0x400
push dword [0x4b9818]
call sub.USER32.DLL_PostMessageA
jmp 0x4601b6
inc eax
cmp eax, 7
jl 0x46018e
mov ecx, dword [ebx + 8]
cmp ecx, 0xffffff96
jg 0x4601fa
je 0x4604af
cmp ecx, 0xffffff8e
jg 0x4601e5
je 0x460385
sub ecx, 0xffffff65
je 0x460223
sub ecx, 5
je 0x460a85
jmp 0x460e65
sub ecx, 0xffffff93
je 0x4603f4
dec ecx
je 0x4603fe
jmp 0x460e65
sub ecx, 0xffffff97
je 0x460410
sub ecx, 0x5d
je 0x4609d1
sub ecx, 9
je 0x4603d5
sub ecx, 2
je 0x4609a9
jmp 0x460e65
mov ebx, esi
push 0x10
call sub.USER32.DLL_GetKeyState
test ah, 0x80
setne al
and eax, 1
push 0x12
mov esi, eax
call sub.USER32.DLL_GetKeyState
test ah, 0x80
setne al
and eax, 1
push 0x11
mov edi, eax
call sub.USER32.DLL_GetKeyState
test ah, 0x80
setne al
and eax, 1
mov dword [ebp - 8], eax
cmp word [ebx + 0xc], 0x79
jne 0x460273
test esi, esi
jne 0x46026b
test edi, edi
je 0x460273
mov eax, dword [ebp - 4]
call fcn.004621a0
test esi, esi
jne 0x460e65
test edi, edi
jne 0x460e65
cmp dword [ebp - 8], 0
jne 0x460e65
movzx edx, word [ebx + 0xc]
cmp edx, 0x70
jg 0x4602b5
je 0x4602f9
sub edx, 9
je 0x460358
sub edx, 4
je 0x4602c7
sub edx, 0x13
je 0x4602ec
sub edx, 0xd
je 0x4602ec
jmp 0x460e65
sub edx, 0x71
je 0x460315
sub edx, 2
je 0x460322
dec edx
je 0x460331
jmp 0x460e65
call fcn.004957b8
mov dword [0x49f714], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00460e80
call fcn.004957b8
mov dword [0x49f714], eax
jmp 0x460e65
mov eax, dword [ebp - 4]
call fcn.00462114
jmp 0x460e65
push 0
push 0xb4
push 0x111
push dword [0x4b9818]
call sub.USER32.DLL_SendMessageA
jmp 0x460e65
mov eax, dword [ebp - 4]
call fcn.00462808
jmp 0x460e65
mov eax, 0x4b9d74
call fcn.00478740
jmp 0x460e65
cmp dword [0x4bc1a0], 0
je 0x460349
mov eax, 0x4b982c
call fcn.0045fb00
jmp 0x460e65
mov eax, 0x4b982c
call fcn.0045ef8c
jmp 0x460e65
cmp dword [0x4b981c], 0
je 0x460e65
call sub.USER32.DLL_GetFocus
mov edx, dword [ebp - 4]
cmp eax, dword [edx]
jne 0x460e65
push dword [0x4b981c]
call sub.USER32.DLL_SetFocus
jmp 0x460e65
mov edx, 0x49f86f
mov eax, 0x49f7d7
xor ecx, ecx
call fcn.004659f0
test eax, eax
je 0x460e65
mov eax, dword [ebp - 4]
call fcn.004626bc
test eax, eax
je 0x460e65
call fcn.004957b8
sub eax, dword [0x49f714]
cmp eax, 0x3e8
jle 0x460e65
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00460e80
jmp 0x460e65
mov eax, dword [ebp - 4]
call fcn.004626bc
test eax, eax
je 0x4603ed
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00460e80
xor eax, eax
jmp 0x460e74
call fcn.00456ad0
jmp 0x460e65
mov eax, dword [esi + 0x10]
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00462abc
jmp 0x460e65
mov eax, 0x4ba55c
call fcn.00458f50
cmp dword [0x4bc1a8], 0
jne 0x460442
cmp dword [0x4bc1a0], 0
je 0x46044c
cmp dword [0x4ba764], 0
jne 0x460439
test al, 0x40
jne 0x46044c
mov edx, dword [ebp - 4]
cmp byte [edx + 0x1c], 0
jne 0x46044c
mov eax, 1
jmp 0x460e74
mov edx, dword [ebp - 4]
cmp byte [edx + 0x1c], 0
je 0x46045e
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x1d], 0
jmp 0x4604a8
mov eax, esi
mov eax, dword [eax + 0x10]
xor edx, edx
mov dword [ebp - 0x34], edx
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x24], 0x400
mov ebx, dword [ebp - 4]
add ebx, 0x1d
mov dword [ebp - 0x28], ebx
push edx
push eax
push 0x102d
mov eax, dword [ebp - 4]
push dword [eax]
call sub.USER32.DLL_SendMessageA
push 0x49f7d4
push ebx
call fcn.0048d3d8
add esp, 8
test eax, eax
jne 0x4604a8
mov eax, 1
jmp 0x460e74
xor eax, eax
jmp 0x460e74
mov ebx, esi
xor esi, esi
xor edi, edi
mov byte [0x4c2554], 0
mov byte [ebp - 0x43c], 0
cmp dword [ebx + 0x20], 0
jne 0x460512
mov eax, dword [ebx + 0x10]
xor edx, edx
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x45c], edx
mov dword [ebp - 0x450], 0x4c2554
mov dword [ebp - 0x44c], 0x400
mov dword [ebp - 0x464], 1
lea ecx, [ebp - 0x464]
push ecx
push 0
push 0x1005
mov eax, dword [ebp - 4]
push dword [eax]
call sub.USER32.DLL_SendMessageA
jmp 0x46056f
push dword [ebx + 0x20]
push 0x4c2554
call fcn.0048d424
add esp, 8
mov edx, dword [ebx + 0x2c]
cmp edx, dword [0x4c2548]
jae 0x46056f
lea ecx, [ebp - 0x1094]
mov edx, dword [ebx + 0x2c]
mov eax, 0x4c2444
call fcn.004650ec
mov edi, dword [ebp - 0x478]
push 0x3ff
lea eax, [ebp - 0x1094]
push eax
lea edx, [ebp - 0x43c]
push edx
call fcn.0048d674
add esp, 0xc
lea eax, [ebp - 0x43c]
call fcn.0040b590
mov byte [eax], 0
cmp byte [0x4c2554], 0
jne 0x46057f
xor eax, eax
jmp 0x460e74
mov edx, dword [ebp - 4]
cmp byte [edx + 0x1c], 0
je 0x4606ff
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x1c], 0
cmp dword [0x4bc1a0], 0
je 0x4606b1
lea edx, [ebp - 0x1894]
mov eax, 0x49f87b
call fcn.00467b38
test al, al
je 0x46098b
lea ecx, [ebp - 0x1894]
push ecx
lea eax, [ebp - 0x1494]
push eax
call fcn.0048d424
add esp, 8
lea eax, [ebp - 0x1494]
call fcn.0040ba78
push 0x4c2554
lea edx, [ebp - 0x1494]
push edx
call fcn.0048d348
add esp, 8
push 0
lea ecx, [ebp - 0x1494]
push ecx
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x460688
call fcn.00452b14
mov edx, 0x4b26bc
mov eax, 0x4ba55c
xor ecx, ecx
call fcn.0045d1a4
lea edx, [ebp - 0x1494]
mov eax, dword [0x4b32bc]
call fcn.0040f0a4
mov dword [0x4b08a8], 1
mov dword [0x4b08a4], 1
mov byte [0x4b08e2], 0
mov edx, 0x4afff4
mov eax, 0x4ba55c
xor ecx, ecx
call fcn.0045d178
mov eax, dword [0x4ba764]
mov dword [0x4b1274], eax
mov eax, 0x4ba55c
xor edx, edx
call fcn.00458b34
lea ecx, [ebp - 0x1494]
push ecx
call sub.KERNEL32.DLL_RemoveDirectoryA
lea eax, [ebp - 0x1894]
push eax
call sub.KERNEL32.DLL_RemoveDirectoryA
jmp 0x46098b
lea edx, [ebp - 0x1494]
mov eax, 0x1f7
push edx
call fcn.004117b8
push eax
call fcn.0044a23c
add esp, 8
mov eax, 0x4a697c
call fcn.0042997c
jmp 0x46098b
push 0
push 0x4c2554
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x4606cb
mov esi, 1
jmp 0x46098b
cmp byte [0x4c2554], 0
je 0x46098b
push 0x4c2554
mov eax, 0x1f7
call fcn.004117b8
push eax
call fcn.0044a23c
add esp, 8
mov eax, 0x4a697c
call fcn.0042997c
jmp 0x46098b
cmp dword [ebx + 0x20], 0
je 0x46098b
cmp dword [0x4bc1a0], 0
je 0x46094c
lea edx, [ebp - 0x24c4]
mov eax, dword [ebp - 4]
call fcn.004637f8
test al, al
je 0x460743
push 0x400
lea edx, [ebp - 0x24c4]
push edx
mov ecx, dword [ebp - 4]
add ecx, 0x1d
push ecx
call fcn.0048d674
add esp, 0xc
push 0x4c2554
call fcn.0048d454
pop ecx
mov ebx, eax
test edi, 4
je 0x46077d
cmp ebx, 4
jle 0x46077d
push 0x49f804
mov eax, 0x4c2550
add eax, ebx
push eax
call fcn.0048d3d8
add esp, 8
test eax, eax
jne 0x46077d
mov byte [ebx + 0x4c2550], 0
test edi, 1
je 0x4607aa
cmp ebx, 2
jle 0x4607aa
push 0x49f7fc
mov edx, 0x4c2552
add edx, ebx
push edx
call fcn.0048d3d8
add esp, 8
test eax, eax
jne 0x4607aa
mov byte [ebx + 0x4c2552], 0
xor eax, eax
call fcn.00452aac
call fcn.00453070
mov ecx, 0x4b2abc
mov edx, 0x4b26bc
mov eax, 0x4ba55c
call fcn.0045d1a4
mov edx, dword [0x4ba764]
mov eax, 0x49f7d7
mov dword [0x4b1274], edx
mov edx, 0x49f7f3
xor ecx, ecx
call fcn.004659f0
test eax, eax
setne al
and eax, 1
test al, al
je 0x46080b
lea edx, [ebp - 0x43c]
push edx
lea ecx, [ebp - 0x28c4]
push ecx
call fcn.0048d424
add esp, 8
jmp 0x460828
lea edx, [ebp - 0x28c4]
mov eax, 0x4ba55c
xor ecx, ecx
call fcn.0045d178
lea eax, [ebp - 0x28c4]
call fcn.0040ba78
mov edx, dword [ebp - 4]
mov eax, dword [0x4b32bc]
add edx, 0x1d
call fcn.0040f0a4
lea edx, [ebp - 0x28c4]
push edx
lea ecx, [ebp - 0x30c4]
push ecx
call fcn.0048d424
add esp, 8
push 0x4c2554
lea eax, [ebp - 0x30c4]
push eax
call fcn.0048d348
add esp, 8
lea edx, [ebp - 0x30c4]
mov eax, dword [0x4b32bc]
call fcn.0040f0a4
push 0
lea edx, [ebp - 0x30c4]
mov eax, 0x4c2444
xor ecx, ecx
call fcn.004651ec
test al, al
je 0x4608dc
lea edx, [ebp - 0x30c4]
lea eax, [ebp - 0x2cc4]
call fcn.0040e6f4
test eax, eax
jne 0x4608b9
lea edx, [ebp - 0x30c4]
push edx
lea ecx, [ebp - 0x2cc4]
push ecx
call fcn.0048d3d8
add esp, 8
test eax, eax
jne 0x4608dc
mov edx, 0x4c2554
mov eax, dword [ebp - 4]
call fcn.0045eea8
mov eax, 0x50d
call fcn.004117b8
push eax
call fcn.0044a23c
pop ecx
jmp 0x46098b
mov byte [ebp - 9], 1
mov ebx, 0x4c2554
jmp 0x460923
and eax, 0xff
push eax
push dword [0x49f734]
call fcn.0048d561
add esp, 8
test eax, eax
je 0x460905
mov byte [ebp - 9], 0
jmp 0x460929
mov edi, ebx
cmp byte [0x4a88c8], 0
je 0x46091e
mov eax, 0x4a87c8
mov edx, edi
call fcn.0040fe4c
jmp 0x460921
lea eax, [edi + 1]
mov ebx, eax
mov al, byte [ebx]
test al, al
jne 0x4608e7
cmp byte [ebp - 9], 0
je 0x46098b
lea eax, [ebp - 0x28c4]
xor edx, edx
call fcn.0040b9e8
test al, al
jne 0x46098b
mov eax, 0x4ba55c
call fcn.00458f8c
jmp 0x46098b
push 0x4c2554
mov ebx, dword [ebp - 4]
add ebx, 0x1d
push ebx
call sub.KERNEL32.DLL_MoveFileA
test eax, eax
je 0x460968
mov esi, 1
jmp 0x46098b
push 0x4c2554
push ebx
mov eax, 0x207
call fcn.004117b8
push eax
call fcn.0044a23c
add esp, 0xc
mov eax, 0x4a697c
call fcn.0042997c
push 0x4c2554
push 0
push 0x402
push dword [0x4b9818]
call sub.USER32.DLL_PostMessageA
mov eax, esi
jmp 0x460e74
push 0x30
mov eax, 0x65
call fcn.004117b8
push eax
mov eax, 0x1f4
call fcn.004117b8
push eax
push dword [0x4b9818]
call sub.USER32.DLL_MessageBoxA
jmp 0x460e65
mov ebx, esi
mov eax, dword [ebx + 0xc]
dec eax
je 0x4609e5
sub eax, 0x10000
je 0x4609ff
jmp 0x460e65
cmp byte [0x4b9d50], 0
jne 0x4609f5
xor eax, eax
jmp 0x460e74
mov eax, 0x20
jmp 0x460e74
cmp dword [0x49f738], 0xffffffff
jne 0x460a3a
mov edx, 0x49f8c6
mov eax, 0x49f892
mov ecx, 0xff0000
call fcn.004659f0
mov dword [0x49f738], eax
mov edx, 0x49f8cf
mov eax, 0x49f892
mov ecx, 0xd9213
call fcn.004659f0
mov dword [0x4c2954], eax
lea ecx, [ebp - 0x3cf4]
mov edx, dword [ebx + 0x2c]
mov eax, 0x4c2444
call fcn.004650ec
lea eax, [ebp - 0x3cf4]
mov edx, dword [eax + 0xc10]
mov dword [ebp - 0x10], edx
test byte [ebp - 0xf], 8
je 0x460a6b
mov ecx, dword [0x49f738]
mov dword [ebx + 0x30], ecx
test byte [ebp - 0xf], 0x40
je 0x460a79
mov eax, dword [0x4c2954]
mov dword [ebx + 0x30], eax
xor eax, eax
jmp 0x460e74
mov eax, esi
lea ebx, [eax + 0xc]
test byte [ebx], 2
je 0x460e65
lea ecx, [ebp - 0x4924]
mov edx, dword [ebx + 0x20]
mov eax, 0x4c2444
call fcn.004650ec
cmp dword [0x49f73c], 0
jne 0x460ac9
mov dword [0x49f73c], 0x4401
call fcn.004680ec
test al, al
jne 0x460ac9
or dword [0x49f73c], 0x10
call fcn.0040f8f0
test eax, eax
je 0x460c09
cmp word [ebp - 0x4524], 0
je 0x460c09
lea eax, [ebp - 0x53d8]
push eax
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryW
cmp dword [0x49f740], 0
jne 0x460b23
push 0x49f8e2
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x460b23
push 0x49f8ee
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x49f740], eax
cmp dword [0x49f740], 0
je 0x460bce
push dword [0x49f73c]
lea edx, [ebp - 0x4bd8]
push 0x2b4
push edx
lea ecx, [ebp - 0x4524]
push dword [ebp - 0x3d14]
push ecx
call dword [0x49f740]
test eax, eax
je 0x460bce
lea edx, [ebp - 0x54a0]
lea eax, [ebp - 0x49c4]
mov ecx, 0x10000000
call fcn.0040f944
cmp byte [ebp - 0x54a0], 0
jne 0x460b8c
lea ecx, [ebp - 0x54a0]
lea edx, [ebp - 0x4924]
mov eax, dword [ebp - 4]
call fcn.0046283c
mov eax, dword [0x4bc1a0]
lea edx, [ebp - 0x54a0]
add eax, 2
lea ecx, [ebp - 0x54c8]
mov dword [ebp - 0x54c0], eax
mov dword [ebp - 0x54b4], edx
push ecx
push dword [ebx + 4]
push 0x102e
mov eax, dword [ebp - 4]
push dword [eax]
call sub.USER32.DLL_SendMessageA
or dword [ebx], 0x1000
mov edx, dword [ebp - 0x4bd4]
mov dword [ebx + 0x1c], edx
lea ecx, [ebp - 0x5cc8]
push ecx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryW
lea edx, [ebp - 0x5cc8]
lea eax, [ebp - 0x53d8]
call fcn.0040fa48
test eax, eax
je 0x460cd9
lea ecx, [ebp - 0x53d8]
push ecx
call sub.KERNEL32.DLL_SetCurrentDirectoryW
jmp 0x460cd9
lea eax, [ebp - 0x6228]
push eax
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
push dword [0x49f73c]
lea edx, [ebp - 0x5e28]
push 0x160
push edx
lea ecx, [ebp - 0x4924]
push dword [ebp - 0x3d14]
push ecx
call sub.SHELL32.DLL_SHGetFileInfoA
test eax, eax
je 0x460ca1
cmp byte [ebp - 0x5d18], 0
jne 0x460c5f
lea ecx, [ebp - 0x5d18]
lea edx, [ebp - 0x4924]
mov eax, dword [ebp - 4]
call fcn.0046283c
mov eax, dword [0x4bc1a0]
lea edx, [ebp - 0x5d18]
add eax, 2
lea ecx, [ebp - 0x6250]
mov dword [ebp - 0x6248], eax
mov dword [ebp - 0x623c], edx
push ecx
push dword [ebx + 4]
push 0x102e
mov eax, dword [ebp - 4]
push dword [eax]
call sub.USER32.DLL_SendMessageA
or dword [ebx], 0x1000
mov edx, dword [ebp - 0x5e24]
mov dword [ebx + 0x1c], edx
lea ecx, [ebp - 0x6650]
push ecx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea eax, [ebp - 0x6650]
push eax
lea edx, [ebp - 0x6228]
push edx
call fcn.0048d3d8
add esp, 8
test eax, eax
je 0x460cd9
lea ecx, [ebp - 0x6228]
push ecx
call fcn.0048ee28
pop ecx
test byte [ebx + 1], 0x10
jne 0x460e65
lea ecx, [ebp - 0x6718]
lea edx, [ebp - 0x4924]
mov eax, dword [ebp - 4]
call fcn.0046283c
mov eax, dword [0x4bc1a0]
lea edx, [ebp - 0x6718]
add eax, 2
lea ecx, [ebp - 0x6740]
mov dword [ebp - 0x6738], eax
mov dword [ebp - 0x672c], edx
push ecx
push dword [ebx + 4]
push 0x102e
mov eax, dword [ebp - 4]
push dword [eax]
call sub.USER32.DLL_SendMessageA
lea edx, [ebp - 0x4524]
lea eax, [ebp - 0x4924]
call fcn.0040a514
mov esi, eax
lea eax, [ebp - 0x6b40]
mov edx, 0x400
call fcn.00467f64
lea eax, [ebp - 0x6b40]
call fcn.0040ba78
push 0x49f8fd
lea edx, [ebp - 0x6b40]
push edx
call fcn.0048d348
add esp, 8
mov eax, esi
call fcn.0040a258
test al, al
je 0x460dea
cmp dword [0x49f744], 0xffffffff
jne 0x460dcd
push 0
lea edx, [ebp - 0x6b40]
push edx
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x460dc1
push 0x4001
lea ecx, [ebp - 0x6ca0]
push 0x160
push ecx
lea eax, [ebp - 0x6b40]
push 0
push eax
call sub.SHELL32.DLL_SHGetFileInfoA
test eax, eax
je 0x460dc1
mov edx, dword [ebp - 0x6c9c]
mov dword [0x49f744], edx
lea ecx, [ebp - 0x6b40]
push ecx
call sub.KERNEL32.DLL_RemoveDirectoryA
cmp dword [0x49f744], 0xffffffff
je 0x460e65
or dword [ebx], 0x1000
mov eax, dword [0x49f744]
mov dword [ebx + 0x1c], eax
jmp 0x460e65
cmp dword [0x49f748], 0xffffffff
jne 0x460e4e
push 0x49f908
lea edx, [ebp - 0x6b40]
push edx
call fcn.0048f3cc
add esp, 8
test eax, eax
je 0x460e41
push eax
call fcn.0048eed0
pop ecx
push 0x4001
lea ecx, [ebp - 0x6e00]
push 0x160
push ecx
lea eax, [ebp - 0x6b40]
push 0
push eax
call sub.SHELL32.DLL_SHGetFileInfoA
test eax, eax
je 0x460e41
mov edx, dword [ebp - 0x6dfc]
mov dword [0x49f748], edx
lea ecx, [ebp - 0x6b40]
push ecx
call fcn.00490058
pop ecx
cmp dword [0x49f748], 0xffffffff
je 0x460e65
or dword [ebx], 0x1000
mov eax, dword [0x49f748]
mov dword [ebx + 0x1c], eax
xor eax, eax
jmp 0x460e74
push esi
push dword [ebp + 0xc]
push ecx
push edx
call sub.USER32.DLL_DefWindowProcA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8