Function at 0x12fb28f0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x838
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
mov dword [0x131c8f38], ebp
call edi
mov esi, dword [esp + 0x84c]
mov dword [0x131c8f40], eax
cmp esi, ebp
je 0x12fb31c6
cmp word [esi], bp
je 0x12fb31c6
cmp dword [esp + 0x850], ebp
je 0x12fb31c6
mov eax, dword [esp + 0x854]
cmp eax, ebp
je 0x12fb31c6
mov eax, dword [eax]
cmp eax, ebp
je 0x12fb31c6
cmp dword [0x131c8f44], ebp
jne 0x12fb297d
mov dword [0x131c8f38], 2
mov dword [0x131c8f3c], 0x1928
call edi
pop edi
pop esi
mov dword [0x131c8f40], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x838
ret
push ebp
push 0x60
push 1
push 7
push 0x80
push 0x120089
push esi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x44], eax
call fcn.12fed860
mov ebx, eax
add esp, 0x1c
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x12fb29e1
call edi
cmp eax, 2
je 0x12fb30dd
push ebp
push 0x60
push 1
push 7
push 0x80
push 0x120089
push esi
call fcn.12fed860
add esp, 0x1c
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x12fb30ed
mov ebx, eax
push ebp
push ebp
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call ebp
mov ecx, 0xf7
xor eax, eax
lea edi, [esp + 0x469]
mov byte [esp + 0x468], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp ebx, 0xffffffff
stosb byte es:[edi], al
je 0x12fb2aa6
lea eax, [esp + 0x468]
test eax, eax
je 0x12fb2aa6
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x12fb2a82
mov ecx, 0xf8
xor eax, eax
lea edi, [esp + 0x468]
xor esi, esi
rep stosd dword es:[edi], eax
push esi
lea ecx, [esp + 0x28]
push esi
push ecx
lea edx, [esp + 0x474]
push 0x3e0
push edx
push ebx
mov dword [esp + 0x3c], esi
call fcn.12fecef0
add esp, 0x18
test eax, eax
jne 0x12fb2abc
mov dword [0x131c8f38], 0xd
mov dword [0x131c8f3c], 0x1490
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c8f40], eax
mov dword [0x131c8f38], 0xf
mov dword [0x131c8f3c], 0x1955
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c8f40], eax
jmp 0x12fb2ea3
mov dword [0x131c8f38], 1
mov dword [0x131c8f3c], 0x1483
jmp 0x12fb2a77
lea eax, [esp + 0x468]
push eax
call fcn.12fba750
mov edx, eax
add esp, 4
cmp edx, esi
je 0x12fb310d
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 0xe1]
mov byte [esp + 0xe0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp edx, 3
stosb byte es:[edi], al
jne 0x12fb2ecb
lea ecx, [esp + 0xe0]
lea edx, [esp + 0x468]
push ecx
push edx
call fcn.12fb9df0
add esp, 8
test eax, eax
je 0x12fb3131
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c8f38], esi
call ebp
mov dword [0x131c8f40], eax
lea eax, [esp + 0xe0]
test eax, eax
jne 0x12fb2b73
mov dword [0x131c8f38], 1
mov dword [0x131c8f3c], 0x3745
call ebp
mov dword [0x131c8f40], eax
mov dword [0x131c8f38], 0x1f
mov dword [0x131c8f3c], 0x196d
call ebp
mov dword [0x131c8f40], eax
jmp 0x12fb2ea3
cmp dword [0x131c8f44], esi
jne 0x12fb2b91
mov dword [0x131c8f38], 2
mov dword [0x131c8f3c], 0x374b
jmp 0x12fb2b4c
cmp dword [0x131c94f4], esi
jne 0x12fb2be8
mov eax, dword [esp + 0x2cc]
mov edx, dword [esp + 0x2d4]
mov ecx, dword [0x131c8f54]
cmp eax, 0x2710
ja 0x12fb2bc6
cmp ecx, 0x2710
ja 0x12fb2be8
cmp ecx, eax
je 0x12fb2be8
cmp eax, esi
jne 0x12fb2bd6
jmp 0x12fb2be8
cmp eax, ecx
jne 0x12fb2bd6
cmp dword [0x131c8f5c], esi
ja 0x12fb2be8
cmp edx, esi
je 0x12fb2be8
push edx
push eax
call fcn.12fc04c0
add esp, 8
cmp eax, esi
je 0x12fb2b53
mov ecx, dword [esp + 0x104]
push ecx
call fcn.12ff0660
mov esi, eax
xor edx, edx
add esp, 4
cmp esi, edx
mov dword [esp + 0x4c], esi
je 0x12fb3155
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xa1]
mov byte [esp + 0xa0], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x48], edx
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x48]
stosb byte es:[edi], al
push edx
lea eax, [esp + 0xa4]
push 0x40
push eax
lea edx, [esp + 0xec]
push ecx
push edx
call fcn.12fc0eb0
add esp, 0x14
test eax, eax
je 0x12fb3175
mov eax, dword [esp + 0x11c]
test eax, eax
je 0x12fb3195
mov edi, dword [esp + 0x120]
cmp eax, 1
mov dword [esp + 0x1c], edi
jne 0x12fb2c82
mov eax, dword [esp + 0x124]
mov dword [esp + 0x1c], eax
mov edi, eax
push edi
call fcn.12f5bf8b
mov edx, dword [esi]
add esp, 4
mov ecx, esi
mov ebx, eax
push edi
call dword [edx + 0xc]
push eax
mov dword [esp + 0x3c], eax
call fcn.12f5bf8b
mov ecx, dword [esp + 0x18]
add esp, 4
xor esi, esi
mov ebp, eax
mov eax, dword [esp + 0x118]
push esi
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], esi
jmp 0x12fb2ccf
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x11c]
mov esi, dword [esp + 0x120]
inc eax
cmp eax, ecx
mov dword [esp + 0x40], eax
jne 0x12fb2cf5
mov esi, dword [esp + 0x124]
mov dword [esp + 0x20], 1
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x38]
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [esp + 0x58]
and ecx, 3
push edx
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x11c]
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], eax
push eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x1c]
push eax
push esi
push ebx
push ecx
call fcn.12fecef0
add esp, 0x18
test eax, eax
je 0x12fb2e00
mov edx, dword [ebx]
add esi, 0xfffffffc
lea edi, [ebx + 4]
push edx
push esi
push edi
call fcn.12fedaa0
add esp, 0xc
test eax, eax
je 0x12fb2e16
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x3c]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x44]
push ebp
push esi
push edi
push edx
lea edx, [esp + 0xb8]
push edx
mov dword [esp + 0x50], 0
call dword [eax + 0x14]
test eax, eax
je 0x12fb2e2c
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
cmp edx, ecx
jbe 0x12fb2e55
mov edi, dword [esp + 0x850]
mov eax, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x850]
add edi, eax
add esi, eax
sub edx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], edi
test eax, eax
mov dword [esp + 0x850], esi
mov dword [esp + 0x28], edx
je 0x12fb2cc7
jmp 0x12fb2e80
mov dword [0x131c8f38], 0xd
mov dword [0x131c8f3c], 0x19b3
jmp 0x12fb2e40
mov dword [0x131c8f38], 0x1c
mov dword [0x131c8f3c], 0x19bc
jmp 0x12fb2e40
mov dword [0x131c8f38], 0x12
mov dword [0x131c8f3c], 0x19c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c8f40], eax
mov dword [esp + 0x10], 1
jmp 0x12fb2e80
mov edi, dword [esp + 0x850]
mov ecx, edx
mov eax, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x18]
and ecx, 3
add eax, edx
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0
push ebx
call fcn.12f5bf80
push ebp
call fcn.12f5bf80
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x12fb2e9f
mov dword [esp + 0x2c], 1
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x854]
mov ecx, dword [esp + 0x18]
cmp ebx, 0xffffffff
mov dword [edx], ecx
je 0x12fb2ebc
push ebx
call dword [0x131ca5fc]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x838
ret
cmp edx, 1
je 0x12fb2ed5
cmp edx, 2
jne 0x12fb2ea3
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x61]
mov byte [esp + 0x60], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp edx, 1
stosb byte es:[edi], al
jne 0x12fb2ef2
push edx
jmp 0x12fb2f1a
mov edi, 0x13182818
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 2
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.12ff0660
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x12fb31a2
push 0
push 0
push 0x100
push ebx
call ebp
push 0x10000
call fcn.12f5bf8b
push 0x10000
mov ebx, eax
call fcn.12f5bf8b
add esp, 8
xor esi, esi
mov ebp, eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
jmp 0x12fb2f63
xor esi, esi
mov ecx, 0x4000
xor eax, eax
mov edi, ebx
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, 0x4000
mov edi, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push esi
push edx
push 0x10000
push ebx
push eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], 0x100
call fcn.12fecef0
add esp, 0x18
test eax, eax
je 0x12fb3057
mov eax, dword [esp + 0x24]
cmp eax, 0x10000
jae 0x12fb2fc8
cmp eax, esi
mov dword [esp + 0x20], 1
je 0x12fb30c3
mov ecx, dword [esp + 0x10]
lea edi, [esp + 0x60]
mov dword [esp + 0x30], esi
mov edx, dword [ecx]
lea ecx, [esp + 0x30]
push ecx
push 0x10000
push ebp
push eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
lea eax, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x28]
push eax
call dword [edx + 0x14]
test eax, eax
je 0x12fb306d
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
cmp edx, ecx
jbe 0x12fb3096
mov edi, dword [esp + 0x850]
mov eax, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x850]
add edi, eax
add esi, eax
sub edx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], edi
test eax, eax
mov dword [esp + 0x850], esi
mov dword [esp + 0x28], edx
je 0x12fb2f61
jmp 0x12fb30c1
mov dword [0x131c8f38], 0xd
mov dword [0x131c8f3c], 0x1a11
jmp 0x12fb3081
mov dword [0x131c8f38], 0x12
mov dword [0x131c8f3c], 0x1a21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c8f40], eax
mov dword [esp + 0x1c], 1
jmp 0x12fb30c3
mov edi, dword [esp + 0x850]
mov ecx, edx
mov eax, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x18]
and ecx, 3
add eax, edx
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
xor esi, esi
push ebx
call fcn.12f5bf80
push ebp
call fcn.12f5bf80
mov eax, dword [esp + 0x24]
add esp, 8
cmp eax, esi
jmp 0x12fb2e95
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x838
ret
mov dword [0x131c8f38], 3
mov dword [0x131c8f3c], 0x194a
call edi
mov dword [0x131c8f40], eax
jmp 0x12fb2e9f
mov dword [0x131c8f38], 0x22
mov dword [0x131c8f3c], 0x195c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c8f40], eax
jmp 0x12fb2ea3
mov dword [0x131c8f38], 0x14
mov dword [0x131c8f3c], 0x1966
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c8f40], eax
jmp 0x12fb2ea3
mov dword [0x131c8f38], 0xc
mov dword [0x131c8f3c], 0x1977
call ebp
mov dword [0x131c8f40], eax
jmp 0x12fb2ea3
mov dword [0x131c8f38], 0xb
mov dword [0x131c8f3c], 0x1980
call ebp
mov dword [0x131c8f40], eax
jmp 0x12fb2ea3
mov dword [esp + 0x2c], 1
jmp 0x12fb2ea3
mov dword [0x131c8f38], 0xc
mov dword [0x131c8f3c], 0x19f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c8f40], eax
jmp 0x12fb2ea3
mov dword [0x131c8f38], 1
mov dword [0x131c8f3c], 0x1922
call edi
pop edi
pop esi
mov dword [0x131c8f40], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x838
ret