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

Disassembly:
push ebp
lea ebp, [esp - 0x40]
sub esp, 0x40
push 0xffffffffffffffff
push 0x62a550
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp + 0x3c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 0x53c], edi
je 0x4c3c12
push edi
call fcn.004bdda0
mov eax, dword [esi + 0x53c]
mov dword [eax + 0x1c], 1
mov dword [ebp + 0x30], edi
mov dword [ebp + 0x38], edi
xor ecx, ecx
mov word [ebp + 0x34], cx
mov byte [ebp - 4], 1
mov eax, dword [0x70f66c]
cmp eax, edi
jne 0x4c38f7
mov eax, 0x70f670
push edi
push str.IDMGrHlp.exe
push eax
push 0x64ed70
lea ecx, [ebp + 0x30]
call fcn.00402300
mov eax, dword [ebp + 0x30]
cmp eax, edi
jne 0x4c3915
lea eax, [ebp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c3bcb
mov dword [ebp + 0x14], edi
mov dword [ebp], edi
mov dword [ebp + 4], edi
mov dword [ebp + 0x24], edi
mov dword [ebp + 0x2c], edi
xor edx, edx
mov word [ebp + 0x28], dx
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x30]
cmp eax, edi
jne 0x4c3948
lea eax, [ebp + 0x34]
lea ecx, [ebp + 4]
push ecx
lea edx, [ebp]
push edx
lea ecx, [ebp + 0x14]
push ecx
push eax
call fcn.004bd840
add esp, 0x10
test eax, eax
je 0x4c3a24
mov eax, dword [ebp + 0x14]
cmp eax, 6
jg 0x4c398b
jne 0x4c3a24
mov eax, dword [ebp]
cmp eax, 6
jg 0x4c398b
jne 0x4c3a24
cmp dword [ebp + 4], 7
jl 0x4c3a24
cmp dword [esi + 0x460], edi
je 0x4c399b
mov eax, dword [esi + 0x460]
jmp 0x4c39a1
lea eax, [esi + 0x464]
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push eax
push edi
push 0xfde9
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call ebx
mov edi, eax
test edi, edi
jle 0x4c3a22
lea ecx, [ebp + 0x14]
call fcn.004024e0
mov byte [ebp - 4], 3
push edi
lea ecx, [ebp + 0x14]
call fcn.00402830
cmp dword [esi + 0x460], 0
je 0x4c39e2
mov ecx, dword [esi + 0x460]
jmp 0x4c39e8
lea ecx, [esi + 0x464]
push 0
push 0
push edi
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call ebx
test eax, eax
je 0x4c3a16
push 0
mov edx, dword [ebp + 0x14]
push edx
lea ecx, [ebp + 0x24]
call fcn.00401960
mov dword [0x70ffc0], 1
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x14]
call fcn.00402550
xor edi, edi
push 0x44
push edi
lea eax, [ebp - 0x54]
push eax
call fcn.005f8cb0
add esp, 0xc
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 1
mov ecx, 5
mov word [ebp - 0x24], cx
lea edx, [esi + 0x44c]
push edx
lea ecx, [ebp + 0x10]
call fcn.004027d0
mov bl, 4
mov byte [ebp - 4], bl
push 0x25
mov eax, dword [ebp + 0x10]
push eax
call fcn.005f9b50
add esp, 8
test eax, eax
je 0x4c3a82
push 0x662598
push 0x662594
lea ecx, [ebp + 0x10]
call fcn.00402bf0
lea ecx, [ebp + 0xc]
call fcn.004024e0
mov byte [ebp - 4], 5
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x20], edi
xor ecx, ecx
mov word [ebp + 0x1c], cx
mov byte [ebp - 4], 6
mov eax, 0x662590
cmp dword [0x70f738], edi
je 0x4c3afc
cmp dword [0x70ffc0], edi
jne 0x4c3ab8
mov eax, 0x66258c
mov edx, dword [0x710ad8]
push edx
mov ecx, dword [0x710ad4]
push ecx
mov edx, dword [0x710ad0]
push edx
mov ecx, dword [0x710acc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [esi + 0x46c]
push ecx
push eax
mov eax, dword [esi + 0x550]
cdq
push edx
push eax
push str.___s___a_1__w__I64d__i_2000000000___s____s___ct___s___u___s___cp___s___lb___s___ok___s___cb___s_
lea edx, [ebp + 0xc]
push edx
call fcn.00402f60
add esp, 0x2c
jmp 0x4c3b2f
cmp dword [0x70ffc0], edi
jne 0x4c3b09
mov eax, 0x66258c
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [esi + 0x46c]
push edx
push eax
mov eax, dword [esi + 0x550]
cdq
push edx
push eax
push str.___s___a_1__w__I64d__i_2000000000___s____s___ct___s___u___s_
lea eax, [ebp + 0xc]
push eax
call fcn.00402f60
add esp, 0x1c
cmp dword [0x70ffc0], edi
je 0x4c3b43
mov eax, dword [ebp + 0x24]
cmp eax, edi
jne 0x4c3b59
lea eax, [ebp + 0x28]
jmp 0x4c3b59
cmp dword [esi + 0x460], edi
je 0x4c3b53
mov eax, dword [esi + 0x460]
jmp 0x4c3b59
lea eax, [esi + 0x464]
mov ecx, dword [ebp + 0x30]
cmp ecx, edi
jne 0x4c3b63
lea ecx, [ebp + 0x34]
push edi
push eax
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp + 0x18]
call fcn.00402300
mov eax, dword [ebp + 0x18]
cmp eax, edi
jne 0x4c3b7c
lea eax, [ebp + 0x1c]
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x54]
push ecx
push edi
push edi
push 0x30
push 1
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, edi
je 0x4c3c38
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x18]
call fcn.004011f0
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.00402550
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x10]
call fcn.00402550
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x24]
call fcn.004011f0
mov edx, dword [esi + 0x53c]
mov dword [ebp + 0xc], edx
mov dword [ebp + 8], 0x77359400
push edi
call fcn.005fbc53
add esp, 4
mov ecx, dword [esi + 0x53c]
mov dword [ecx + 0x20], eax
mov edx, dword [esi + 0x53c]
mov byte [edx + 0x24], 1
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 0x528]
call fcn.004bf1c0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x30]
call fcn.004011f0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3c]
xor ecx, ebp
call fcn.005f85e7
add ebp, 0x40
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x18]
call fcn.004011f0
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.00402550
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x10]
call fcn.00402550
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x24]
call fcn.004011f0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x30]
call fcn.004011f0
jmp 0x4c3c19