Function at 0x465818
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 0x465821
mov eax, dword [ebp - 4]
add esp, 0xfffff600
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
cmp ecx, 0x4e
jne 0x46652e
mov ebx, esi
xor eax, eax
mov edx, dword [eax*4 + 0x4a7c6c]
cmp edx, dword [ebx + 8]
jne 0x46586c
push 0
push 0
push 0x400
push dword [0x4c2340]
call sub.USER32.DLL_PostMessageA
jmp 0x465872
inc eax
cmp eax, 7
jl 0x46584a
mov ecx, dword [ebx + 8]
cmp ecx, 0xffffff96
jg 0x4658b6
je 0x465b62
cmp ecx, 0xffffff8e
jg 0x4658a1
je 0x465a41
sub ecx, 0xffffff65
je 0x4658df
sub ecx, 5
je 0x466140
jmp 0x46652a
sub ecx, 0xffffff93
je 0x465ab0
dec ecx
je 0x465aba
jmp 0x46652a
sub ecx, 0xffffff97
je 0x465acc
sub ecx, 0x5d
je 0x46608c
sub ecx, 9
je 0x465a91
sub ecx, 2
je 0x466064
jmp 0x46652a
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 0x46592f
test esi, esi
jne 0x465927
test edi, edi
je 0x46592f
mov eax, dword [ebp - 4]
call fcn.00467878
test esi, esi
jne 0x46652a
test edi, edi
jne 0x46652a
cmp dword [ebp - 8], 0
jne 0x46652a
movzx edx, word [ebx + 0xc]
cmp edx, 0x70
jg 0x465971
je 0x4659b5
sub edx, 9
je 0x465a14
sub edx, 4
je 0x465983
sub edx, 0x13
je 0x4659a8
sub edx, 0xd
je 0x4659a8
jmp 0x46652a
sub edx, 0x71
je 0x4659d1
sub edx, 2
je 0x4659de
dec edx
je 0x4659ed
jmp 0x46652a
call fcn.0049d288
mov dword [0x4a7c68], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00466544
call fcn.0049d288
mov dword [0x4a7c68], eax
jmp 0x46652a
mov eax, dword [ebp - 4]
call fcn.004677ec
jmp 0x46652a
push 0
push 0xb4
push 0x111
push dword [0x4c2340]
call sub.USER32.DLL_SendMessageA
jmp 0x46652a
mov eax, dword [ebp - 4]
call fcn.00467ed8
jmp 0x46652a
mov eax, 0x4c28b4
call fcn.0047fb9c
jmp 0x46652a
cmp dword [0x4c4ce0], 0
je 0x465a05
mov eax, 0x4c2354
call fcn.004651bc
jmp 0x46652a
mov eax, 0x4c2354
call fcn.00464614
jmp 0x46652a
cmp dword [0x4c2344], 0
je 0x46652a
call sub.USER32.DLL_GetFocus
mov edx, dword [ebp - 4]
cmp eax, dword [edx]
jne 0x46652a
push dword [0x4c2344]
call sub.USER32.DLL_SetFocus
jmp 0x46652a
mov edx, 0x4a7dc3
mov eax, 0x4a7d2b
xor ecx, ecx
call fcn.0046c29c
test eax, eax
je 0x46652a
mov eax, dword [ebp - 4]
call fcn.00467d8c
test eax, eax
je 0x46652a
call fcn.0049d288
sub eax, dword [0x4a7c68]
cmp eax, 0x3e8
jle 0x46652a
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00466544
jmp 0x46652a
mov eax, dword [ebp - 4]
call fcn.00467d8c
test eax, eax
je 0x465aa9
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00466544
xor eax, eax
jmp 0x466539
call fcn.0045b88c
jmp 0x46652a
mov eax, dword [esi + 0x10]
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.0046818c
jmp 0x46652a
mov eax, 0x4c309c
call fcn.0045e264
cmp dword [0x4c4ce8], 0
jne 0x465af5
cmp dword [0x4c4ce0], 0
je 0x465aff
test al, 0x40
jne 0x465aff
mov edx, dword [ebp - 4]
cmp byte [edx + 0x1c], 0
jne 0x465aff
mov eax, 1
jmp 0x466539
mov edx, dword [ebp - 4]
cmp byte [edx + 0x1c], 0
je 0x465b11
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x1d], 0
jmp 0x465b5b
mov eax, esi
mov eax, dword [eax + 0x10]
xor edx, edx
mov dword [ebp - 0x38], edx
lea edx, [ebp - 0x40]
mov dword [ebp - 0x28], 0x400
mov ebx, dword [ebp - 4]
add ebx, 0x1d
mov dword [ebp - 0x2c], ebx
push edx
push eax
push 0x102d
mov eax, dword [ebp - 4]
push dword [eax]
call sub.USER32.DLL_SendMessageA
push 0x4a7d28
push ebx
call fcn.00494e18
add esp, 8
test eax, eax
jne 0x465b5b
mov eax, 1
jmp 0x466539
xor eax, eax
jmp 0x466539
mov ebx, esi
xor esi, esi
xor edi, edi
mov byte [0x4c90f4], 0
mov byte [ebp - 0x440], 0
cmp dword [ebx + 0x20], 0
jne 0x465bc5
mov eax, dword [ebx + 0x10]
xor edx, edx
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x460], edx
mov dword [ebp - 0x454], 0x4c90f4
mov dword [ebp - 0x450], 0x400
mov dword [ebp - 0x468], 1
lea ecx, [ebp - 0x468]
push ecx
push 0
push 0x1005
mov eax, dword [ebp - 4]
push dword [eax]
call sub.USER32.DLL_SendMessageA
jmp 0x465c22
push dword [ebx + 0x20]
push 0x4c90f4
call fcn.00494e64
add esp, 8
mov edx, dword [ebx + 0x2c]
cmp edx, dword [0x4c90e8]
jae 0x465c22
lea ecx, [ebp - 0x1098]
mov edx, dword [ebx + 0x2c]
mov eax, 0x4c8fe4
call fcn.0046b960
mov edi, dword [ebp - 0x47c]
push 0x3ff
lea eax, [ebp - 0x1098]
push eax
lea edx, [ebp - 0x440]
push edx
call fcn.00495044
add esp, 0xc
lea eax, [ebp - 0x440]
call fcn.0040ba60
mov byte [eax], 0
cmp byte [0x4c90f4], 0
jne 0x465c32
xor eax, eax
jmp 0x466539
mov edx, dword [ebp - 4]
cmp byte [edx + 0x1c], 0
je 0x465db2
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x1c], 0
cmp dword [0x4c4ce0], 0
je 0x465d64
lea edx, [ebp - 0x1898]
mov eax, 0x4a7dcf
call fcn.0046e748
test al, al
je 0x466046
lea ecx, [ebp - 0x1898]
push ecx
lea eax, [ebp - 0x1498]
push eax
call fcn.00494e64
add esp, 8
lea eax, [ebp - 0x1498]
call fcn.0040bf64
push 0x4c90f4
lea edx, [ebp - 0x1498]
push edx
call fcn.00494d88
add esp, 8
push 0
lea ecx, [ebp - 0x1498]
push ecx
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x465d3b
call fcn.00457328
mov edx, 0x4badb4
mov eax, 0x4c309c
xor ecx, ecx
call fcn.00462684
lea edx, [ebp - 0x1498]
mov eax, dword [0x4bb9b4]
call fcn.0040f77c
mov dword [0x4b8f88], 1
mov dword [0x4b8f84], 1
mov byte [0x4b8fc2], 0
mov edx, 0x4b86d5
mov eax, 0x4c309c
xor ecx, ecx
call fcn.00462658
mov eax, dword [0x4c32a4]
mov dword [0x4b996c], eax
mov eax, 0x4c309c
xor edx, edx
call fcn.0045ddf4
lea ecx, [ebp - 0x1498]
push ecx
call sub.KERNEL32.DLL_RemoveDirectoryA
lea eax, [ebp - 0x1898]
push eax
call sub.KERNEL32.DLL_RemoveDirectoryA
jmp 0x466046
lea edx, [ebp - 0x1498]
mov eax, 0x1f7
push edx
call fcn.0041202c
push eax
call fcn.0044e3e0
add esp, 8
mov eax, 0x4af020
call fcn.0042cfac
jmp 0x466046
push 0
push 0x4c90f4
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x465d7e
mov esi, 1
jmp 0x466046
cmp byte [0x4c90f4], 0
je 0x466046
push 0x4c90f4
mov eax, 0x1f7
call fcn.0041202c
push eax
call fcn.0044e3e0
add esp, 8
mov eax, 0x4af020
call fcn.0042cfac
jmp 0x466046
cmp dword [ebx + 0x20], 0
je 0x466046
cmp dword [0x4c4ce0], 0
je 0x466007
lea edx, [ebp - 0x24c8]
mov eax, dword [ebp - 4]
call fcn.00468f30
test al, al
je 0x465df6
push 0x400
lea edx, [ebp - 0x24c8]
push edx
mov ecx, dword [ebp - 4]
add ecx, 0x1d
push ecx
call fcn.00495044
add esp, 0xc
push 0x4c90f4
call fcn.00494e94
pop ecx
mov ebx, eax
test edi, 4
je 0x465e30
cmp ebx, 4
jle 0x465e30
push 0x4a7d58
mov eax, 0x4c90f0
add eax, ebx
push eax
call fcn.00494e18
add esp, 8
test eax, eax
jne 0x465e30
mov byte [ebx + 0x4c90f0], 0
test edi, 1
je 0x465e5d
cmp ebx, 2
jle 0x465e5d
push 0x4a7d50
mov edx, 0x4c90f2
add edx, ebx
push edx
call fcn.00494e18
add esp, 8
test eax, eax
jne 0x465e5d
mov byte [ebx + 0x4c90f2], 0
xor eax, eax
call fcn.004572bc
call fcn.00457894
mov ecx, 0x4bb1b4
mov edx, 0x4badb4
mov eax, 0x4c309c
call fcn.00462684
mov edx, dword [0x4c32a4]
mov eax, 0x4a7d2b
mov dword [0x4b996c], edx
mov edx, 0x4a7d47
xor ecx, ecx
call fcn.0046c29c
test eax, eax
setne al
and eax, 1
test al, al
je 0x465ebe
lea edx, [ebp - 0x440]
push edx
lea ecx, [ebp - 0x28c8]
push ecx
call fcn.00494e64
add esp, 8
jmp 0x465edb
lea edx, [ebp - 0x28c8]
mov eax, 0x4c309c
xor ecx, ecx
call fcn.00462658
lea eax, [ebp - 0x28c8]
call fcn.0040bf64
mov edx, dword [ebp - 4]
mov eax, dword [0x4bb9b4]
add edx, 0x1d
call fcn.0040f77c
lea edx, [ebp - 0x28c8]
push edx
lea ecx, [ebp - 0x2cc8]
push ecx
call fcn.00494e64
add esp, 8
push 0x4c90f4
lea eax, [ebp - 0x2cc8]
push eax
call fcn.00494d88
add esp, 8
mov eax, dword [0x4bb9c4]
call fcn.0040f74c
lea edx, [ebp - 0x2cc8]
mov eax, dword [0x4bb9c4]
call fcn.0040f77c
push 0
push 0
lea edx, [ebp - 0x2cc8]
mov eax, 0x4c8fe4
xor ecx, ecx
call fcn.0046ba60
test al, al
je 0x465f97
lea edx, [ebp - 0x2cc8]
mov ebx, dword [ebp - 4]
add ebx, 0x1d
mov eax, ebx
call fcn.0040ee00
test eax, eax
jne 0x465f74
lea edx, [ebp - 0x2cc8]
push edx
push ebx
call fcn.00494e18
add esp, 8
test eax, eax
jne 0x465f97
mov edx, 0x4c90f4
mov eax, dword [ebp - 4]
call fcn.00464530
mov eax, 0x50d
call fcn.0041202c
push eax
call fcn.0044e3e0
pop ecx
jmp 0x466046
mov byte [ebp - 9], 1
mov ebx, 0x4c90f4
jmp 0x465fde
and eax, 0xff
push eax
push dword [0x4a7c88]
call fcn.00494f31
add esp, 8
test eax, eax
je 0x465fc0
mov byte [ebp - 9], 0
jmp 0x465fe4
mov edi, ebx
cmp byte [0x4b0f6c], 0
je 0x465fd9
mov eax, 0x4b0e6c
mov edx, edi
call fcn.00410690
jmp 0x465fdc
lea eax, [edi + 1]
mov ebx, eax
mov al, byte [ebx]
test al, al
jne 0x465fa2
cmp byte [ebp - 9], 0
je 0x466046
lea eax, [ebp - 0x28c8]
xor edx, edx
call fcn.0040bed4
test al, al
jne 0x466046
mov eax, 0x4c309c
call fcn.0045e2a0
jmp 0x466046
push 0x4c90f4
mov ebx, dword [ebp - 4]
add ebx, 0x1d
push ebx
call sub.KERNEL32.DLL_MoveFileA
test eax, eax
je 0x466023
mov esi, 1
jmp 0x466046
push 0x4c90f4
push ebx
mov eax, 0x207
call fcn.0041202c
push eax
call fcn.0044e3e0
add esp, 0xc
mov eax, 0x4af020
call fcn.0042cfac
push 0x4c90f4
push 0
push 0x402
push dword [0x4c2340]
call sub.USER32.DLL_PostMessageA
mov eax, esi
jmp 0x466539
push 0x30
mov eax, 0x65
call fcn.0041202c
push eax
mov eax, 0x1f4
call fcn.0041202c
push eax
push dword [0x4c2340]
call sub.USER32.DLL_MessageBoxA
jmp 0x46652a
mov ebx, esi
mov eax, dword [ebx + 0xc]
dec eax
je 0x4660a0
sub eax, 0x10000
je 0x4660ba
jmp 0x46652a
cmp byte [0x4c2878], 0
jne 0x4660b0
xor eax, eax
jmp 0x466539
mov eax, 0x20
jmp 0x466539
cmp dword [0x4a7c8c], 0xffffffff
jne 0x4660f5
mov edx, 0x4a7e1a
mov eax, 0x4a7de6
mov ecx, 0xff0000
call fcn.0046c29c
mov dword [0x4a7c8c], eax
mov edx, 0x4a7e23
mov eax, 0x4a7de6
mov ecx, 0xd9213
call fcn.0046c29c
mov dword [0x4c94f4], eax
lea ecx, [ebp - 0x38f8]
mov edx, dword [ebx + 0x2c]
mov eax, 0x4c8fe4
call fcn.0046b960
lea eax, [ebp - 0x38f8]
mov edx, dword [eax + 0xc10]
mov dword [ebp - 0x10], edx
test byte [ebp - 0xf], 8
je 0x466126
mov ecx, dword [0x4a7c8c]
mov dword [ebx + 0x30], ecx
test byte [ebp - 0xf], 0x40
je 0x466134
mov eax, dword [0x4c94f4]
mov dword [ebx + 0x30], eax
xor eax, eax
jmp 0x466539
mov eax, esi
lea ebx, [eax + 0xc]
test byte [ebx], 2
je 0x46652a
lea ecx, [ebp - 0x4528]
mov edx, dword [ebx + 0x20]
mov eax, 0x4c8fe4
call fcn.0046b960
cmp dword [0x4a7c90], 0
jne 0x466184
mov dword [0x4a7c90], 0x4401
call fcn.0046ed3c
test al, al
jne 0x466184
or dword [0x4a7c90], 0x10
call fcn.0040ffc8
test eax, eax
je 0x4662c4
cmp word [ebp - 0x4128], 0
je 0x4662c4
lea eax, [ebp - 0x4fdc]
push eax
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryW
cmp dword [0x4a7c94], 0
jne 0x4661de
push 0x4a7e36
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4661de
push 0x4a7e42
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a7c94], eax
cmp dword [0x4a7c94], 0
je 0x466289
push dword [0x4a7c90]
lea edx, [ebp - 0x47dc]
push 0x2b4
push edx
lea ecx, [ebp - 0x4128]
push dword [ebp - 0x3918]
push ecx
call dword [0x4a7c94]
test eax, eax
je 0x466289
lea edx, [ebp - 0x50a4]
lea eax, [ebp - 0x45c8]
mov ecx, 0x10000000
call fcn.0041001c
cmp byte [ebp - 0x50a4], 0
jne 0x466247
lea ecx, [ebp - 0x50a4]
lea edx, [ebp - 0x4528]
mov eax, dword [ebp - 4]
call fcn.00467f0c
mov eax, dword [0x4c4ce0]
lea edx, [ebp - 0x50a4]
add eax, 2
lea ecx, [ebp - 0x50cc]
mov dword [ebp - 0x50c4], eax
mov dword [ebp - 0x50b8], 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 - 0x47d8]
mov dword [ebx + 0x1c], edx
lea ecx, [ebp - 0x58cc]
push ecx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryW
lea edx, [ebp - 0x58cc]
lea eax, [ebp - 0x4fdc]
call fcn.0041028c
test eax, eax
je 0x466394
lea ecx, [ebp - 0x4fdc]
push ecx
call sub.KERNEL32.DLL_SetCurrentDirectoryW
jmp 0x466394
lea eax, [ebp - 0x5e2c]
push eax
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
push dword [0x4a7c90]
lea edx, [ebp - 0x5a2c]
push 0x160
push edx
lea ecx, [ebp - 0x4528]
push dword [ebp - 0x3918]
push ecx
call sub.SHELL32.DLL_SHGetFileInfoA
test eax, eax
je 0x46635c
cmp byte [ebp - 0x591c], 0
jne 0x46631a
lea ecx, [ebp - 0x591c]
lea edx, [ebp - 0x4528]
mov eax, dword [ebp - 4]
call fcn.00467f0c
mov eax, dword [0x4c4ce0]
lea edx, [ebp - 0x591c]
add eax, 2
lea ecx, [ebp - 0x5e54]
mov dword [ebp - 0x5e4c], eax
mov dword [ebp - 0x5e40], 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 - 0x5a28]
mov dword [ebx + 0x1c], edx
lea ecx, [ebp - 0x6254]
push ecx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea eax, [ebp - 0x6254]
push eax
lea edx, [ebp - 0x5e2c]
push edx
call fcn.00494e18
add esp, 8
test eax, eax
je 0x466394
lea ecx, [ebp - 0x5e2c]
push ecx
call fcn.004967f8
pop ecx
test byte [ebx + 1], 0x10
jne 0x46652a
lea ecx, [ebp - 0x631c]
lea edx, [ebp - 0x4528]
mov eax, dword [ebp - 4]
call fcn.00467f0c
mov eax, dword [0x4c4ce0]
lea edx, [ebp - 0x631c]
add eax, 2
lea ecx, [ebp - 0x6344]
mov dword [ebp - 0x633c], eax
mov dword [ebp - 0x6330], 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 - 0x4128]
lea eax, [ebp - 0x4528]
call fcn.0040a938
mov esi, eax
lea eax, [ebp - 0x6744]
mov edx, 0x400
call fcn.0046eb74
lea eax, [ebp - 0x6744]
call fcn.0040bf64
push 0x4a7e51
lea edx, [ebp - 0x6744]
push edx
call fcn.00494d88
add esp, 8
mov eax, esi
call fcn.0040a67c
test al, al
je 0x4664a8
cmp dword [0x4a7c98], 0xffffffff
jne 0x466488
push 0
lea edx, [ebp - 0x6744]
push edx
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x46647c
push 0x4001
lea ecx, [ebp - 0x68a4]
push 0x160
push ecx
lea eax, [ebp - 0x6744]
push 0
push eax
call sub.SHELL32.DLL_SHGetFileInfoA
test eax, eax
je 0x46647c
mov edx, dword [ebp - 0x68a0]
mov dword [0x4a7c98], edx
lea ecx, [ebp - 0x6744]
push ecx
call sub.KERNEL32.DLL_RemoveDirectoryA
cmp dword [0x4a7c98], 0xffffffff
je 0x46652a
or dword [ebx], 0x1000
mov eax, dword [0x4a7c98]
mov dword [ebx + 0x1c], eax
jmp 0x46652a
cmp dword [0x4a7c9c], 0xffffffff
jne 0x466513
push 0x4a7e5c
lea edx, [ebp - 0x6744]
push edx
call fcn.00496d9c
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x466506
push dword [ebp - 0x18]
call fcn.004968a0
pop ecx
push 0x4001
lea ecx, [ebp - 0x6a04]
push 0x160
push ecx
lea eax, [ebp - 0x6744]
push 0
push eax
call sub.SHELL32.DLL_SHGetFileInfoA
test eax, eax
je 0x466506
mov edx, dword [ebp - 0x6a00]
mov dword [0x4a7c9c], edx
lea ecx, [ebp - 0x6744]
push ecx
call fcn.00497a28
pop ecx
cmp dword [0x4a7c9c], 0xffffffff
je 0x46652a
or dword [ebx], 0x1000
mov eax, dword [0x4a7c9c]
mov dword [ebx + 0x1c], eax
xor eax, eax
jmp 0x466539
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