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

Disassembly:
push ebp
lea ebp, [esp - 0x48]
sub esp, 0x48
push 0xffffffffffffffff
push 0x6247b9
mov eax, dword fs:[0]
push eax
sub esp, 0x100
push ebx
push esi
push edi
mov eax, dword [0x70a308]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 4], 0
mov ecx, dword [0x70fbd4]
test ecx, ecx
je 0x4774f4
mov edi, dword [ebp + 0x50]
push edi
call fcn.00507bd0
mov esi, eax
mov dword [ebp + 0x40], esi
test esi, esi
je 0x4774f4
xor eax, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov eax, dword [0x70fbec]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x477200
push edi
push 0x1399
push 0x111
mov ecx, dword [0x70fbec]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov ecx, ebx
call fcn.00459b70
mov byte [ebp + 0x47], 0
xor edi, edi
mov dword [ebp + 0x3c], edi
mov ecx, dword [ebx + 0x22c]
cmp edi, dword [ecx + 8]
jge 0x4772a0
push edi
call fcn.004bf1a0
mov esi, dword [eax]
cmp dword [esi + 0x91c], 1
jne 0x47724f
cmp dword [esi + 8], 0
je 0x47724b
mov edx, dword [ebp + 0x50]
cmp edx, dword [esi + 0x4c4]
jne 0x47724b
mov ecx, esi
call fcn.005a4540
jmp 0x47724f
mov byte [ebp + 0x47], 1
xor eax, eax
cmp dword [esi + 8], eax
je 0x477286
mov ecx, dword [ebp + 0x50]
cmp ecx, dword [esi + 0x4c4]
jne 0x477286
mov dword [esi + 8], eax
cmp dword [esi + 0x328], eax
jne 0x477275
cmp dword [esi + 0x330], 0x40
jne 0x477286
cmp dword [esi + 0x320], eax
je 0x477286
mov edx, dword [esi + 0x320]
mov dword [edx + 8], eax
mov byte [esi + 0x353], 0
mov byte [esi + 0x192], 0
inc edi
mov dword [ebp + 0x3c], edi
mov esi, dword [ebp + 0x40]
jmp 0x477211
add esi, 0x24
xor edi, edi
cmp esi, edi
je 0x4774f4
cmp dword [ebp + 0x54], edi
jne 0x4774f4
cmp byte [ebx + 0x1660], 0
je 0x4772e1
cmp byte [ebx + 0x113e], 0
je 0x4772da
lea eax, [ebx + 0xf36]
push eax
lea ecx, [ebx + 0x814]
call fcn.0051eee0
mov byte [ebx + 0x1660], 0
cmp byte [esi + 0x20], 0
je 0x47735f
cmp dword [esi + 0x14], edi
je 0x4772f1
mov eax, dword [esi + 0x14]
jmp 0x4772f4
lea eax, [esi + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4772f7
sub eax, edx
sar eax, 1
je 0x47735f
cmp dword [esi + 0x14], edi
je 0x477312
mov eax, dword [esi + 0x14]
jmp 0x477315
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47735f
push 0x3c
push edi
lea ecx, [ebp]
push ecx
call fcn.005f8cb0
add esp, 0xc
mov dword [ebp], 0x3c
mov dword [ebp + 4], 0x40
cmp dword [esi + 0x14], edi
je 0x477348
mov eax, dword [esi + 0x14]
jmp 0x47734b
lea eax, [esi + 0x18]
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x1c], 1
lea edx, [ebp]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp byte [esi + 0x43], 0
je 0x4773c0
push edi
push ecx
mov ecx, esp
mov dword [ebp + 0x50], esp
push 0x64f8bc
call fcn.004030e0
mov byte [ebp - 4], 1
push 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.0051cf60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10c]
call fcn.005d199e
cmp eax, 1
jne 0x4773b1
mov ecx, ebx
call fcn.0047a910
mov ecx, dword [ebx + 0x198]
call fcn.00437560
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.0045ae60
cmp byte [esi + 0x41], 0
je 0x47748e
mov ecx, ebx
call fcn.0047a910
push edi
mov ecx, ebx
call fcn.005d08a3
mov eax, dword [0x70fbec]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4773fa
push edi
push edi
push 0x10
mov ecx, dword [0x70fbec]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
movzx edx, byte [esi + 0x40]
mov dword [ebx + 0x284], edx
mov eax, dword [esi + 0x58]
mov dword [ebx + 0x288], eax
push edi
push 0xc8
push 0x19
mov ecx, dword [ebx + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
je 0x47742c
mov byte [ebx + 0x26d], 1
jmp 0x47748e
push edi
push ecx
mov ecx, esp
mov dword [ebp + 0x50], esp
push 0x64f8bc
call fcn.004030e0
mov byte [ebp - 4], 3
push edi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.0051cf60
mov byte [ebp - 4], 4
movzx edx, byte [esi + 0x40]
mov dword [ebp - 0x98], edx
mov eax, dword [esi + 0x58]
mov dword [ebp - 0x94], eax
mov dword [ebx + 0x284], edi
mov dword [ebx + 0x288], edi
lea ecx, [ebp - 0x10c]
call fcn.005d199e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.0045ae60
cmp byte [esi + 0x42], 0
je 0x4774f4
cmp byte [ebp + 0x47], 0
jne 0x4774a3
mov ecx, ebx
call fcn.0047c090
jmp 0x4774f4
push 0
push ecx
mov ecx, esp
mov dword [ebp + 0x50], esp
push 0x64f8bc
call fcn.004030e0
mov byte [ebp - 4], 5
push 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.0051cf60
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x10c]
call fcn.005d199e
cmp eax, 1
jne 0x4774e5
mov ecx, ebx
call fcn.0047c090
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.0045ae60
push 0
push 0x2710
push 4
mov ecx, dword [ebx + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
je 0x477512
mov byte [ebx + 0x261], 1
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x48
mov esp, ebp
pop ebp
ret 8