Function at 0x12fe20d0
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 0x13071ebb
push eax
mov dword fs:[0], esp
sub esp, 0x860
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
xor ebx, ebx
push edi
mov dword [0x131c9cd0], ebx
call ebp
mov esi, dword [esp + 0x880]
mov dword [0x131c9cd8], eax
cmp esi, ebx
je 0x12fe3046
cmp word [esi], bx
je 0x12fe3046
mov edi, dword [esp + 0x884]
cmp edi, ebx
je 0x12fe3046
cmp word [edi], bx
je 0x12fe3046
cmp dword [esp + 0x888], ebx
je 0x12fe3046
cmp dword [0x131c9cdc], ebx
jne 0x12fe2162
mov dword [0x131c9cd0], 2
mov dword [0x131c9cd4], 0x842
jmp 0x12fe305a
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call ebp
test al, 0x10
mov dword [esp + 0x44], eax
je 0x12fe2192
mov dword [0x131c9cd0], 0x1d
mov dword [0x131c9cd4], 0x84a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fe305c
push edi
call ebp
cmp eax, 0xffffffff
mov dword [esp + 0x34], eax
je 0x12fe21c1
test al, 0x10
je 0x12fe21c1
mov dword [0x131c9cd0], 0x1e
mov dword [0x131c9cd4], 0x854
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fe305c
push ebx
push ebx
push 3
push ebx
push 5
push SysReAllocStringLen
push esi
mov dword [esp + 0x94], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x38], ebp
je 0x12fe2f33
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x91]
mov byte [esp + 0x90], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
stosb byte es:[edi], al
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], ebx
push eax
push ebx
push ebp
mov dword [esp + 0x38], ebx
call esi
push ebx
push ebx
push ebx
push ebp
mov edi, eax
call esi
push ebp
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x12fe2275
lea ecx, [esp + 0x2c]
push ebx
push ecx
lea edx, [esp + 0x98]
push 0x20
push edx
push ebp
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x12fe2275
cmp dword [esp + 0x2c], 0x20
jne 0x12fe2275
mov esi, 1
lea eax, [esp + 0x28]
push ebx
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, ebx
je 0x12fe2373
lea ecx, [esp + 0x90]
push ecx
call fcn.12fdfb40
add esp, 4
test eax, eax
je 0x12fe2373
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 1
mov dword [esp + 0x20], esi
mov dword [0x131c9cd0], ebx
call edi
lea edx, [esp + 0x90]
mov dword [0x131c9cd8], eax
test edx, edx
jne 0x12fe22fc
mov dword [0x131c9cd0], esi
mov dword [0x131c9cd4], 0x278
call edi
mov dword [0x131c9cd8], eax
mov dword [0x131c9cd0], 0x1f
mov dword [0x131c9cd4], 0x889
call edi
jmp 0x12fe2eb2
cmp dword [0x131c9cdc], ebx
jne 0x12fe231a
mov dword [0x131c9cd0], 2
mov dword [0x131c9cd4], 0x27e
jmp 0x12fe22da
cmp dword [0x131ca204], ebx
jne 0x12fe2373
mov cl, byte [esp + 0x96]
mov eax, dword [esp + 0xa0]
mov edx, dword [0x131c9ce8]
and ecx, esi
cmp eax, 0x2710
ja 0x12fe2351
cmp edx, 0x2710
ja 0x12fe2373
cmp edx, eax
je 0x12fe2373
cmp eax, ebx
jne 0x12fe2361
jmp 0x12fe2373
cmp eax, edx
jne 0x12fe2361
cmp dword [0x131c9cf0], ebx
ja 0x12fe2373
cmp ecx, ebx
je 0x12fe2373
push ecx
push eax
call fcn.12fdfda0
add esp, 8
cmp eax, ebx
je 0x12fe22e1
mov esi, dword [esp + 0x884]
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 + 0x18], ebp
jne 0x12fe23d1
mov eax, dword [esp + 0x34]
test al, 1
je 0x12fe23af
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 + 0x18], ebp
je 0x12fe2f54
mov ecx, 0xf3
xor eax, eax
lea edi, [esp + 0x4a1]
mov byte [esp + 0x4a0], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x4a0]
mov dword [esp + 0x74], 1
push eax
call fcn.12fb8b50
add esp, 4
test eax, eax
je 0x12fe2f73
mov ecx, 0xdb
xor eax, eax
lea edi, [esp + 0x131]
mov byte [esp + 0x130], bl
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x890]
lea edx, [esp + 0x130]
stosw word es:[edi], ax
push ecx
push edx
stosb byte es:[edi], al
call fcn.12fb8c20
add esp, 8
test eax, eax
je 0x12fe2f92
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xb1]
mov byte [esp + 0xb0], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [esp + 0x38c]
lea ecx, [esp + 0xb0]
stosb byte es:[edi], al
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], ebx
push eax
mov eax, dword [esp + 0x388]
push 0x40
push ecx
mov ecx, dword [esp + 0x25c]
push edx
push eax
push ecx
call fcn.12fc0120
add esp, 0x18
cmp eax, ebx
mov dword [esp + 0x34], eax
je 0x12fe2fb1
push eax
call fcn.12ff0660
add esp, 4
cmp eax, ebx
mov dword [esp + 0x6c], eax
je 0x12fe2fd0
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x50]
push edx
push eax
mov dword [esp + 0x58], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x50]
mov esi, eax
xor eax, eax
xor edx, edx
push ebx
push ebx
or eax, esi
or ecx, edx
push ebx
push ebp
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x88c]
mov dword [esp + 0x144], eax
mov eax, dword [esp + 0x50]
cmp edi, ebx
mov dword [esp + 0x140], ebx
mov dword [esp + 0x148], ebx
mov dword [esp + 0x14c], ebx
mov dword [esp + 0x150], esi
mov dword [esp + 0x154], eax
je 0x12fe2545
push edi
call fcn.12f5c44d
add esp, 4
test eax, eax
jbe 0x12fe2545
push 0x77
lea ecx, [esp + 0x164]
push edi
push ecx
jmp 0x12fe256b
mov eax, dword [esp + 0x880]
push 0x5c
push eax
mov edi, eax
call fcn.12f5c8b4
add esp, 8
cmp eax, ebx
je 0x12fe2560
lea edi, [eax + 2]
push 0x77
lea edx, [esp + 0x164]
push edi
push edx
call fcn.12f5c4ab
add esp, 0xc
lea eax, [esp + 0x4a0]
push eax
call fcn.12fb8ba0
add esp, 4
push ebx
push ebx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp ebp, 0xffffffff
je 0x12fe25fc
lea ecx, [esp + 0x4a0]
test ecx, ecx
je 0x12fe25fc
lea edx, [esp + 0x44]
push ebx
mov edi, 0x3d0
push edx
lea eax, [esp + 0x4a8]
push edi
push eax
push ebp
mov dword [esp + 0x58], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x12fe2612
mov dword [0x131c9cd0], 0xe
mov dword [0x131c9cd4], 0x25f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov dword [0x131c9cd8], eax
mov dword [0x131c9cd0], 0x10
mov dword [0x131c9cd4], 0x90a
call esi
jmp 0x12fe2eb2
mov dword [0x131c9cd0], 1
mov dword [0x131c9cd4], 0x258
jmp 0x12fe25d4
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x258]
mov dword [esp + 0x254], ecx
push edx
lea ecx, [esp + 0xb4]
push eax
push ecx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], ebx
call fcn.12fedb10
mov edx, dword [esp + 0x15c]
mov eax, dword [esp + 0x160]
add esp, 0xc
or edx, eax
mov dword [esp + 0x278], ebx
mov dword [esp + 0x270], ebx
mov dword [esp + 0x274], ebx
mov dword [esp + 0x268], edi
mov dword [esp + 0x26c], ebx
mov dword [esp + 0x27c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x10], ebx
jne 0x12fe2697
mov dword [esp + 0x30], 1
mov dword [esp + 0x10], ebx
jmp 0x12fe2bff
cmp dword [esp + 0x20], ebx
je 0x12fe26ba
cmp dword [esp + 0x64], ebx
ja 0x12fe26ad
cmp dword [esp + 0x60], 0x200
jbe 0x12fe26b4
mov ebp, 0x200
jmp 0x12fe26dd
mov ebp, dword [esp + 0x60]
jmp 0x12fe26dd
cmp dword [esp + 0x50], ebx
jne 0x12fe26ca
cmp esi, 0x1000
mov ebp, esi
jb 0x12fe26cf
mov ebp, 0x1000
mov eax, dword [esp + 0x38]
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
call fcn.12f5bf8b
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x24], esi
je 0x12fe2fef
mov ecx, ebp
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx]
call dword [eax + 8]
add eax, 0x10
push eax
mov dword [esp + 0x60], eax
call fcn.12f5bf8b
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [esp + 0x1c], edi
je 0x12fe300e
mov ecx, dword [esp + 0x5c]
xor eax, eax
mov edx, ecx
push ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [esp + 0x90]
and ecx, 3
push edx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x270]
mov ecx, dword [esp + 0x274]
mov dword [esp + 0x90], eax
push eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], ebx
push eax
mov dword [esp + 0x94], ebx
mov dword [esp + 0x9c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xf1]
mov byte [esp + 0xf0], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x70], ebx
stosb byte es:[edi], al
mov dword [esp + 0x7c], 0x40
mov dword [esp + 0x68], 1
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 + 0x5c]
mov edi, dword [esp + 0x1c]
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 + 0x1c]
mov dword [eax], ebx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [ecx + 8], ebx
mov edx, dword [esp + 0x1c]
cmp eax, ebx
mov dword [edx + 4], ebx
mov dword [esp + 0x14], ebx
je 0x12fe295a
cmp dword [esp + 0x68], ebx
je 0x12fe28b0
lea eax, [esp + 0x7c]
lea ecx, [esp + 0xf0]
push eax
lea edx, [esp + 0x74]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x64]
push eax
lea edx, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x78]
lea eax, [esp + 0x60]
push 0x200
push eax
mov eax, dword [esp + 0x58]
push ecx
push edx
push eax
push ebx
mov dword [esp + 0x98], ebx
call fcn.12fe6700
add esp, 0x30
xor ecx, ecx
cmp eax, ebx
sete cl
mov eax, ecx
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x12fe2baf
mov ecx, dword [esp + 0x14]
cmp ecx, ebp
ja 0x12fe2a63
jae 0x12fe2891
cmp ecx, ebx
mov dword [esp + 0x30], 1
je 0x12fe2baf
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x24]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x24]
jmp 0x12fe298d
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x14]
push ebx
push eax
push ebp
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x12fe2a7c
mov eax, dword [esp + 0x14]
cmp eax, ebp
jae 0x12fe28e7
cmp eax, ebx
mov dword [esp + 0x30], 1
je 0x12fe2baf
mov eax, dword [esp + 0x70]
push eax
call fcn.12ff0660
add esp, 4
cmp eax, ebx
je 0x12fe2a95
lea ecx, [esp + 0x80]
mov dword [esp + 0x80], ebx
push ecx
mov ecx, dword [esp + 0x5c]
push 0x200
push ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x90]
push ecx
lea ecx, [esp + 0x108]
push ecx
mov ecx, eax
call dword [edx + 0x14]
cmp eax, ebx
je 0x12fe2aae
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x80]
cmp eax, ecx
jne 0x12fe2ac7
mov esi, dword [esp + 0x58]
jmp 0x12fe2895
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x14]
push ebx
push eax
push ebp
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x12fe2ae0
mov eax, dword [esp + 0x14]
cmp eax, ebp
jae 0x12fe298d
cmp eax, ebx
mov dword [esp + 0x30], 1
je 0x12fe2baf
lea edx, [esp + 0x84]
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push edx
mov edx, dword [esp + 0x5c]
push eax
push ecx
mov ecx, dword [esp + 0x84]
push esi
lea eax, [esp + 0xcc]
push edx
push eax
push ecx
mov dword [esp + 0x50], ebx
call fcn.12fb9700
add esp, 0x28
cmp eax, ebx
jne 0x12fe2af9
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x44]
push ebx
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
mov dword [esp + 0x58], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x12fe2b72
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
cmp ecx, eax
jb 0x12fe2b88
mov edx, dword [esp + 0x278]
mov ecx, dword [esp + 0x270]
mov edi, dword [esp + 0x274]
inc edx
mov dword [esp + 0x278], edx
mov edx, dword [esp + 0x3c]
add ecx, eax
mov dword [esp + 0x270], ecx
mov ecx, dword [esp + 0x40]
adc edi, ebx
add edx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x274], edi
adc ecx, ebx
cmp eax, ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
je 0x12fe27ba
jmp 0x12fe2baf
mov dword [0x131c9cd0], 0x20
mov dword [0x131c9cd4], 0x97c
jmp 0x12fe2b9c
mov dword [0x131c9cd0], 0xd
mov dword [0x131c9cd4], 0x992
jmp 0x12fe2b9c
mov dword [0x131c9cd0], 0xc
mov dword [0x131c9cd4], 0x9a1
jmp 0x12fe2b9c
mov dword [0x131c9cd0], 0x12
mov dword [0x131c9cd4], 0x9aa
jmp 0x12fe2b9c
mov dword [0x131c9cd0], 0x12
mov dword [0x131c9cd4], 0x9b1
jmp 0x12fe2b9c
mov dword [0x131c9cd0], 0xd
mov dword [0x131c9cd4], 0x9bf
jmp 0x12fe2b9c
jge 0x12fe2b5c
push 0x131911a8
lea ecx, [esp + 0x24]
call fcn.12f46a80
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
push 0x9d4
push eax
mov eax, dword [esp + 0x888]
push ecx
push edx
push eax
lea ecx, [esp + 0x34]
push 0x131828a4
push ecx
mov dword [esp + 0x894], ebx
call fcn.12f4a1a0
mov edx, dword [esp + 0x3c]
push edx
call fcn.12ff1500
add esp, 0x20
lea ecx, [esp + 0x20]
mov dword [esp + 0x878], 0xffffffff
call fcn.12f47220
mov dword [0x131c9cd0], 0x11
mov dword [0x131c9cd4], 0x9d8
jmp 0x12fe2b9c
mov dword [0x131c9cd0], 0xe
mov dword [0x131c9cd4], 0x9e0
jmp 0x12fe2b9c
mov dword [0x131c9cd0], 0xe
mov dword [0x131c9cd4], 0x9e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c9cd8], eax
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x12fe2bc4
push eax
call fcn.12f5bf80
add esp, 4
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x12fe2bd9
push eax
call fcn.12f5bf80
add esp, 4
mov dword [esp + 0x48], ebx
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x12fe2bee
push eax
call fcn.12f5bf80
add esp, 4
mov dword [esp + 0x54], ebx
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x12fe2bff
push eax
call fcn.12f5bf80
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [esp + 0x30], ebx
je 0x12fe2eb7
cmp dword [esp + 0x10], ebx
jne 0x12fe2eb7
mov esi, dword [esp + 0x894]
mov dword [esp + 0x470], ebx
cmp esi, ebx
mov dword [esp + 0x474], ebx
mov dword [esp + 0x480], ebx
mov dword [esp + 0x478], ebx
mov dword [esp + 0x484], ebx
mov dword [esp + 0x47c], ebx
je 0x12fe2d1f
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 + 0x470]
lea ecx, [eax + eax + 0x7a]
mov eax, dword [esp + 0x4c0]
push ecx
mov ecx, dword [esp + 0x1c]
push esi
push edx
push eax
push ecx
call fcn.12fb8dc0
add esp, 0x14
test eax, eax
je 0x12fe2cfc
mov ebp, dword [esp + 0x4c4]
push esi
or ebp, 4
mov dword [esp + 0x4c8], ebp
call fcn.12fedc70
add esp, 4
test eax, eax
jne 0x12fe2cbd
mov eax, dword [esp + 0x4c4]
or al, 1
mov dword [esp + 0x4c4], eax
add esi, 0x10
push esi
call fcn.12fedc70
add esp, 4
test eax, eax
jne 0x12fe2cdd
mov eax, dword [esp + 0x4c4]
or al, 2
mov dword [esp + 0x4c4], eax
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x478]
mov eax, dword [esp + 0x40]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
add edi, ecx
adc eax, ebx
mov dword [esp + 0x40], eax
jmp 0x12fe2d29
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c9cd0], 0x10
mov dword [0x131c9cd4], 0xa23
call ebp
mov dword [0x131c9cd8], eax
jmp 0x12fe2d25
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x888]
mov dword [esp + 0x488], ebx
mov dword [esp + 0x48c], ebx
mov dword [esp + 0x498], ebx
mov eax, dword [esi + 0x68]
mov dword [esp + 0x490], ebx
mov edx, eax
mov dword [esp + 0x49c], ebx
shl edx, 4
add edx, eax
mov eax, dword [esi + 0x64]
mov dword [esp + 0x494], ebx
lea ecx, [eax + edx*8]
mov edx, dword [esi + 0x6c]
lea eax, [edx + ecx*2 + 0x82]
mov edx, dword [esp + 0x4c0]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x48c]
push esi
push ecx
push edx
push eax
call fcn.12fb8dc0
add esp, 0x14
test eax, eax
je 0x12fe2df3
mov ecx, dword [esp + 0x4c8]
push esi
add ecx, 4
mov dword [esp + 0x4cc], ecx
call fcn.12fedc70
add esp, 4
test eax, eax
jne 0x12fe2dc5
mov eax, dword [esp + 0x4c8]
or al, 1
mov dword [esp + 0x4c8], eax
cmp dword [esp + 0x89c], ebx
je 0x12fe2dde
mov eax, dword [esp + 0x4c8]
or al, 2
mov dword [esp + 0x4c8], eax
mov ecx, dword [esp + 0x490]
mov eax, dword [esp + 0x40]
add edi, ecx
adc eax, ebx
mov dword [esp + 0x40], eax
jmp 0x12fe2e0e
mov dword [0x131c9cd0], 0x10
mov dword [0x131c9cd4], 0xa41
call ebp
mov dword [0x131c9cd8], eax
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x4a0]
push edx
mov dword [esp + 0x15c], edi
mov dword [esp + 0x160], ecx
call fcn.12fb8be0
lea eax, [esp + 0x134]
lea ecx, [esp + 0x4a4]
push eax
push ecx
call fcn.12fb93d0
add esp, 0xc
test eax, eax
je 0x12fe302d
mov esi, dword [esp + 0x18]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x34]
push ebx
push edx
lea eax, [esp + 0x4a8]
push 0x3d0
push eax
push esi
mov dword [esp + 0x48], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x12fe2f19
mov dword [0x131c9cd0], 0xe
mov dword [0x131c9cd4], 0x25f
call ebp
mov dword [0x131c9cd8], eax
mov dword [0x131c9cd0], 0x10
mov dword [0x131c9cd4], 0xa56
call ebp
mov dword [0x131c9cd8], eax
mov ecx, dword [esp + 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x12fe2ed0
push eax
call esi
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x12fe2ee1
push eax
call fcn.12f5bf80
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x12fe2ef6
push eax
call fcn.12f5bf80
add esp, 4
mov dword [esp + 0x1c], ebx
mov esi, dword [esp + 0x78]
cmp esi, ebx
jne 0x12fe2f12
cmp dword [esp + 0x74], ebx
je 0x12fe2f12
mov edx, dword [esp + 0x884]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
jmp 0x12fe3063
cmp dword [esp + 0x8a0], ebx
je 0x12fe2f29
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [esp + 0x78], 1
jmp 0x12fe2eb7
mov dword [0x131c9cd0], 3
mov dword [0x131c9cd4], 0x871
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c9cd8], eax
jmp 0x12fe2ee1
mov dword [0x131c9cd0], 4
mov dword [0x131c9cd4], 0x8a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fe2eb2
mov dword [0x131c9cd0], 9
mov dword [0x131c9cd4], 0x8b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fe2eb2
mov dword [0x131c9cd0], 8
mov dword [0x131c9cd4], 0x8ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fe2eb2
mov dword [0x131c9cd0], 0xb
mov dword [0x131c9cd4], 0x8ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fe2eb2
mov dword [0x131c9cd0], 0xc
mov dword [0x131c9cd4], 0x8d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fe2eb2
mov dword [0x131c9cd0], 0x21
mov dword [0x131c9cd4], 0x93c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fe2eb2
mov dword [0x131c9cd0], 0x21
mov dword [0x131c9cd4], 0x948
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fe2eb2
mov dword [0x131c9cd0], 0x13
mov dword [0x131c9cd4], 0xa4e
jmp 0x12fe2eb0
mov dword [0x131c9cd0], 1
mov dword [0x131c9cd4], 0x83c
call ebp
mov dword [0x131c9cd8], eax
xor eax, eax
mov ecx, dword [esp + 0x870]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x86c
ret