Function at 0x1025b4e
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x103f89c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], eax
je 0x1025b86
cmp dword [ebp + 0xc], 6
je 0x1025b86
push 8
pop edi
jmp 0x1025b88
xor edi, edi
cmp ecx, ebx
jne 0x1025baf
push ebx
push 0x57
call fcn.0102c5bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1025d86
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1025d86
cmp dword [ebp + 0x14], ebx
je 0x1025bd4
cmp dword [ebp + 0x10], 6
jne 0x1025bd4
push ebx
push 0x32
call fcn.0102c5bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1025d86
push 0x32
jmp 0x1025ba4
push 0x30
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x1025d86
or edi, dword [ebp + 0xc]
push dword [ebp - 0x214]
mov dword [esi], edi
call fcn.0102451c
cmp eax, ebx
mov dword [esi + 4], eax
je 0x1025d80
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
je 0x1025c1e
mov eax, dword [ebp + 0xc]
and eax, 6
cmp al, 6
jne 0x1025c33
push esi
call fcn.01025446
test eax, eax
jne 0x1025c33
push 0x1011780
push ebx
jmp 0x1025d7b
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x102
push dword [esi + 4]
call fcn.010248b0
test eax, eax
je 0x1025d80
cmp dword [ebp + 0xc], 1
lea eax, [ebp - 0x20c]
push eax
je 0x1025c69
call fcn.0102c605
jmp 0x1025c6e
call fcn.01037d55
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x1025ca1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1025c87
push 0x1011728
jmp 0x1025c2d
lea eax, [ebp - 0x20c]
push eax
call fcn.01037f11
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x1025ca1
push 0x10116b8
jmp 0x1025c2d
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x103
push dword [ebp - 0x214]
call fcn.010248b0
test eax, eax
je 0x1025d80
mov ebx, 0x400
push ebx
push dword [ebp + 0xc]
xor edi, edi
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102ae22
cmp eax, edi
mov dword [esi + 0x1c], eax
je 0x1025d11
push eax
call fcn.01028429
cmp eax, edi
je 0x1025d11
push eax
call fcn.0102451c
cmp eax, edi
mov dword [esi + 8], eax
jne 0x1025d11
push 0x1011650
push 8
call fcn.0102c5bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1025d80
push 8
jmp 0x1025d4a
mov eax, dword [esi + 8]
cmp eax, edi
je 0x1025d52
cmp dword [ebp - 0x210], edi
je 0x1025d52
push 1
push dword [ebp - 0x210]
push eax
call fcn.01022bf3
test eax, eax
je 0x1025d52
push 0x10115a0
push 0x57
call fcn.0102c5bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1025d80
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1025d80
cmp dword [ebp + 0x14], edi
lea eax, [esi + 0xc]
push eax
lea edi, [esi + 0x10]
push edi
jne 0x1025d6c
push dword [esi + 4]
push dword [esi + 8]
call fcn.010389f4
jmp 0x1025d71
call fcn.01038b70
test eax, eax
jne 0x1025d8a
push 0x1011540
push eax
call fcn.0102c5bf
push esi
call fcn.01025518
xor eax, eax
jmp 0x1025de4
mov eax, dword [edi]
xor edi, edi
cmp eax, edi
jl 0x1025ddc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
push 0x101
push dword [esi + 4]
call fcn.01024c25
test eax, eax
je 0x1025ddc
push dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push edi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [esi + 8]
push eax
call fcn.01027596
cmp eax, edi
mov dword [esi + 0x20], eax
jne 0x1025ddc
push 0x101150c
push edi
call fcn.0102c5bf
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01017c0a
leave
ret 0x10