Function at 0x12fb6ce0
Capabilities:
Check if file exists
Delete file
Get file attributes
Get file size
Read file on windows
Resolve function by parsing pe exports
Set file attributes
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1307118b
push eax
mov dword fs:[0], esp
sub esp, 0xfa0
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
mov dword [0x131c8f38], ebx
call edi
mov esi, dword [esp + 0xfc0]
mov dword [0x131c8f40], eax
cmp esi, ebx
je 0x12fb7de6
cmp word [esi], bx
je 0x12fb7de6
mov ebp, dword [esp + 0xfc4]
cmp ebp, ebx
je 0x12fb7de6
cmp word [ebp], bx
je 0x12fb7de6
cmp dword [esp + 0xfc8], ebx
je 0x12fb7de6
cmp dword [0x131c8f44], ebx
jne 0x12fb6d73
mov dword [0x131c8f38], 2
mov dword [0x131c8f3c], 0x219a
jmp 0x12fb7dfa
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call edi
test al, 0x10
mov dword [esp + 0x30], eax
je 0x12fb6da3
mov dword [0x131c8f38], 0x1d
mov dword [0x131c8f3c], 0x21a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fb7dfc
push ebp
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x40], eax
je 0x12fb6dd2
test al, 0x10
je 0x12fb6dd2
mov dword [0x131c8f38], 0x1e
mov dword [0x131c8f3c], 0x21ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fb7dfc
push ebx
push ebx
push 3
push ebx
push 5
xor edi, edi
push SysReAllocStringLen
push esi
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], ebx
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x6c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x28], esi
je 0x12fb7d0c
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 0x849]
mov byte [esp + 0x848], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x439]
mov byte [esp + 0x438], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push ebx
push ebx
push esi
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x80], ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, 0xf7
xor eax, eax
lea edi, [esp + 0xbd1]
mov byte [esp + 0xbd0], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xbd0]
test eax, eax
je 0x12fb6efa
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x12fb6edb
mov ecx, 0xf8
xor eax, eax
lea edi, [esp + 0xbd0]
push ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
lea edx, [esp + 0xbd4]
push ecx
push 0x3e0
push edx
push esi
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x12fb6f10
mov dword [0x131c8f38], 0xd
mov dword [0x131c8f3c], 0x29f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c8f40], eax
mov dword [0x131c8f38], 0xf
mov dword [0x131c8f3c], 0x21d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fb7ca0
mov dword [0x131c8f38], 1
mov dword [0x131c8f3c], 0x29ea
jmp 0x12fb6ed0
lea eax, [esp + 0xbd0]
push eax
call fcn.12fba750
add esp, 4
cmp eax, 3
mov dword [esp + 0x54], eax
jne 0x12fb70d2
lea ecx, [esp + 0x848]
lea edx, [esp + 0xbd0]
push ecx
push edx
call fcn.12fb9df0
add esp, 8
test eax, eax
je 0x12fb730f
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c8f38], ebx
call edi
mov dword [0x131c8f40], eax
lea eax, [esp + 0x848]
test eax, eax
jne 0x12fb6fa1
mov dword [0x131c8f38], 1
mov dword [0x131c8f3c], 0x3745
call edi
mov dword [0x131c8f40], eax
mov dword [0x131c8f38], 0x1f
mov dword [0x131c8f3c], 0x21ec
call edi
jmp 0x12fb7ca0
cmp dword [0x131c8f44], ebx
jne 0x12fb6fbf
mov dword [0x131c8f38], 2
mov dword [0x131c8f3c], 0x374b
jmp 0x12fb6f7f
cmp dword [0x131c94f4], ebx
jne 0x12fb7016
mov eax, dword [esp + 0xa34]
mov edx, dword [esp + 0xa3c]
mov ecx, dword [0x131c8f54]
cmp eax, 0x2710
ja 0x12fb6ff4
cmp ecx, 0x2710
ja 0x12fb7016
cmp ecx, eax
je 0x12fb7016
cmp eax, ebx
jne 0x12fb7004
jmp 0x12fb7016
cmp eax, ecx
jne 0x12fb7004
cmp dword [0x131c8f5c], ebx
ja 0x12fb7016
cmp edx, ebx
je 0x12fb7016
push edx
push eax
call fcn.12fc04c0
add esp, 8
cmp eax, ebx
je 0x12fb6f86
lea ecx, [esp + 0x70]
lea edx, [esp + 0x438]
push ecx
push 0x40
lea eax, [esp + 0x80]
push edx
lea ecx, [esp + 0x854]
push eax
push ecx
mov dword [esp + 0x8c], ebx
call fcn.12fc0eb0
add esp, 0x14
test eax, eax
je 0x12fb732e
mov edx, dword [esp + 0x78]
push edx
call fcn.12ff0660
add esp, 4
cmp eax, ebx
mov dword [esp + 0x5c], eax
je 0x12fb7349
mov eax, dword [esp + 0xbc8]
cmp eax, ebx
je 0x12fb70d2
cmp dword [esp + 0xfd8], ebx
je 0x12fb70d2
push eax
call fcn.12f5bf8b
mov ebp, eax
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x50], ebp
je 0x12fb70d2
mov ecx, dword [esp + 0xbc8]
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x1c], ebx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0xbc8]
lea eax, [esp + 0x1c]
push eax
push ecx
push ebp
push ebx
push esi
call fcn.12fb3f50
add esp, 0x14
test eax, eax
jne 0x12fb70d2
push ebp
call fcn.12f5bf80
add esp, 4
mov dword [esp + 0x50], ebx
mov esi, dword [esp + 0xfc4]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push esi
call edi
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x10], ebp
jne 0x12fb7130
mov eax, dword [esp + 0x40]
test al, 1
je 0x12fb710e
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push esi
call edi
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x10], ebp
je 0x12fb7d32
mov ecx, 0xf3
xor eax, eax
lea edi, [esp + 0x479]
mov byte [esp + 0x478], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x478]
mov dword [esp + 0x6c], 1
test edx, edx
stosb byte es:[edi], al
je 0x12fb7d51
mov eax, dword [0x13182874]
mov ecx, dword [0x13182878]
mov dword [esp + 0x478], eax
mov eax, dword [0x13182880]
mov dword [esp + 0x47c], ecx
mov dword [esp + 0x484], eax
mov ecx, 0xdb
xor eax, eax
lea edi, [esp + 0xc9]
mov byte [esp + 0xc8], bl
rep stosd dword es:[edi], eax
mov edx, dword [0x1318287c]
lea ecx, [esp + 0xc8]
stosw word es:[edi], ax
test ecx, ecx
mov dword [esp + 0x480], edx
mov dword [esp + 0x498], 0x20002
mov dword [esp + 0x49c], ebx
mov dword [esp + 0x4a0], ebx
mov dword [esp + 0x4a4], ebx
stosb byte es:[edi], al
je 0x12fb7d70
lea edx, [esp + 0xc8]
push edx
call fcn.12feda50
lea eax, [esp + 0x314]
push eax
call fcn.12fb8c70
mov esi, dword [esp + 0xfd8]
add esp, 8
cmp esi, ebx
mov ecx, 0x3e
jne 0x12fb7210
lea esi, [esp + 0x310]
lea edi, [esp + 0x218]
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x89]
mov byte [esp + 0x88], bl
mov dword [esp + 0x1e8], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], ebx
stosb byte es:[edi], al
push ecx
mov ecx, dword [esp + 0x328]
lea eax, [esp + 0x8c]
push 0x40
push eax
mov eax, dword [esp + 0x328]
push ecx
push eax
push edx
call fcn.12fc0120
add esp, 0x18
cmp eax, ebx
mov dword [esp + 0x40], eax
je 0x12fb7d8f
push eax
call fcn.12ff0660
add esp, 4
cmp eax, ebx
mov dword [esp + 0x64], eax
je 0x12fb7dae
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x58]
push ecx
push edx
mov dword [esp + 0x60], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
mov esi, eax
push ebx
push ebp
mov dword [esp + 0x5c], esi
call edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [esp + 0x54], 3
jne 0x12fb7364
mov eax, dword [esp + 0x858]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0x860]
mov dword [esp + 0xdc], ecx
mov ecx, dword [esp + 0x864]
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], ecx
jmp 0x12fb7396
mov dword [0x131c8f38], 0x14
mov dword [0x131c8f3c], 0x21e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fb7ca0
mov dword [0x131c8f38], 0xb
mov dword [0x131c8f3c], 0x21f5
call edi
jmp 0x12fb7ca0
mov dword [0x131c8f38], 0xc
mov dword [0x131c8f3c], 0x21fe
call edi
jmp 0x12fb7ca0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x58]
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xe8], esi
mov dword [esp + 0xec], eax
mov esi, dword [esp + 0xfcc]
cmp esi, ebx
je 0x12fb73bb
push esi
call fcn.12f5c44d
add esp, 4
test eax, eax
jbe 0x12fb73bb
push 0x77
lea eax, [esp + 0xfc]
push esi
push eax
jmp 0x12fb73e1
mov eax, dword [esp + 0xfc0]
push 0x5c
push eax
mov esi, eax
call fcn.12f5c8b4
add esp, 8
cmp eax, ebx
je 0x12fb73d6
lea esi, [eax + 2]
push 0x77
lea ecx, [esp + 0xfc]
push esi
push ecx
call fcn.12f5c4ab
mov edx, dword [0x13182888]
mov eax, dword [0x1318288c]
mov ecx, dword [0x13182890]
add esp, 0xc
mov dword [esp + 0x478], edx
mov edx, dword [0x13182894]
push ebx
push ebx
push ebx
push ebp
mov dword [esp + 0x48c], eax
mov dword [esp + 0x490], ecx
mov dword [esp + 0x494], edx
call edi
cmp ebp, 0xffffffff
je 0x12fb7486
lea eax, [esp + 0x1c]
push ebx
mov esi, 0x3d0
push eax
lea ecx, [esp + 0x480]
push esi
push ecx
push ebp
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x12fb749c
mov dword [0x131c8f38], 0xe
mov dword [0x131c8f3c], 0x2a09
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov dword [0x131c8f40], eax
mov dword [0x131c8f38], 0x10
mov dword [0x131c8f3c], 0x22a6
call esi
jmp 0x12fb7ca0
mov dword [0x131c8f38], 1
mov dword [0x131c8f3c], 0x2a02
jmp 0x12fb745e
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x1f0]
mov dword [esp + 0x1ec], edx
push eax
lea edx, [esp + 0x8c]
push ecx
push edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], ebx
call fcn.12fedb10
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0xf8]
add esp, 0xc
or eax, ecx
mov dword [esp + 0x210], ebx
mov dword [esp + 0x208], ebx
mov dword [esp + 0x20c], ebx
mov dword [esp + 0x200], esi
mov dword [esp + 0x204], ebx
mov dword [esp + 0x214], ebx
jne 0x12fb7519
mov dword [esp + 0x44], 1
mov dword [esp + 0x18], ebx
jmp 0x12fb79bf
cmp dword [esp + 0x54], 3
jne 0x12fb754b
mov eax, dword [esp + 0x884]
mov ebp, dword [esp + 0x88c]
cmp eax, 1
je 0x12fb753a
mov ebp, dword [esp + 0x888]
mov ecx, dword [esp + 0x880]
mov edx, dword [esp + 0x28]
push ebx
push ebx
push ecx
push edx
jmp 0x12fb756a
cmp dword [esp + 0x58], ebx
jne 0x12fb755d
mov ebp, dword [esp + 0x4c]
cmp ebp, 0x10000
jb 0x12fb7562
mov ebp, 0x10000
mov eax, dword [esp + 0x28]
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
call fcn.12f5bf8b
mov ecx, dword [esp + 0x68]
add esp, 4
mov esi, eax
mov edx, dword [ecx]
push ebp
mov dword [esp + 0x40], esi
call dword [edx + 8]
add eax, 0x10
push eax
mov dword [esp + 0x64], eax
call fcn.12f5bf8b
mov ecx, dword [esp + 0x208]
add esp, 4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x200]
lea edx, [esp + 0x84]
push ebx
push edx
mov dword [esp + 0x88], eax
push eax
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x94], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x18], ebx
mov ecx, ebp
xor eax, eax
mov edx, ecx
mov edi, esi
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 + 0x60]
mov edi, dword [esp + 0x14]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
mov dword [eax], ebx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x54]
mov dword [ecx + 8], ebx
mov edx, dword [esp + 0x14]
cmp eax, 3
mov dword [edx + 4], ebx
mov dword [esp + 0x20], ebx
jne 0x12fb7731
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x884]
mov esi, dword [esp + 0x888]
inc eax
cmp eax, ecx
mov dword [esp + 0x74], eax
jne 0x12fb7668
mov esi, dword [esp + 0x88c]
mov dword [esp + 0x44], 1
cmp dword [esp + 0x24], esi
jae 0x12fb7698
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x12fb767f
push eax
call fcn.12f5bf80
add esp, 4
push esi
mov dword [esp + 0x28], esi
call fcn.12f5bf8b
add esp, 4
cmp eax, ebx
mov dword [esp + 0x2c], eax
je 0x12fb7832
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x28]
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x24]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x12fb788e
cmp dword [esp + 0x20], esi
jb 0x12fb788e
mov eax, dword [esp + 0x2c]
add esi, 0xfffffffc
lea edi, [eax + 4]
mov eax, dword [eax]
push eax
push esi
push edi
call fcn.12fedaa0
add esp, 0xc
test eax, eax
je 0x12fb7848
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x40]
mov edx, dword [ecx]
push ebp
push eax
mov eax, dword [esp + 0x7c]
push esi
push edi
push eax
lea eax, [esp + 0x450]
push eax
mov dword [esp + 0x3c], ebx
call dword [edx + 0x14]
cmp eax, ebx
je 0x12fb785e
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x3c]
jmp 0x12fb7764
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x20]
push ebx
push ecx
push ebp
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x12fb78a4
mov eax, dword [esp + 0x20]
cmp eax, ebp
jae 0x12fb7764
cmp eax, ebx
mov dword [esp + 0x44], 1
je 0x12fb797b
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x34]
push edx
push ecx
lea edx, [esp + 0x6c]
lea ecx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x78]
push eax
push esi
lea eax, [esp + 0xa4]
push edx
push eax
push ecx
mov dword [esp + 0x58], ebx
call fcn.12fb9700
add esp, 0x28
cmp eax, ebx
jne 0x12fb78ba
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x4c]
push ebx
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
mov dword [esp + 0x60], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x12fb7946
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x4c]
cmp eax, ecx
jb 0x12fb795c
mov edi, dword [esp + 0x210]
mov edx, dword [esp + 0x208]
inc edi
xor eax, eax
add edx, ecx
mov dword [esp + 0x210], edi
mov edi, dword [esp + 0x20c]
mov dword [esp + 0x208], edx
mov edx, dword [esp + 0x34]
adc edi, eax
add edx, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x20c], edi
adc ecx, eax
mov eax, dword [esp + 0x44]
cmp eax, ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ecx
je 0x12fb75ed
jmp 0x12fb797b
mov dword [0x131c8f38], 0x21
mov dword [0x131c8f3c], 0x2311
jmp 0x12fb7872
mov dword [0x131c8f38], 0x1c
mov dword [0x131c8f3c], 0x2323
jmp 0x12fb7872
mov dword [0x131c8f38], 0x12
mov dword [0x131c8f3c], 0x232d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x3c]
mov dword [0x131c8f40], eax
mov dword [esp + 0x18], 1
jmp 0x12fb797b
mov dword [0x131c8f38], 0xd
mov dword [0x131c8f3c], 0x231b
jmp 0x12fb7872
mov dword [0x131c8f38], 0xd
mov dword [0x131c8f3c], 0x2337
jmp 0x12fb7931
jge 0x12fb791d
push 0x131911a8
lea ecx, [esp + 0x28]
call fcn.12f46a80
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x40]
push 0x234c
push eax
mov eax, dword [esp + 0xfc8]
push ecx
push edx
push eax
lea ecx, [esp + 0x38]
push 0x131828a4
push ecx
mov dword [esp + 0xfd4], ebx
call fcn.12f4a1a0
mov edx, dword [esp + 0x40]
push edx
call fcn.12ff1500
add esp, 0x20
lea ecx, [esp + 0x24]
mov dword [esp + 0xfb8], 0xffffffff
call fcn.12f47220
mov dword [0x131c8f38], 0x11
mov dword [0x131c8f3c], 0x2350
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c8f40], eax
mov dword [esp + 0x18], 1
jmp 0x12fb797b
mov dword [0x131c8f38], 0xe
mov dword [0x131c8f3c], 0x2358
jmp 0x12fb7970
mov dword [0x131c8f38], 0xe
mov dword [0x131c8f3c], 0x235e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c8f40], eax
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x12fb798c
push eax
call fcn.12f5bf80
add esp, 4
cmp esi, ebx
je 0x12fb7999
push esi
call fcn.12f5bf80
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x12fb79ae
push eax
call fcn.12f5bf80
add esp, 4
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x12fb79bf
push eax
call fcn.12f5bf80
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [esp + 0x44], ebx
je 0x12fb7ca5
cmp dword [esp + 0x18], ebx
jne 0x12fb7ca5
mov esi, dword [esp + 0x50]
mov dword [esp + 0x408], ebx
cmp esi, ebx
mov dword [esp + 0x40c], ebx
mov dword [esp + 0x418], ebx
mov dword [esp + 0x410], ebx
mov dword [esp + 0x41c], ebx
mov dword [esp + 0x414], ebx
jne 0x12fb7a1f
mov esi, dword [esp + 0xfd4]
cmp esi, ebx
je 0x12fb7ae7
mov eax, dword [esi + 0x70]
mov edi, dword [esi + 0x6c]
mov edx, dword [esi + 0x74]
add eax, edi
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*2]
lea edx, [esp + 0x408]
lea ecx, [eax + eax + 0x7a]
mov eax, dword [esp + 0x498]
push ecx
mov ecx, dword [esp + 0x14]
push esi
push edx
push eax
push ecx
call fcn.12fb8dc0
add esp, 0x14
test eax, eax
je 0x12fb7ac4
mov ebp, dword [esp + 0x49c]
push esi
or ebp, 4
mov dword [esp + 0x4a0], ebp
call fcn.12fedc70
add esp, 4
test eax, eax
jne 0x12fb7a85
mov eax, dword [esp + 0x49c]
or al, 1
mov dword [esp + 0x49c], eax
add esi, 0x10
push esi
call fcn.12fedc70
add esp, 4
test eax, eax
jne 0x12fb7aa5
mov eax, dword [esp + 0x49c]
or al, 2
mov dword [esp + 0x49c], eax
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x410]
mov eax, dword [esp + 0x38]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
add edi, ecx
adc eax, ebx
mov dword [esp + 0x38], eax
jmp 0x12fb7af1
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c8f38], 0x10
mov dword [0x131c8f3c], 0x2397
call ebp
mov dword [0x131c8f40], eax
jmp 0x12fb7aed
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0xfc8]
mov dword [esp + 0x420], ebx
mov dword [esp + 0x424], ebx
mov dword [esp + 0x430], ebx
mov eax, dword [esi + 0x68]
mov dword [esp + 0x428], ebx
mov edx, eax
mov dword [esp + 0x434], ebx
shl edx, 4
add edx, eax
mov eax, dword [esi + 0x64]
mov dword [esp + 0x42c], ebx
lea ecx, [eax + edx*8]
mov edx, dword [esi + 0x6c]
lea eax, [edx + ecx*2 + 0x82]
mov edx, dword [esp + 0x498]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x424]
push esi
push ecx
push edx
push eax
call fcn.12fb8dc0
add esp, 0x14
test eax, eax
je 0x12fb7bbb
mov ecx, dword [esp + 0x4a0]
push esi
add ecx, 4
mov dword [esp + 0x4a4], ecx
call fcn.12fedc70
add esp, 4
test eax, eax
jne 0x12fb7b8d
mov eax, dword [esp + 0x4a0]
or al, 1
mov dword [esp + 0x4a0], eax
cmp dword [esp + 0xfdc], ebx
je 0x12fb7ba6
mov eax, dword [esp + 0x4a0]
or al, 2
mov dword [esp + 0x4a0], eax
mov ecx, dword [esp + 0x428]
mov eax, dword [esp + 0x38]
add edi, ecx
adc eax, ebx
mov dword [esp + 0x38], eax
jmp 0x12fb7bd6
mov dword [0x131c8f38], 0x10
mov dword [0x131c8f3c], 0x23b5
call ebp
mov dword [0x131c8f40], eax
mov ecx, dword [esp + 0x38]
mov eax, dword [0x13182878]
mov edx, dword [0x13182874]
mov dword [esp + 0xf4], ecx
mov ecx, dword [0x1318287c]
mov dword [esp + 0x47c], eax
mov dword [esp + 0x480], ecx
lea eax, [esp + 0xc8]
mov dword [esp + 0x478], edx
mov edx, dword [0x13182880]
lea ecx, [esp + 0x478]
push eax
push ecx
mov dword [esp + 0xf8], edi
mov dword [esp + 0x48c], edx
call fcn.12fb93d0
add esp, 8
test eax, eax
je 0x12fb7dcd
mov esi, dword [esp + 0x10]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x40]
push ebx
push edx
lea eax, [esp + 0x480]
push 0x3d0
push eax
push esi
mov dword [esp + 0x54], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x12fb7cf2
mov dword [0x131c8f38], 0xe
mov dword [0x131c8f3c], 0x2a09
call ebp
mov dword [0x131c8f40], eax
mov dword [0x131c8f38], 0x10
mov dword [0x131c8f3c], 0x23ca
call ebp
mov dword [0x131c8f40], eax
mov ecx, dword [esp + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x12fb7cbe
push eax
call esi
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x12fb7ccf
push eax
call fcn.12f5bf80
add esp, 4
mov edi, dword [esp + 0x68]
cmp edi, ebx
jne 0x12fb7ceb
cmp dword [esp + 0x6c], ebx
je 0x12fb7ceb
mov edx, dword [esp + 0xfc4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
jmp 0x12fb7e03
cmp dword [esp + 0xfe0], ebx
je 0x12fb7d02
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [esp + 0x68], 1
jmp 0x12fb7ca5
mov dword [0x131c8f38], 3
mov dword [0x131c8f3c], 0x21c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c8f40], eax
mov eax, edi
jmp 0x12fb7e03
mov dword [0x131c8f38], 4
mov dword [0x131c8f3c], 0x2236
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fb7ca0
mov dword [0x131c8f38], 9
mov dword [0x131c8f3c], 0x2240
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fb7ca0
mov dword [0x131c8f38], 8
mov dword [0x131c8f3c], 0x2248
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fb7ca0
mov dword [0x131c8f38], 0xb
mov dword [0x131c8f3c], 0x2258
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fb7ca0
mov dword [0x131c8f38], 0xc
mov dword [0x131c8f3c], 0x225f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fb7ca0
mov dword [0x131c8f38], 0x13
mov dword [0x131c8f3c], 0x23c2
jmp 0x12fb7c9e
mov dword [0x131c8f38], 1
mov dword [0x131c8f3c], 0x2194
call edi
mov dword [0x131c8f40], eax
xor eax, eax
mov ecx, dword [esp + 0xfb0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xfac
ret