Function at 0x1007870c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
lea edx, [ebp - 4]
lea eax, [ebp - 0x2c]
push 0x1c
push eax
push edx
push 5
call fcn.10026824
add esp, 0x10
test eax, eax
je 0x100787b2
mov edx, dword [0x100ce600]
mov dword [ebp - 0x44], eax
xor eax, eax
cmp edx, 2
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
jge 0x10078753
mov dword [ebp - 0x30], 0x100ce560
jmp 0x10078765
lea eax, [ebp - 0x30]
push eax
call fcn.10032050
pop ecx
test eax, eax
jne 0x1007889b
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], ebx
add eax, 0x10
mov ebx, eax
mov edx, dword [ebp - 0x44]
mov dword [ebx], edx
mov ecx, dword [ebp - 0x40]
mov dword [ebx + 4], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebx + 8], edx
mov edx, dword [ebp - 0x38]
mov dword [ebx + 0xc], edx
mov edx, dword [ebp - 0x34]
mov dword [ebx + 0x10], edx
mov ebx, dword [ebp - 0x30]
lea edx, [ebp - 0x44]
push 0x14
add ebx, 0x10
push edx
push ebx
call fcn.1007f564
add esp, 0xc
test eax, eax
jne 0x10078770
mov ebx, dword [ebp - 0xc]
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
or byte [eax + 0x12b], 0x40
mov eax, dword [ebp - 4]
movzx edx, byte [eax + 0x129]
test dl, 0x20
je 0x1007894b
mov dword [eax + 0x90], 0x80000000
mov dword [eax + 0x94], 0xffffffff
mov eax, dword [ebp - 4]
and byte [eax + 0x12e], 0x7f
mov eax, dword [ebp - 4]
movzx edx, byte [eax + 0x12a]
test dl, 0x40
je 0x10078858
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x10078858
movzx ecx, byte [ecx + 0x1c]
test ecx, ecx
je 0x10078858
mov byte [ebp - 8], 0xa
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x1007881b
mov edx, dword [edx + 0x10]
jmp 0x1007881d
xor edx, edx
push 1
test edx, edx
je 0x10078825
mov eax, edx
lea edx, [ebp - 8]
push edx
push eax
call fcn.1002ccf0
add esp, 0xc
cmp eax, 0xffffffff
je 0x100788ab
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x10078851
mov byte [edx + 0x1c], 0
mov eax, dword [ebp - 4]
movzx edx, byte [eax + 0x12a]
jmp 0x10078858
movzx edx, byte [eax + 0x12a]
test dl, 0x40
je 0x10078879
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x10078879
mov byte [edx + 0x1d], 0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x10078879
mov byte [edx + 0x20], 0
mov eax, dword [ebp - 4]
and byte [eax + 0x12b], 0xbf
push 5
call fcn.100260c0
pop ecx
test eax, eax
je 0x10078895
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
push 0
push eax
call fcn.100149ac
add esp, 8
jmp 0x100787a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 4]
mov ecx, dword [0x100ce600]
mov dword [ebp - 0x44], 0x26
mov dword [edx + 0xb8], eax
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
cmp ecx, 2
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
jge 0x100788e3
mov dword [ebp - 0x30], 0x100ce560
jmp 0x100788f1
lea eax, [ebp - 0x30]
push eax
call fcn.10032050
pop ecx
test eax, eax
jne 0x1007893e
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], ebx
add eax, 0x10
mov ebx, eax
mov edx, dword [ebp - 0x44]
mov dword [ebx], edx
mov ecx, dword [ebp - 0x40]
mov dword [ebx + 4], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebx + 8], edx
mov edx, dword [ebp - 0x38]
mov dword [ebx + 0xc], edx
mov edx, dword [ebp - 0x34]
mov dword [ebx + 0x10], edx
mov ebx, dword [ebp - 0x30]
lea edx, [ebp - 0x44]
push 0x14
add ebx, 0x10
push edx
push ebx
call fcn.1007f564
add esp, 0xc
test eax, eax
jne 0x100788fc
mov ebx, dword [ebp - 0xc]
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
push 0
push eax
call fcn.100149ac
add esp, 8
jmp 0x10078935
or byte [eax + 0x128], 2
mov ecx, dword [ebp - 4]
movzx eax, byte [ecx + 0x128]
mov edx, eax
and edx, 0xfffffff7
and eax, 4
shr eax, 2
and eax, 1
shl eax, 3
or edx, eax
mov byte [ecx + 0x128], dl
mov ecx, dword [ebp - 4]
movzx eax, byte [ecx + 0x128]
mov edx, eax
and edx, 0xffffffdf
and eax, 4
shr eax, 2
and eax, 1
shl eax, 5
or edx, eax
mov byte [ecx + 0x128], dl
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x131]
movzx eax, byte [ecx + 0x128]
and edx, 0xfffffffe
and eax, 4
shr eax, 2
and eax, 1
or edx, eax
mov byte [ecx + 0x131], dl
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x131]
movzx eax, byte [ecx + 0x128]
and edx, 0xfffffffd
and eax, 4
shr eax, 2
and eax, 1
add eax, eax
or edx, eax
mov byte [ecx + 0x131], dl
mov ecx, dword [ebp - 4]
movzx eax, byte [ecx + 0x128]
mov edx, eax
and edx, 0xffffffbf
and eax, 4
shr eax, 2
and eax, 1
shl eax, 6
or edx, eax
mov byte [ecx + 0x128], dl
mov ecx, dword [ebp - 4]
movzx eax, byte [ecx + 0x128]
mov edx, eax
and edx, 0x7f
and eax, 4
shr eax, 2
and eax, 1
shl eax, 7
or edx, eax
mov byte [ecx + 0x128], dl
mov ecx, dword [ebp - 4]
movzx eax, byte [ecx + 0x128]
mov edx, eax
and edx, 0xffffffef
and eax, 4
shr eax, 2
and eax, 1
shl eax, 4
or edx, eax
mov byte [ecx + 0x128], dl
mov eax, 1
push eax
push eax
push eax
push dword [ebp - 4]
call fcn.1002b098
add esp, 0x10
test eax, eax
jne 0x10078a6c
mov eax, dword [ebp - 4]
jmp 0x100787cf
mov dword [ebp - 0x44], 0
call fcn.100936dd
mov ecx, dword [0x100ce600]
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
xor edx, edx
cmp ecx, 2
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
jge 0x10078a9c
mov dword [ebp - 0x30], 0x100ce560
jmp 0x10078aaa
lea eax, [ebp - 0x30]
push eax
call fcn.10032050
pop ecx
test eax, eax
jne 0x10078b09
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], ebx
add eax, 0x10
mov ebx, eax
mov edx, dword [ebp - 0x44]
mov dword [ebx], edx
mov ecx, dword [ebp - 0x40]
mov dword [ebx + 4], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebx + 8], edx
mov edx, dword [ebp - 0x38]
mov dword [ebx + 0xc], edx
mov edx, dword [ebp - 0x34]
mov dword [ebx + 0x10], edx
mov ebx, dword [ebp - 0x30]
lea edx, [ebp - 0x44]
push 0x14
add ebx, 0x10
push edx
push ebx
call fcn.1007f564
add esp, 0xc
test eax, eax
jne 0x10078ab5
mov ebx, dword [ebp - 0xc]
push 5
call fcn.100260c0
pop ecx
mov edx, dword [ebp - 4]
and byte [edx + 0x12b], 0xbf
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
push 0
push eax
call fcn.100149ac
add esp, 8
jmp 0x10078aee