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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c250
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x480
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x51c]
mov dword [ebp - 0x10], esp
test eax, eax
mov dword [ebp - 4], 0
je 0x46f0c5
push 0
call fcn.00470eb0
mov eax, dword [ebx + 0x51c]
mov esi, 1
mov dword [eax + 0x14], esi
mov ecx, dword [0x5c2a74]
mov dword [ebp - 0x18], ecx
lea edx, [ebp - 0x28c]
push 0x104
push edx
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x38c]
lea ecx, [ebp - 0x48c]
push eax
lea edx, [ebp - 0x188]
push ecx
lea eax, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x28c]
push eax
push ecx
call fcn.0052776a
add esp, 0x14
lea edx, [ebp - 0x188]
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x18]
push str.IDMGrHlp.exe
push edx
push eax
push 0x5a47ec
push ecx
call fcn.0053afda
mov edx, dword [ebp - 0x18]
add esp, 0x14
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x46f066
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x78]
rep stosd dword es:[edi], eax
mov eax, dword [0x5c2a74]
mov dword [ebp - 0x78], 0x44
mov dword [ebp - 0x4c], esi
mov word [ebp - 0x48], 5
mov dword [ebp - 0x1c], eax
mov eax, dword [0x5c73d0]
mov byte [ebp - 4], 2
test eax, eax
je 0x46f003
mov ecx, dword [0x5c7b38]
mov edx, dword [0x5c7b3c]
mov eax, dword [0x5c7b40]
push ecx
mov ecx, dword [0x5c7b44]
push edx
mov edx, dword [ebx + 0x43c]
push eax
mov eax, dword [ebx + 0x454]
push ecx
mov ecx, dword [ebx + 0x450]
push edx
mov edx, dword [ebx + 0x530]
push eax
mov eax, dword [ebp - 0x18]
push ecx
push edx
push eax
lea ecx, [ebp - 0x1c]
push str.__s___a_1__w__ld__i_2000000000__fn___s___ct___s___u___s___cp___s___lb___s___ok___s___cb___s_
push ecx
call fcn.0053afda
add esp, 0x2c
jmp 0x46f034
mov edx, dword [ebx + 0x43c]
mov eax, dword [ebx + 0x454]
mov ecx, dword [ebx + 0x450]
push edx
mov edx, dword [ebx + 0x530]
push eax
mov eax, dword [ebp - 0x18]
push ecx
push edx
push eax
lea ecx, [ebp - 0x1c]
push str.__s___a_1__w__ld__i_2000000000__fn___s___ct___s___u___s_
push ecx
call fcn.0053afda
add esp, 0x1c
lea edx, [ebp - 0x88]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x78]
push edx
push eax
push 0
push 0
push 0x30
push esi
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
je 0x46f0b4
call fcn.005421be
mov edx, dword [ebx + 0x51c]
push 0
mov dword [ebp - 0x30], edx
call fcn.00528272
mov ecx, dword [ebx + 0x51c]
add esp, 4
mov dword [ecx + 0x18], eax
mov edx, dword [ebx + 0x51c]
mov byte [edx + 0x1c], 1
mov ecx, dword [ebx + 0x510]
mov eax, dword [ebx + 0x50c]
mov esi, ecx
mov dword [ebp - 0x20], esi
lea edi, [esi + 1]
test edi, edi
jne 0x46f102
test eax, eax
je 0x46f0ef
mov edx, ecx
dec ecx
test edx, edx
je 0x46f0d6
add eax, 8
jmp 0x46f0a8
call fcn.005421be
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005421be
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x50c]
push eax
call fcn.00542796
add esp, 4
mov dword [ebx + 0x50c], 0
xor eax, eax
mov dword [ebx + 0x514], eax
mov dword [ebx + 0x510], eax
jmp 0x46f293
test eax, eax
jne 0x46f159
lea esi, [edi*8]
push esi
call fcn.0054276d
mov edx, eax
mov ecx, esi
mov dword [ebx + 0x50c], eax
mov dword [ebp - 0x14], edi
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x14]
mov ecx, eax
dec eax
test ecx, ecx
je 0x46f142
add edx, 8
jmp 0x46f136
mov esi, dword [ebp - 0x20]
lea eax, [esi + 1]
mov dword [ebx + 0x514], eax
mov dword [ebx + 0x510], eax
jmp 0x46f293
cmp edi, dword [ebx + 0x514]
jg 0x46f1b9
cmp ecx, edi
jge 0x46f195
mov edx, edi
lea edi, [eax + ecx*8]
sub edx, ecx
xor eax, eax
mov dword [ebp - 0x14], edi
lea ecx, [edx*8]
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x14]
mov ecx, edx
dec edx
test ecx, ecx
je 0x46f1a8
add eax, 8
jmp 0x46f189
jle 0x46f1ab
sub ecx, edi
lea edi, [eax + edi*8]
mov edx, ecx
dec ecx
test edx, edx
je 0x46f1ab
add edi, 8
jmp 0x46f19c
mov esi, dword [ebp - 0x20]
lea eax, [esi + 1]
mov dword [ebx + 0x510], eax
jmp 0x46f293
mov eax, dword [ebx + 0x518]
test eax, eax
jne 0x46f1e6
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x46f1da
mov eax, 4
jmp 0x46f1e6
cmp eax, 0x400
jle 0x46f1e6
mov eax, 0x400
mov ecx, dword [ebx + 0x514]
add eax, ecx
cmp edi, eax
mov dword [ebp - 0x14], eax
jl 0x46f1f8
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x14]
lea ecx, [eax*8]
push ecx
call fcn.0054276d
mov ecx, dword [ebx + 0x510]
mov esi, dword [ebx + 0x50c]
shl ecx, 3
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 0x20]
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x510]
inc edx
sub edx, ecx
mov dword [ebp - 0x28], eax
lea edi, [eax + ecx*8]
xor eax, eax
lea ecx, [edx*8]
mov dword [ebp - 0x2c], edi
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x2c]
mov ecx, edx
dec edx
test ecx, ecx
je 0x46f265
add eax, 8
jmp 0x46f259
mov eax, dword [ebx + 0x50c]
push eax
call fcn.00542796
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
add esp, 4
inc eax
mov dword [ebx + 0x50c], edx
mov dword [ebx + 0x510], eax
mov dword [ebx + 0x514], ecx
mov edx, dword [ebx + 0x50c]
mov eax, 0x77359400
mov dword [edx + esi*8], eax
mov eax, dword [ebp - 0x30]
mov dword [edx + esi*8 + 4], eax
jmp 0x46f0b9