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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f8625
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x288
push ebx
mov ebx, ecx
mov ecx, dword [0x6cefa0]
push esi
push edi
mov dword [ebp - 4], 0
test ecx, ecx
mov dword [ebp - 0x10], esp
je 0x45e9a3
mov edi, dword [ebp + 8]
push edi
call fcn.004f8670
mov esi, eax
test esi, esi
mov dword [ebp - 0x18], esi
je 0x45e9a3
xor eax, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov eax, dword [0x6cefb8]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45e6f1
mov ecx, dword [0x6cefb8]
push edi
push 0x1399
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov ecx, ebx
call fcn.00471610
mov byte [ebp - 0x11], 0
xor edi, edi
mov eax, dword [ebx + 0x1c8]
cmp edi, dword [eax + 8]
jge 0x45e76e
mov eax, dword [eax + 4]
mov edx, edi
shl edx, 4
mov esi, dword [eax + edx]
cmp dword [esi + 0x8bc], 1
jne 0x45e73f
mov eax, dword [esi + 8]
test eax, eax
je 0x45e73b
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x46c]
cmp ecx, eax
jne 0x45e73b
mov ecx, esi
call fcn.005938c0
jmp 0x45e73f
mov byte [ebp - 0x11], 1
mov eax, dword [esi + 8]
test eax, eax
je 0x45e75a
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x46c]
cmp edx, eax
jne 0x45e75a
mov dword [esi + 8], 0
mov byte [esi + 0x32a], 0
mov byte [esi + 0x17b], 0
mov esi, dword [ebp - 0x18]
inc edi
jmp 0x45e6ff
add esi, 0x24
test esi, esi
je 0x45e9a3
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x45e9a3
mov al, byte [ebx + 0x1428]
test al, al
je 0x45e7b1
mov al, byte [ebx + 0xfda]
test al, al
je 0x45e7aa
lea eax, [ebx + 0xdd2]
lea ecx, [ebx + 0x6b0]
push eax
call fcn.0050ac10
mov byte [ebx + 0x1428], 0
mov al, byte [esi + 0x18]
test al, al
je 0x45e7ff
mov eax, dword [esi + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x45e7ff
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x45e7ff
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 0x45e897
push 0
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x6ce7c8
call fcn.005e11fa
push 1
lea ecx, [ebp - 0x174]
call fcn.0050a320
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 1
call fcn.005dd186
cmp eax, 1
jne 0x45e84f
mov ecx, ebx
call fcn.0045bf90
mov ecx, dword [ebx + 0x14c]
call fcn.00433790
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.005e118c
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 4
call fcn.005db8ff
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 3
call fcn.005e8c95
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 2
call fcn.005e8ccd
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 0
call fcn.005dcdc7
mov al, byte [esi + 0x2d]
test al, al
je 0x45e98e
mov ecx, ebx
call fcn.0045bf90
push 0
mov ecx, ebx
call fcn.005e088c
mov edx, dword [0x6cefb8]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45e8d5
mov eax, dword [0x6cefb8]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebx + 0x1c]
xor ecx, ecx
mov cl, byte [esi + 0x2c]
push 0
push 0xc8
push 0x19
push edx
mov dword [ebx + 0x21c], ecx
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
je 0x45e903
mov byte [ebx + 0x209], 1
jmp 0x45e98e
push 0
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x6ce7c8
call fcn.005e11fa
push 0
lea ecx, [ebp - 0x174]
call fcn.0050a320
xor eax, eax
lea ecx, [ebp - 0x174]
mov al, byte [esi + 0x2c]
mov byte [ebp - 4], 6
mov dword [ebp - 0x118], eax
mov dword [ebx + 0x21c], 0
call fcn.005dd186
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.005e118c
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 9
call fcn.005db8ff
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 8
call fcn.005e8c95
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 7
call fcn.005e8ccd
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 0
call fcn.005dcdc7
mov al, byte [esi + 0x2e]
test al, al
je 0x45e9a3
mov al, byte [ebp - 0x11]
test al, al
jne 0x45e9d4
mov ecx, ebx
call fcn.0045a5a0
mov ecx, dword [ebx + 0x1c]
push 0
push 0x2710
push 4
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
je 0x45e9c1
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 0x6ce7c8
call fcn.005e11fa
push 4
lea ecx, [ebp - 0x294]
call fcn.0050a320
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 0xb
call fcn.005dd186
cmp eax, 1
jne 0x45ea0e
mov ecx, ebx
call fcn.0045a5a0
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 0xf
call fcn.005e118c
lea ecx, [ebp - 0x1bc]
mov byte [ebp - 4], 0xe
call fcn.005db8ff
lea ecx, [ebp - 0x1f8]
mov byte [ebp - 4], 0xd
call fcn.005e8c95
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0xc
call fcn.005e8ccd
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 0
call fcn.005dcdc7
jmp 0x45e9a3