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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5853b0
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 + 0x534]
mov dword [ebp - 0x10], esp
test eax, eax
mov dword [ebp - 4], 0
je 0x48308d
push 0
call fcn.00485090
mov eax, dword [ebx + 0x534]
mov esi, 1
mov dword [eax + 0x14], esi
mov ecx, dword [0x639ad4]
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.0054ea7c
add esp, 0x14
lea edx, [ebp - 0x188]
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x18]
push str.IDMGrHlp.exe
push edx
push eax
push 0x6168c4
push ecx
call fcn.00562ecb
mov edx, dword [ebp - 0x18]
add esp, 0x14
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x48302e
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x78]
rep stosd dword es:[edi], eax
mov eax, dword [0x639ad4]
mov dword [ebp - 0x78], 0x44
mov dword [ebp - 0x4c], esi
mov word [ebp - 0x48], 5
mov dword [ebp - 0x1c], eax
mov eax, dword [0x63e438]
mov byte [ebp - 4], 2
test eax, eax
je 0x482fb7
mov ecx, dword [0x63ec80]
mov edx, dword [0x63ec84]
mov eax, dword [0x63ec88]
push ecx
mov ecx, dword [0x63ec8c]
push edx
mov edx, dword [ebx + 0x44c]
push eax
mov eax, dword [ebx + 0x46c]
push ecx
push edx
push eax
lea ecx, [ebx + 0x460]
sub esp, 0xc
mov edx, esp
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
mov edx, dword [ebx + 0x548]
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.00562ecb
add esp, 0x34
jmp 0x482ffc
mov edx, dword [ebx + 0x44c]
mov eax, dword [ebx + 0x46c]
push edx
push eax
lea ecx, [ebx + 0x460]
sub esp, 0xc
mov edx, esp
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
mov edx, dword [ebx + 0x548]
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.00562ecb
add esp, 0x24
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 0x48307c
call fcn.0056a100
mov edx, dword [ebx + 0x534]
push 0
mov dword [ebp - 0x30], edx
call fcn.0054f551
mov ecx, dword [ebx + 0x534]
add esp, 4
mov dword [ecx + 0x18], eax
mov edx, dword [ebx + 0x534]
mov byte [edx + 0x1c], 1
mov ecx, dword [ebx + 0x528]
mov eax, dword [ebx + 0x524]
mov esi, ecx
mov dword [ebp - 0x20], esi
lea edi, [esi + 1]
test edi, edi
jne 0x4830ca
test eax, eax
je 0x4830b7
mov edx, ecx
dec ecx
test edx, edx
je 0x48309e
add eax, 8
jmp 0x483070
call fcn.0056a100
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0056a100
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 + 0x524]
push eax
call fcn.005664c5
add esp, 4
mov dword [ebx + 0x524], 0
xor eax, eax
mov dword [ebx + 0x52c], eax
mov dword [ebx + 0x528], eax
jmp 0x48325b
test eax, eax
jne 0x483121
lea esi, [edi*8]
push esi
call fcn.0056649c
mov edx, eax
mov ecx, esi
mov dword [ebx + 0x524], 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 0x48310a
add edx, 8
jmp 0x4830fe
mov esi, dword [ebp - 0x20]
lea eax, [esi + 1]
mov dword [ebx + 0x52c], eax
mov dword [ebx + 0x528], eax
jmp 0x48325b
cmp edi, dword [ebx + 0x52c]
jg 0x483181
cmp ecx, edi
jge 0x48315d
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 0x483170
add eax, 8
jmp 0x483151
jle 0x483173
sub ecx, edi
lea edi, [eax + edi*8]
mov edx, ecx
dec ecx
test edx, edx
je 0x483173
add edi, 8
jmp 0x483164
mov esi, dword [ebp - 0x20]
lea eax, [esi + 1]
mov dword [ebx + 0x528], eax
jmp 0x48325b
mov eax, dword [ebx + 0x530]
test eax, eax
jne 0x4831ae
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4831a2
mov eax, 4
jmp 0x4831ae
cmp eax, 0x400
jle 0x4831ae
mov eax, 0x400
mov ecx, dword [ebx + 0x52c]
add eax, ecx
cmp edi, eax
mov dword [ebp - 0x14], eax
jl 0x4831c0
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x14]
lea ecx, [eax*8]
push ecx
call fcn.0056649c
mov ecx, dword [ebx + 0x528]
mov esi, dword [ebx + 0x524]
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 + 0x528]
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 0x48322d
add eax, 8
jmp 0x483221
mov eax, dword [ebx + 0x524]
push eax
call fcn.005664c5
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 + 0x524], edx
mov dword [ebx + 0x528], eax
mov dword [ebx + 0x52c], ecx
mov edx, dword [ebx + 0x524]
mov eax, 0x77359400
mov dword [edx + esi*8], eax
mov eax, dword [ebp - 0x30]
mov dword [edx + esi*8 + 4], eax
jmp 0x483081