Function at 0x466990
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x612635
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x290
push ebx
mov ebx, ecx
mov ecx, dword [0x6ec8c8]
push esi
push edi
mov dword [ebp - 4], 0
test ecx, ecx
mov dword [ebp - 0x10], esp
je 0x466cf9
mov edi, dword [ebp + 8]
push edi
call fcn.00507230
mov esi, eax
test esi, esi
mov dword [ebp - 0x18], esi
je 0x466cf9
xor eax, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov eax, dword [0x6ec8e0]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x466a11
mov ecx, dword [0x6ec8e0]
push edi
push 0x1399
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov ecx, ebx
call fcn.0047acd0
mov byte [ebp - 0x11], 0
xor edi, edi
mov eax, dword [ebx + 0x1c8]
cmp edi, dword [eax + 8]
jge 0x466ab4
mov eax, dword [eax + 4]
mov edx, edi
shl edx, 4
mov esi, dword [eax + edx]
cmp dword [esi + 0x8cc], 1
jne 0x466a63
mov eax, dword [esi + 8]
test eax, eax
je 0x466a5f
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x47c]
cmp ecx, eax
jne 0x466a5f
mov ecx, esi
call fcn.005ab8f0
jmp 0x466a63
mov byte [ebp - 0x11], 1
mov eax, dword [esi + 8]
xor ecx, ecx
cmp eax, ecx
je 0x466a9d
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x47c]
cmp edx, eax
jne 0x466a9d
mov eax, dword [esi + 0x310]
mov dword [esi + 8], ecx
cmp eax, 4
je 0x466a90
cmp dword [esi + 0x318], 0x40
jne 0x466a9d
mov eax, dword [esi + 0x308]
cmp eax, ecx
je 0x466a9d
mov dword [eax + 8], ecx
mov byte [esi + 0x33b], 0
mov byte [esi + 0x186], 0
mov esi, dword [ebp - 0x18]
inc edi
jmp 0x466a1f
add esi, 0x24
test esi, esi
je 0x466cf9
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x466cf9
mov al, byte [ebx + 0x142c]
test al, al
je 0x466af7
mov al, byte [ebx + 0xfde]
test al, al
je 0x466af0
lea eax, [ebx + 0xdd6]
lea ecx, [ebx + 0x6b4]
push eax
call fcn.0051ba60
mov byte [ebx + 0x142c], 0
mov al, byte [esi + 0x18]
test al, al
je 0x466b45
mov eax, dword [esi + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x466b45
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x466b45
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x14]
lea ecx, [ebp - 0x54]
push ecx
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], 0x40
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x38], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov al, byte [esi + 0x2f]
test al, al
je 0x466bdd
push 0
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x6ec0c8
call fcn.005fa8c7
push 1
lea ecx, [ebp - 0x178]
call fcn.0051a320
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 1
call fcn.005f6856
cmp eax, 1
jne 0x466b95
mov ecx, ebx
call fcn.00464090
mov ecx, dword [ebx + 0x14c]
call fcn.004370a0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.005fa859
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 4
call fcn.005f5000
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 3
call fcn.00602365
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 2
call fcn.0060239d
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 0
call fcn.005f6497
mov al, byte [esi + 0x2d]
test al, al
je 0x466ce4
mov ecx, ebx
call fcn.00464090
xor edi, edi
mov ecx, ebx
push edi
call fcn.005f9f56
mov edx, dword [0x6ec8e0]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x466c1a
mov eax, dword [0x6ec8e0]
push edi
push edi
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebx + 0x1c]
xor ecx, ecx
mov cl, byte [esi + 0x2c]
push edi
mov dword [ebx + 0x21c], ecx
mov edx, dword [esi + 0x3c]
push 0xc8
push 0x19
push eax
mov dword [ebx + 0x220], edx
call dword [sym.imp.USER32.dll_SetTimer]
cmp eax, edi
je 0x466c50
mov byte [ebx + 0x209], 1
jmp 0x466ce4
push edi
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x6ec0c8
call fcn.005fa8c7
push edi
lea ecx, [ebp - 0x178]
call fcn.0051a320
mov edx, dword [esi + 0x3c]
xor ecx, ecx
mov cl, byte [esi + 0x2c]
mov byte [ebp - 4], 6
mov dword [ebp - 0x11c], ecx
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x118], edx
mov dword [ebx + 0x21c], edi
mov dword [ebx + 0x220], edi
call fcn.005f6856
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.005fa859
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 9
call fcn.005f5000
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 8
call fcn.00602365
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 7
call fcn.0060239d
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 0
call fcn.005f6497
mov al, byte [esi + 0x2e]
test al, al
je 0x466cf9
mov al, byte [ebp - 0x11]
test al, al
jne 0x466d2a
mov ecx, ebx
call fcn.00461b40
mov eax, dword [ebx + 0x1c]
push 0
push 0x2710
push 4
push eax
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
je 0x466d17
mov byte [ebx + 0x1fd], 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x6ec0c8
call fcn.005fa8c7
push 4
lea ecx, [ebp - 0x29c]
call fcn.0051a320
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 0xb
call fcn.005f6856
cmp eax, 1
jne 0x466d64
mov ecx, ebx
call fcn.00461b40
lea ecx, [ebp - 0x17c]
mov byte [ebp - 4], 0xf
call fcn.005fa859
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], 0xe
call fcn.005f5000
lea ecx, [ebp - 0x1fc]
mov byte [ebp - 4], 0xd
call fcn.00602365
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 0xc
call fcn.0060239d
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 0
call fcn.005f6497
jmp 0x466cf9