Function at 0x100672ac
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 8]
lea edx, [ebp - 4]
lea eax, [ebp - 0x38]
push 0x1f
push eax
push edx
push ebx
call fcn.10026824
add esp, 0x10
test eax, eax
je 0x10067358
mov edx, dword [0x100ce600]
mov dword [ebp - 0x50], eax
xor eax, eax
cmp edx, 2
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
jge 0x100672fb
mov dword [ebp - 0x3c], 0x100ce560
jmp 0x1006730d
lea eax, [ebp - 0x3c]
push eax
call fcn.10032050
pop ecx
test eax, eax
jne 0x10067793
mov ebx, dword [ebp - 0x3c]
add ebx, 0x10
mov eax, dword [ebp - 0x50]
mov dword [ebx], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebx + 4], edx
mov ecx, dword [ebp - 0x48]
mov dword [ebx + 8], ecx
mov edi, dword [ebp - 0x44]
mov dword [ebx + 0xc], edi
mov eax, dword [ebp - 0x40]
mov dword [ebx + 0x10], eax
mov ebx, dword [ebp - 0x3c]
lea eax, [ebp - 0x50]
push 0x14
add ebx, 0x10
push eax
push ebx
call fcn.1007f564
add esp, 0xc
test eax, eax
jne 0x10067313
mov ebx, dword [ebp - 0x10]
mov edi, 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
jne 0x10067546
or byte [eax + 0x128], 2
mov edx, dword [ebp - 4]
movzx edi, byte [edx + 0x128]
mov eax, edi
and eax, 0xfffffff7
and edi, 4
shr edi, 2
and edi, 1
shl edi, 3
or eax, edi
mov byte [edx + 0x128], al
mov edx, dword [ebp - 4]
movzx ecx, byte [edx + 0x128]
mov eax, ecx
and eax, 0xffffffdf
and ecx, 4
shr ecx, 2
and ecx, 1
shl ecx, 5
or eax, ecx
mov byte [edx + 0x128], al
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
cmp ebx, 0x20
jae 0x100674a8
mov eax, 1
mov ecx, ebx
shl eax, cl
test al, 0x61
je 0x100674a8
mov eax, 1
push eax
push eax
push eax
push dword [ebp - 4]
call fcn.1002b098
add esp, 0x10
test eax, eax
jne 0x100674a8
mov eax, dword [ebp - 4]
jmp 0x10067546
mov dword [ebp - 0x50], 0
call fcn.100936dd
mov ecx, dword [0x100ce600]
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
xor edx, edx
cmp ecx, 2
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], edx
jge 0x100674d8
mov dword [ebp - 0x3c], 0x100ce560
jmp 0x100674ea
lea eax, [ebp - 0x3c]
push eax
call fcn.10032050
pop ecx
test eax, eax
jne 0x100677a3
mov edi, dword [ebp - 0x3c]
add edi, 0x10
mov eax, dword [ebp - 0x50]
mov dword [edi], eax
mov edx, dword [ebp - 0x4c]
mov dword [edi + 4], edx
mov ecx, dword [ebp - 0x48]
mov dword [edi + 8], ecx
mov eax, dword [ebp - 0x44]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x40]
mov dword [edi + 0x10], eax
mov edi, dword [ebp - 0x3c]
lea eax, [ebp - 0x50]
push 0x14
add edi, 0x10
push eax
push edi
call fcn.1007f564
add esp, 0xc
test eax, eax
jne 0x100674f0
push ebx
call fcn.100260c0
pop ecx
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov eax, 0xffffffff
and byte [edx + 0x12b], 0xbf
mov esp, ebp
pop ebp
ret
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 + 0x131]
test dl, 4
je 0x10067615
push eax
call fcn.100521b8
pop ecx
test eax, eax
je 0x10067608
mov edx, dword [0x100ce600]
mov dword [ebp - 0x50], eax
xor eax, eax
cmp edx, 2
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
jge 0x100675ab
mov dword [ebp - 0x3c], 0x100ce560
jmp 0x100675bd
lea eax, [ebp - 0x3c]
push eax
call fcn.10032050
pop ecx
test eax, eax
jne 0x100677b3
mov ebx, dword [ebp - 0x3c]
add ebx, 0x10
mov eax, dword [ebp - 0x50]
mov dword [ebx], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebx + 4], edx
mov ecx, dword [ebp - 0x48]
mov dword [ebx + 8], ecx
mov edi, dword [ebp - 0x44]
mov dword [ebx + 0xc], edi
mov eax, dword [ebp - 0x40]
mov dword [ebx + 0x10], eax
mov ebx, dword [ebp - 0x3c]
lea eax, [ebp - 0x50]
push 0x14
add ebx, 0x10
push eax
push ebx
call fcn.1007f564
add esp, 0xc
test eax, eax
jne 0x100675c3
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
and byte [eax + 0x131], 0xfb
mov eax, dword [ebp - 4]
movzx edx, byte [eax + 0x12a]
test dl, 0x40
je 0x100676a6
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x1006768a
movzx edx, byte [edx + 0x1c]
test edx, edx
je 0x1006768a
mov byte [ebp - 0x14], 0xa
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x10067644
mov edx, dword [edx + 0x10]
jmp 0x10067646
xor edx, edx
push 1
test edx, edx
je 0x1006764e
mov eax, edx
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.1002ccf0
add esp, 0xc
cmp eax, 0xffffffff
je 0x100677d5
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x100677c3
mov byte [edx + 0x1c], 0
mov eax, dword [ebp - 4]
movzx edx, byte [eax + 0x12a]
and edx, 0x40
shr edx, 6
test edx, edx
je 0x100676a6
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x100676a6
mov byte [edx + 0x1d], 0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x100676a6
mov byte [edx + 0x20], 0
mov eax, dword [ebp - 4]
movzx edx, byte [eax + 0x12c]
mov dword [ebp - 0x18], esi
xor edi, edi
jmp 0x100676b9
mov edi, 1
test edx, 0x80
je 0x100676d4
mov ecx, dword [eax + 0x3c]
cmp ecx, dword [eax + 0x44]
je 0x100676d4
movzx esi, byte [ecx]
add ecx, 1
mov dword [eax + 0x3c], ecx
jmp 0x1006774e
lea ecx, [ebp - 8]
or edx, 0xffffff80
mov byte [eax + 0x12c], dl
mov esi, dword [ebp - 4]
movzx eax, byte [esi + 0x130]
mov edx, eax
push dword [esi + 0x108]
and edx, 0x20
shr edx, 5
and eax, 0x40
shr eax, 6
push eax
push edx
push ecx
push dword [esi + 0xbc]
push dword [esi + 0x38]
push dword [esi + 0xb4]
call fcn.1001d9a4
add esp, 0x1c
test eax, eax
je 0x100678db
mov eax, dword [ebp - 8]
test eax, eax
je 0x100678db
mov edx, dword [ebp - 4]
mov esi, dword [edx + 0x38]
add eax, esi
mov dword [edx + 0x44], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x38]
mov dword [ecx + 0x3c], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x3c]
movzx esi, byte [eax]
add eax, 1
mov dword [edx + 0x3c], eax
test edi, edi
jne 0x100678ad
mov eax, dword [ebp - 4]
movzx edx, byte [eax + 0x12c]
test dl, 2
je 0x10067785
movzx ecx, byte [eax + 0x12a]
test cl, 0x40
je 0x10067873
movzx ecx, byte [eax + 0x12b]
test cl, 2
je 0x100678a6
cmp esi, 0xd
je 0x100676b4
jmp 0x10067873
push 0
push eax
call fcn.100149ac
add esp, 8
jmp 0x10067349
push 0
push eax
call fcn.100149ac
add esp, 8
jmp 0x10067526
push 0
push eax
call fcn.100149ac
add esp, 8
jmp 0x100675f9
movzx edx, byte [eax + 0x12a]
and edx, 0x40
shr edx, 6
jmp 0x10067686
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 4]
mov ecx, dword [0x100ce600]
mov dword [ebp - 0x50], 0x26
mov dword [edx + 0xb8], eax
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
cmp ecx, 2
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
jge 0x1006780d
mov dword [ebp - 0x3c], 0x100ce560
jmp 0x1006781b
lea eax, [ebp - 0x3c]
push eax
call fcn.10032050
pop ecx
test eax, eax
jne 0x10067866
mov ebx, dword [ebp - 0x3c]
add ebx, 0x10
mov eax, dword [ebp - 0x50]
mov dword [ebx], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebx + 4], edx
mov ecx, dword [ebp - 0x48]
mov dword [ebx + 8], ecx
mov edi, dword [ebp - 0x44]
mov dword [ebx + 0xc], edi
mov eax, dword [ebp - 0x40]
mov dword [ebx + 0x10], eax
mov ebx, dword [ebp - 0x3c]
lea eax, [ebp - 0x50]
push 0x14
add ebx, 0x10
push eax
push ebx
call fcn.1007f564
add esp, 0xc
test eax, eax
jne 0x10067821
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
push 0
push eax
call fcn.100149ac
add esp, 8
jmp 0x10067857
movzx ecx, byte [eax + 0x12b]
mov edi, esi
mov esi, dword [ebp - 0x18]
push ebx
and ecx, 0xffffffbf
mov byte [eax + 0x12b], cl
call fcn.100260c0
pop ecx
test eax, eax
je 0x100679a0
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov edi, esi
mov esi, dword [ebp - 0x18]
jmp 0x1006787f
mov edi, esi
mov esi, dword [ebp - 0x18]
cmp edi, 0xa
je 0x100678cf
mov eax, dword [ebp - 4]
add dword [eax + 0x3c], 0xffffffff
mov edi, 0xd
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x12b]
jmp 0x1006787f
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x12b]
jmp 0x1006787f
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
and byte [eax + 0x12b], 0xbf
mov edx, dword [ebp - 4]
and byte [edx + 0x12c], 0x7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 4]
mov dword [edx + 0xb8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xb8]
cmp ecx, 0x26
je 0x10067916
mov eax, dword [ebp - 8]
test eax, eax
jne 0x1006791d
mov edi, 0xfffffffe
jmp 0x10067922
mov edi, 0xffffffff
mov edx, dword [0x100ce600]
mov dword [ebp - 0x50], edi
xor eax, eax
cmp edx, 2
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
jge 0x10067947
mov dword [ebp - 0x3c], 0x100ce560
jmp 0x10067955
lea eax, [ebp - 0x3c]
push eax
call fcn.10032050
pop ecx
test eax, eax
jne 0x100679ac
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], esi
add eax, 0x10
mov esi, eax
mov edx, dword [ebp - 0x50]
mov dword [esi], edx
mov ecx, dword [ebp - 0x4c]
mov dword [esi + 4], ecx
mov edx, dword [ebp - 0x48]
mov dword [esi + 8], edx
mov edx, dword [ebp - 0x44]
mov dword [esi + 0xc], edx
mov edx, dword [ebp - 0x40]
mov dword [esi + 0x10], edx
mov esi, dword [ebp - 0x3c]
lea edx, [ebp - 0x50]
push 0x14
add esi, 0x10
push edx
push esi
call fcn.1007f564
add esp, 0xc
test eax, eax
jne 0x10067960
mov esi, dword [ebp - 0x18]
push ebx
call fcn.100260c0
pop ecx
mov ebx, dword [ebp - 0x10]
mov eax, edi
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push 0
push eax
call fcn.100149ac
add esp, 8
jmp 0x10067999