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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x645f90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 0x53c]
mov dword [ebp - 0x1c], esi
cmp eax, edi
mov dword [ebp - 4], edi
je 0x4d8a14
push edi
call fcn.004dac90
mov eax, dword [esi + 0x53c]
xor ecx, ecx
mov dword [eax + 0x1c], 1
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], edi
mov word [ebp - 0x24], di
mov eax, dword [0x6fca20]
mov byte [ebp - 4], 1
cmp eax, edi
mov esi, eax
jne 0x4d84bf
mov esi, 0x6fca24
mov edx, 0x6c900c
test edx, edx
je 0x4d85d4
cmp esi, edi
je 0x4d85d4
mov eax, str.IDMGrHlp.exe
test eax, eax
je 0x4d85d4
lea ecx, [ebp - 0x44]
call fcn.004027c0
mov bl, 2
push edi
push 0x6c900c
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.004027e0
push esi
lea ecx, [ebp - 0x50]
call fcn.00401ee0
push str.IDMGrHlp.exe
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.00401ee0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00401070
mov edi, dword [ebp - 0x50]
test edi, edi
jne 0x4d852c
lea edi, [ebp - 0x4c]
mov esi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x34]
call fcn.00401f10
push eax
call fcn.00609a4e
mov edx, eax
push edi
mov dword [ebp - 0x38], edx
call fcn.00609a4e
mov ecx, dword [ebp - 0x38]
add esi, ecx
lea esi, [eax + esi + 3]
lea edi, [esi + esi]
push edi
call fcn.00622acb
mov edx, eax
add esp, 0xc
test edx, edx
mov dword [ebp - 0x28], edx
je 0x4d85ae
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x34]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x50]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x44]
call fcn.00401f10
push eax
mov eax, dword [ebp - 0x28]
push esi
push eax
call fcn.006099de
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00609a4e
add esp, 0x18
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.00401070
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00401070
mov ecx, dword [ebp - 0x28]
xor esi, esi
mov eax, ecx
cmp ecx, esi
jne 0x4d85df
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4d8995
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x40], si
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 5
cmp eax, esi
jne 0x4d8610
lea eax, [ebp - 0x24]
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x5c]
push edx
lea edx, [ebp - 0x58]
push ecx
push edx
push eax
call fcn.004cbb90
add esp, 0x10
cmp eax, esi
je 0x4d86e8
mov eax, dword [ebp - 0x58]
cmp eax, 6
jg 0x4d8653
jne 0x4d86e8
mov eax, dword [ebp - 0x5c]
cmp eax, 6
jg 0x4d8653
jne 0x4d86e8
cmp dword [ebp - 0x38], 7
jl 0x4d86e8
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x460]
cmp eax, esi
jne 0x4d8666
lea eax, [ecx + 0x464]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
mov esi, eax
test esi, esi
jle 0x4d86e8
mov eax, dword [0x6f7b78]
mov dword [ebp - 0x54], eax
push esi
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 6
call fcn.00623157
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx + 0x460]
test ecx, ecx
jne 0x4d86ae
lea ecx, [edx + 0x464]
push 0
push 0
push esi
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call edi
test eax, eax
je 0x4d86dc
mov ecx, dword [ebp - 0x54]
push 0
push ecx
lea ecx, [ebp - 0x44]
call fcn.004027e0
mov dword [0x6fcf64], 1
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 5
call fcn.00622d8a
mov esi, dword [ebp - 0x1c]
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0xb8]
rep stosd dword es:[edi], eax
lea edx, [esi + 0x44c]
lea ecx, [ebp - 0x14]
push edx
mov dword [ebp - 0xb8], 0x44
mov dword [ebp - 0x8c], 1
mov word [ebp - 0x88], 5
call fcn.00622aff
mov eax, dword [ebp - 0x14]
push 0x25
push eax
mov byte [ebp - 4], 7
call fcn.00609c00
add esp, 8
test eax, eax
je 0x4d874e
push 0x6d2f34
push 0x6d2f30
lea ecx, [ebp - 0x14]
call fcn.0061f504
mov ecx, dword [0x6f7b78]
mov dword [ebp - 0x18], ecx
xor edi, edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x30], di
mov eax, dword [0x6fca98]
mov byte [ebp - 4], 9
cmp eax, edi
mov eax, dword [0x6fcf64]
je 0x4d87c7
cmp eax, edi
mov eax, 0x6d2f2c
jne 0x4d8783
mov eax, 0x6d2f28
mov edx, dword [0x6fd760]
mov ecx, dword [0x6fd764]
push edx
mov edx, dword [0x6fd768]
push ecx
mov ecx, dword [0x6fd76c]
push edx
mov edx, dword [ebp - 0x14]
push ecx
mov ecx, dword [esi + 0x46c]
push edx
push ecx
push eax
mov eax, dword [esi + 0x550]
cdq
push edx
push eax
lea edx, [ebp - 0x18]
push str.___s___a_1__w__I64d__i_2000000000___s____s___ct___s___u___s___cp___s___lb___s___ok___s___cb___s_
push edx
call fcn.0061fae1
add esp, 0x2c
jmp 0x4d87fb
cmp eax, edi
mov eax, 0x6d2f2c
jne 0x4d87d5
mov eax, 0x6d2f28
mov ecx, dword [ebp - 0x14]
mov edx, dword [esi + 0x46c]
push ecx
push edx
push eax
mov eax, dword [esi + 0x550]
cdq
push edx
push eax
lea eax, [ebp - 0x18]
push str.___s___a_1__w__I64d__i_2000000000___s____s___ct___s___u___s_
push eax
call fcn.0061fae1
add esp, 0x1c
cmp dword [0x6fcf64], edi
je 0x4d880f
mov esi, dword [ebp - 0x44]
test esi, esi
jne 0x4d8826
lea esi, [ebp - 0x40]
jmp 0x4d8826
mov eax, dword [esi + 0x460]
cmp eax, edi
je 0x4d881d
mov esi, eax
jmp 0x4d8826
mov ecx, dword [ebp - 0x1c]
lea esi, [ecx + 0x464]
mov eax, dword [ebp - 0x28]
test eax, eax
mov edi, eax
jne 0x4d8832
lea edi, [ebp - 0x24]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4d8934
test edi, edi
je 0x4d8934
test esi, esi
je 0x4d8934
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], ecx
mov word [ebp - 0x4c], cx
push ecx
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xa
call fcn.004027e0
push edi
lea ecx, [ebp - 0x74]
call fcn.00401ee0
mov bl, 0xb
push esi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], bl
call fcn.00401ee0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xc
call fcn.00401070
mov esi, dword [ebp - 0x48]
lea ecx, [ebp - 0x68]
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
lea ecx, [ebp - 0x74]
mov edi, eax
call fcn.00401f10
push eax
call fcn.00609a4e
add esi, edi
lea esi, [eax + esi + 3]
lea edi, [esi + esi]
push edi
call fcn.00622acb
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x34], edx
je 0x4d8911
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x68]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x74]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x50]
call fcn.00401f10
push eax
mov eax, dword [ebp - 0x34]
push esi
push eax
call fcn.006099de
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00609a4e
add esp, 0x18
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0xa
call fcn.00401070
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 9
call fcn.00401070
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x4d893e
lea eax, [ebp - 0x30]
lea edx, [ebp - 0xc8]
lea ecx, [ebp - 0xb8]
push edx
push ecx
push 0
push 0
push 0x30
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x34]
je 0x4d89df
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.00622d8a
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00622d8a
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00401070
mov esi, dword [ebp - 0x1c]
push 0
mov ebx, dword [esi + 0x53c]
call fcn.0060b449
mov edx, dword [esi + 0x53c]
add esi, 0x528
add esp, 4
mov dword [edx + 0x20], eax
mov eax, dword [esi + 0x14]
push 0xffffffffffffffff
mov byte [eax + 0x24], 1
mov edi, dword [esi + 8]
lea ecx, [edi + 1]
push ecx
mov ecx, esi
call fcn.004e56c0
mov edx, dword [esi + 4]
mov eax, 0x77359400
mov dword [edx + edi*8], eax
mov dword [edx + edi*8 + 4], ebx
jmp 0x4d8a08
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.00622d8a
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00622d8a
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret