Function at 0x47c040
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 0x63f679
mov eax, dword fs:[0]
push eax
sub esp, 0x100
push ebx
push esi
push edi
mov eax, dword [0x7496c8]
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 [0x74f06c]
test ecx, ecx
je 0x47c3e1
mov edi, dword [ebp + 0x50]
push edi
call fcn.0050fdb0
mov esi, eax
mov dword [ebp + 0x40], esi
test esi, esi
je 0x47c3e1
xor ecx, ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
mov eax, dword [0x74f084]
cmp eax, ecx
je 0x47c0d3
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47c0d3
push edi
push 0x1399
push 0x111
mov eax, dword [0x74f084]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov ecx, ebx
call fcn.0045cb70
mov byte [ebp + 0x47], 0
xor edi, edi
mov dword [ebp + 0x3c], edi
jmp 0x47c0f0
mov ecx, dword [ebx + 0x234]
cmp edi, dword [ecx + 8]
jge 0x47c188
push edi
call fcn.004aaf60
mov esi, dword [eax]
cmp dword [esi + 0x93c], 1
jne 0x47c12e
cmp dword [esi + 8], 0
je 0x47c12a
mov ecx, dword [ebp + 0x50]
cmp ecx, dword [esi + 0x4e4]
jne 0x47c12a
mov ecx, esi
call fcn.005b4fe0
jmp 0x47c12e
mov byte [ebp + 0x47], 1
xor ecx, ecx
cmp dword [esi + 8], ecx
je 0x47c16e
mov edx, dword [ebp + 0x50]
cmp edx, dword [esi + 0x4e4]
jne 0x47c16e
mov dword [esi + 8], ecx
cmp dword [esi + 0x338], ecx
jne 0x47c15d
mov eax, dword [esi + 0x340]
cmp eax, 0x40
je 0x47c15d
cmp eax, 0x800
jne 0x47c16e
cmp dword [esi + 0x330], ecx
je 0x47c16e
mov eax, dword [esi + 0x330]
mov dword [eax + 8], ecx
mov byte [esi + 0x363], 0
mov byte [esi + 0x19a], 0
inc edi
mov dword [ebp + 0x3c], edi
mov esi, dword [ebp + 0x40]
jmp 0x47c0f0
add esi, 0x24
xor edi, edi
cmp esi, edi
je 0x47c3e1
cmp dword [ebp + 0x54], edi
jne 0x47c3e1
cmp byte [ebx + 0x1944], 0
je 0x47c1c9
cmp byte [ebx + 0x1162], 0
je 0x47c1c2
lea ecx, [ebx + 0xf5a]
push ecx
lea ecx, [ebx + 0x838]
call fcn.00528eb0
mov byte [ebx + 0x1944], 0
cmp byte [esi + 0x20], 0
je 0x47c248
cmp dword [esi + 0x14], edi
je 0x47c1d9
mov eax, dword [esi + 0x14]
jmp 0x47c1dc
lea eax, [esi + 0x18]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x47c1e0
sub eax, edx
sar eax, 1
je 0x47c248
cmp dword [esi + 0x14], edi
je 0x47c1fb
mov eax, dword [esi + 0x14]
jmp 0x47c1fe
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47c248
push 0x3c
push edi
lea edx, [ebp]
push edx
call fcn.00613900
add esp, 0xc
mov dword [ebp], 0x3c
mov dword [ebp + 4], 0x40
cmp dword [esi + 0x14], edi
je 0x47c231
mov eax, dword [esi + 0x14]
jmp 0x47c234
lea eax, [esi + 0x18]
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x1c], 1
lea eax, [ebp]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp byte [esi + 0x43], 0
je 0x47c2a9
push edi
push ecx
mov ecx, esp
mov dword [ebp + 0x50], esp
push 0x66b96c
call fcn.004030c0
mov byte [ebp - 4], 1
push 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.00525fc0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10c]
call fcn.005e96b1
cmp eax, 1
jne 0x47c29a
mov ecx, ebx
call fcn.0047fc00
mov ecx, dword [ebx + 0x198]
call fcn.004384d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.0045df40
cmp byte [esi + 0x41], 0
je 0x47c37b
mov ecx, ebx
call fcn.0047fc00
push edi
mov ecx, ebx
call fcn.005e852c
mov eax, dword [0x74f084]
cmp eax, edi
je 0x47c2e7
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47c2e7
push edi
push edi
push 0x10
mov ecx, dword [0x74f084]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
movzx edx, byte [esi + 0x40]
mov dword [ebx + 0x28c], edx
mov eax, dword [esi + 0x58]
mov dword [ebx + 0x290], 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 0x47c319
mov byte [ebx + 0x275], 1
jmp 0x47c37b
push edi
push ecx
mov ecx, esp
mov dword [ebp + 0x50], esp
push 0x66b96c
call fcn.004030c0
mov byte [ebp - 4], 3
push edi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.00525fc0
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 + 0x28c], edi
mov dword [ebx + 0x290], edi
lea ecx, [ebp - 0x10c]
call fcn.005e96b1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.0045df40
cmp byte [esi + 0x42], 0
je 0x47c3e1
cmp byte [ebp + 0x47], 0
jne 0x47c390
mov ecx, ebx
call fcn.004814f0
jmp 0x47c3e1
push 0
push ecx
mov ecx, esp
mov dword [ebp + 0x50], esp
push 0x66b96c
call fcn.004030c0
mov byte [ebp - 4], 5
push 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.00525fc0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x10c]
call fcn.005e96b1
cmp eax, 1
jne 0x47c3d2
mov ecx, ebx
call fcn.004814f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.0045df40
push 0
push 0x2710
push 4
mov ecx, dword [ebx + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
je 0x47c3ff
mov byte [ebx + 0x269], 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