Function at 0x12fdd510
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 0x13071ca6
push eax
mov dword fs:[0], esp
sub esp, 0xca0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
push edi
mov dword [0x131c96c0], ebx
call esi
mov edi, dword [esp + 0xcc0]
mov dword [0x131c96c8], eax
cmp edi, ebx
je 0x12fde77a
cmp word [edi], bx
je 0x12fde77a
mov ebp, dword [esp + 0xcc4]
cmp ebp, ebx
je 0x12fde77a
cmp word [ebp], bx
je 0x12fde77a
cmp dword [esp + 0xcc8], ebx
je 0x12fde77a
cmp dword [0x131c96cc], ebx
jne 0x12fdd5a3
mov dword [0x131c96c0], 2
mov dword [0x131c96c4], 0x3529
jmp 0x12fde78e
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
call esi
test al, 0x10
mov dword [esp + 0x34], eax
je 0x12fdd5d3
mov dword [0x131c96c0], 0x1d
mov dword [0x131c96c4], 0x3531
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fde790
push ebp
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x40], eax
je 0x12fdd602
test al, 0x10
je 0x12fdd602
mov dword [0x131c96c0], 0x1e
mov dword [0x131c96c4], 0x353b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fde790
push ebx
push ebx
push 3
push ebx
push 5
xor esi, esi
push SysReAllocStringLen
push edi
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa4], ebx
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x74], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x48], ebp
je 0x12fde6a0
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x11c]
mov dword [esp + 0x118], ebx
rep stosd dword es:[edi], eax
mov ecx, 0xd
lea edi, [esp + 0xa4]
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x518], bl
rep stosd dword es:[edi], eax
mov ecx, 0xf
lea edi, [esp + 0x519]
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 + 0xd9]
mov byte [esp + 0xd8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xd8]
mov dword [esp + 0x8c], ebx
push eax
push ebp
mov dword [esp + 0x8c], ebx
call fcn.12fd9ff0
add esp, 8
test eax, eax
je 0x12fddadc
lea ecx, [esp + 0xd8]
test ecx, ecx
jne 0x12fdd887
mov dword [esp + 0x54], ebx
mov esi, dword [esp + 0xcc4]
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 + 0x14], ebp
jne 0x12fdd736
mov eax, dword [esp + 0x40]
test al, 1
je 0x12fdd714
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 + 0x14], ebp
je 0x12fde6c6
mov ecx, 0xf3
xor eax, eax
lea edi, [esp + 0x559]
mov byte [esp + 0x558], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x558]
mov dword [esp + 0x88], 1
push edx
stosb byte es:[edi], al
call fcn.12fb8b50
add esp, 4
test eax, eax
je 0x12fde6e5
mov ecx, 0xdb
xor eax, eax
lea edi, [esp + 0x1a9]
mov byte [esp + 0x1a8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0xcd0]
lea ecx, [esp + 0x1a8]
push eax
push ecx
call fcn.12fb8c20
add esp, 8
test eax, eax
je 0x12fde704
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x169]
mov byte [esp + 0x168], bl
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x404]
lea edx, [esp + 0x5c]
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
mov edx, dword [esp + 0x400]
lea eax, [esp + 0x16c]
push 0x40
push eax
mov eax, dword [esp + 0x2d4]
push ecx
push edx
push eax
mov dword [esp + 0x74], ebx
call fcn.12fc0120
add esp, 0x18
cmp eax, ebx
mov dword [esp + 0x40], eax
je 0x12fde723
push eax
call fcn.12ff0660
add esp, 4
cmp eax, ebx
mov dword [esp + 0x7c], eax
je 0x12fde742
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x64]
push ecx
push edx
mov dword [esp + 0x6c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [esp + 0x54], 3
jne 0x12fddc10
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x1bc], eax
mov dword [esp + 0x1c0], ebx
mov dword [esp + 0x1c4], ebx
mov dword [esp + 0x1c8], ecx
mov dword [esp + 0x1cc], edx
jmp 0x12fddc42
push 0x10
lea edx, [esp + 0xdc]
push 0x13182bc0
push edx
call fcn.12f5e5f0
add esp, 0xc
test eax, eax
jne 0x12fdd8b1
test byte [esp + 0x10a], 1
je 0x12fdd8b1
mov esi, 3
cmp esi, 3
mov dword [esp + 0x54], esi
jne 0x12fdd6d8
mov edx, dword [esp + 0xf8]
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x20]
push ebx
push ecx
push ebx
push edx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x30], ebx
call fcn.12fc2de0
mov eax, dword [esp + 0x58]
add esp, 0x14
cmp eax, ebx
jne 0x12fddafb
lea eax, [esp + 0x118]
lea ecx, [esp + 0xd8]
push eax
push ecx
push ebp
call fcn.12fda230
add esp, 0xc
test eax, eax
je 0x12fddb1a
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 0x929]
mov byte [esp + 0x928], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x928]
push edx
push ebp
stosb byte es:[edi], al
call fcn.12fd42f0
add esp, 8
test eax, eax
je 0x12fddb39
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x118]
push eax
lea edx, [esp + 0xdc]
push ecx
push edx
push ebp
call fcn.12fda4b0
add esp, 0x10
test eax, eax
je 0x12fddb58
cmp word [esp + 0xaa], bx
jne 0x12fddb77
lea ecx, [esp + 0x4c]
call fcn.12f923b0
lea eax, [esp + 0x70]
lea ecx, [esp + 0x78]
push eax
lea edx, [esp + 0x50]
push ecx
lea eax, [esp + 0x120]
push edx
lea ecx, [esp + 0xe4]
push eax
push ecx
push ebp
mov dword [esp + 0xcd0], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x88], ebx
call fcn.12fda700
add esp, 0x18
test eax, eax
je 0x12fddb96
mov edx, dword [esp + 0x78]
xor ecx, ecx
mov si, word [edx + 0xc]
cmp si, bx
jbe 0x12fdda08
mov edx, dword [esp + 0x70]
mov eax, ecx
and eax, 0xffff
lea eax, [eax + eax*4]
test byte [edx + eax*8 + 8], 1
lea eax, [edx + eax*8]
je 0x12fdda02
mov eax, dword [eax]
cmp eax, 1
jb 0x12fddbce
cmp eax, 4
ja 0x12fddbce
inc ecx
cmp cx, si
jb 0x12fdd9da
lea ecx, [esp + 0x84]
lea edx, [esp + 0x518]
push ecx
push 0x40
lea eax, [esp + 0x70]
push edx
lea ecx, [esp + 0x124]
push eax
push ecx
mov dword [esp + 0x7c], ebx
call fcn.12fd8510
add esp, 0x14
test eax, eax
je 0x12fddbe4
mov edx, dword [esp + 0x68]
push edx
call fcn.12ff0660
add esp, 4
cmp eax, ebx
mov dword [esp + 0x8c], eax
je 0x12fddbfa
mov eax, dword [esp + 0xca8]
cmp eax, ebx
je 0x12fddac3
cmp dword [esp + 0xcd8], ebx
je 0x12fddac3
push eax
call fcn.12f5bf8b
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x58], esi
je 0x12fddac3
mov ecx, dword [esp + 0xca8]
xor eax, eax
mov edx, ecx
mov edi, esi
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 + 0xca8]
lea eax, [esp + 0x1c]
push eax
push ecx
push esi
push ebp
call fcn.12fd0a40
add esp, 0x10
test eax, eax
jne 0x12fddac3
push esi
call fcn.12f5bf80
add esp, 4
mov dword [esp + 0x58], ebx
lea ecx, [esp + 0x4c]
mov dword [esp + 0xcb8], 0xffffffff
call fcn.12f92510
jmp 0x12fdd6d8
mov dword [0x131c96c0], 0xf
mov dword [0x131c96c4], 0x3566
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fde62b
mov dword [0x131c96c0], 0x31
mov dword [0x131c96c4], 0x3570
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fde62b
mov dword [0x131c96c0], 0x14
mov dword [0x131c96c4], 0x3576
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fde62b
mov dword [0x131c96c0], 0x1f
mov dword [0x131c96c4], 0x357e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fde62b
mov dword [0x131c96c0], 0x14
mov dword [0x131c96c4], 0x3584
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fde62b
mov dword [0x131c96c0], 1
mov dword [0x131c96c4], 0x358c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fde62b
mov dword [0x131c96c0], 0x14
mov dword [0x131c96c4], 0x3596
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x4c]
mov dword [0x131c96c8], eax
mov dword [esp + 0xcb8], 0xffffffff
call fcn.12f92510
jmp 0x12fde630
mov dword [0x131c96c0], 0x32
mov dword [0x131c96c4], 0x359c
jmp 0x12fddbaa
mov dword [0x131c96c0], 0xb
mov dword [0x131c96c4], 0x35ac
jmp 0x12fddbaa
mov dword [0x131c96c0], 0xc
mov dword [0x131c96c4], 0x35b5
jmp 0x12fddbaa
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1b8], ebx
mov dword [esp + 0x1bc], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x1c0], ebx
mov dword [esp + 0x1c4], ebx
mov dword [esp + 0x1c8], edi
mov dword [esp + 0x1cc], eax
mov esi, dword [esp + 0xccc]
cmp esi, ebx
je 0x12fddc67
push esi
call fcn.12f5c44d
add esp, 4
test eax, eax
jbe 0x12fddc67
push 0x77
lea ecx, [esp + 0x1dc]
push esi
push ecx
jmp 0x12fddc8b
mov esi, dword [esp + 0xcc0]
push 0x5c
push esi
call fcn.12f5c8b4
add esp, 8
cmp eax, ebx
je 0x12fddc80
lea esi, [eax + 2]
push 0x77
lea edx, [esp + 0x1dc]
push esi
push edx
call fcn.12f5c4ab
add esp, 0xc
lea eax, [esp + 0x558]
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 0x12fddd1c
lea ecx, [esp + 0x558]
test ecx, ecx
je 0x12fddd1c
lea edx, [esp + 0x1c]
push ebx
mov esi, 0x3d0
push edx
lea eax, [esp + 0x560]
push esi
push eax
push ebp
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x12fddd32
mov dword [0x131c96c0], 0xe
mov dword [0x131c96c4], 0x2263
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov dword [0x131c96c8], eax
mov dword [0x131c96c0], 0x10
mov dword [0x131c96c4], 0x365a
call esi
jmp 0x12fde62b
mov dword [0x131c96c0], 1
mov dword [0x131c96c4], 0x225c
jmp 0x12fddcf4
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x2d0]
mov dword [esp + 0x2cc], ecx
push edx
lea ecx, [esp + 0x16c]
push eax
push ecx
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], ebx
call fcn.12fedb10
mov edx, dword [esp + 0x1d4]
mov eax, dword [esp + 0x1d8]
add esp, 0xc
or edx, eax
mov dword [esp + 0x2f0], ebx
mov dword [esp + 0x2e8], ebx
mov dword [esp + 0x2ec], ebx
mov dword [esp + 0x2e0], esi
mov dword [esp + 0x2e4], ebx
mov dword [esp + 0x2f4], ebx
jne 0x12fdddaf
mov dword [esp + 0x50], 1
mov dword [esp + 0x10], ebx
jmp 0x12fde370
cmp dword [esp + 0x54], 3
jne 0x12fdddf8
cmp dword [esp + 0xc8], 1
jne 0x12fddddc
mov eax, dword [esp + 0xd0]
mov edx, dword [esp + 0x13c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x48]
push ebx
push ebx
push edx
push eax
jmp 0x12fdde1a
mov edx, dword [esp + 0x13c]
mov ecx, dword [esp + 0xcc]
mov eax, dword [esp + 0x48]
push ebx
push ebx
push edx
mov dword [esp + 0x3c], ecx
push eax
jmp 0x12fdde1a
cmp dword [esp + 0x64], ebx
jne 0x12fdde0a
cmp edi, 0x1000
mov dword [esp + 0x30], edi
jb 0x12fdde12
mov dword [esp + 0x30], 0x1000
mov ecx, dword [esp + 0x48]
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [esp + 0x30]
push esi
call fcn.12f5bf8b
mov ecx, dword [esp + 0x80]
add esp, 4
mov dword [esp + 0x20], eax
mov edx, dword [ecx]
push esi
call dword [edx + 8]
add eax, 0x10
push eax
mov dword [esp + 0x38], eax
call fcn.12f5bf8b
mov ecx, dword [esp + 0x2e8]
add esp, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2e0]
lea edx, [esp + 0x9c]
push ebx
push edx
mov dword [esp + 0xa0], eax
push eax
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0xa4], ebx
xor ebp, ebp
mov dword [esp + 0x70], ebx
mov dword [esp + 0xac], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x10], ebx
mov edi, dword [esp + 0x20]
mov ecx, esi
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 ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x18]
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 + 0x18]
mov dword [eax], ebx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x54]
mov dword [ecx + 8], ebx
mov edx, dword [esp + 0x18]
cmp eax, 3
mov dword [edx + 4], ebx
mov dword [esp + 0x2c], ebx
jne 0x12fde0c2
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xc8]
mov esi, dword [esp + 0xcc]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
jne 0x12fddf1d
mov esi, dword [esp + 0xd0]
mov dword [esp + 0x50], 1
cmp dword [esp + 0x60], esi
jae 0x12fddf47
cmp ebp, ebx
je 0x12fddf30
push ebp
call fcn.12f5bf80
add esp, 4
push esi
mov dword [esp + 0x64], esi
call fcn.12f5bf8b
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x12fde1d4
mov ecx, dword [esp + 0x60]
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x30]
push eax
push esi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x12fde238
mov eax, dword [esp + 0x2c]
cmp esi, eax
ja 0x12fde238
jne 0x12fde1ed
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x24], ebx
cmp eax, ebx
jb 0x12fde026
ja 0x12fddfa8
cmp dword [esp + 0xc0], ebx
jbe 0x12fde026
mov ecx, dword [esp + 0xa8]
lea edx, [esp + 0x90]
lea eax, [esp + 0x74]
push edx
push eax
push esi
push ebp
push ecx
mov dword [esp + 0x88], ebx
mov dword [esp + 0xa4], ebx
call fcn.12fdd2c0
add esp, 0x14
test eax, eax
je 0x12fde206
lea eax, [esp + 0x24]
mov ecx, dword [esp + 0x8c]
push eax
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x84]
push eax
mov eax, dword [esp + 0x98]
push eax
lea eax, [esp + 0x530]
push eax
call dword [edx + 0x14]
cmp eax, ebx
je 0x12fde21f
mov eax, dword [esp + 0x24]
jmp 0x12fde07a
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0x34]
cmp eax, ecx
mov dword [esp + 0x24], eax
jbe 0x12fde03f
mov eax, ecx
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0xa8]
and ecx, 0xffff
sub ecx, ebx
je 0x12fde064
dec ecx
je 0x12fde05d
dec ecx
jne 0x12fde07a
mov ecx, eax
lea esi, [ebp + 8]
jmp 0x12fde068
mov ecx, eax
lea esi, [ebp + 4]
jmp 0x12fde068
mov ecx, eax
mov esi, ebp
mov edi, dword [esp + 0x20]
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 ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xc8]
cmp ecx, edx
jne 0x12fde0b8
mov eax, dword [esp + 0xb4]
cmp eax, ebx
mov eax, dword [esp + 0xb0]
ja 0x12fde0a2
cmp eax, 0x1000
jbe 0x12fde0b4
and eax, 0xfff
xor ecx, ecx
mov edx, eax
or edx, ecx
jne 0x12fde0b4
mov eax, 0x1000
mov dword [esp + 0x24], eax
mov esi, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
jmp 0x12fde0f9
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x2c]
push ebx
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x12fde251
mov eax, dword [esp + 0x2c]
cmp eax, esi
jae 0x12fde0f9
cmp eax, ebx
mov dword [esp + 0x50], 1
je 0x12fde32c
lea ecx, [esp + 0x94]
lea edx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x48]
push edx
push ecx
lea edx, [esp + 0x40]
lea ecx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x30]
push ecx
push eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x98]
lea ecx, [esp + 0x184]
push eax
push ecx
push edx
mov dword [esp + 0x6c], ebx
call fcn.12fb9700
add esp, 0x28
cmp eax, ebx
jne 0x12fde267
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x6c]
push ebx
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
mov dword [esp + 0x80], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x12fde2f7
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x6c]
cmp eax, ecx
jb 0x12fde30d
mov edi, dword [esp + 0x2f0]
mov edx, dword [esp + 0x2e8]
inc edi
xor eax, eax
add edx, ecx
mov dword [esp + 0x2f0], edi
mov edi, dword [esp + 0x2ec]
mov dword [esp + 0x2e8], edx
mov edx, dword [esp + 0x38]
adc edi, eax
add edx, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x2ec], edi
adc ecx, eax
mov eax, dword [esp + 0x50]
cmp eax, ebx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
je 0x12fddea0
jmp 0x12fde32c
mov dword [0x131c96c0], 0x21
mov dword [0x131c96c4], 0x36c7
jmp 0x12fde2e2
mov dword [0x131c96c0], 0xd
mov dword [0x131c96c4], 0x36d8
jmp 0x12fde2e2
mov dword [0x131c96c0], 0x1c
mov dword [0x131c96c4], 0x36e9
jmp 0x12fde2e2
mov dword [0x131c96c0], 0x12
mov dword [0x131c96c4], 0x36f2
jmp 0x12fde2e2
mov dword [0x131c96c0], 0xd
mov dword [0x131c96c4], 0x36d1
jmp 0x12fde2e2
mov dword [0x131c96c0], 0xd
mov dword [0x131c96c4], 0x370e
jmp 0x12fde2e2
jge 0x12fde2ce
push 0x131911a8
lea ecx, [esp + 0x2c]
call fcn.12f46a80
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
push 0x3723
push ecx
mov ecx, dword [esp + 0xcc8]
push edx
push eax
push ecx
lea edx, [esp + 0x3c]
push 0x131828a4
push edx
mov dword [esp + 0xcd4], 1
call fcn.12f4a1a0
mov eax, dword [esp + 0x44]
push eax
call fcn.12ff1500
add esp, 0x20
lea ecx, [esp + 0x28]
mov dword [esp + 0xcb8], 0xffffffff
call fcn.12f47220
mov dword [0x131c96c0], 0x11
mov dword [0x131c96c4], 0x3727
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c96c8], eax
mov dword [esp + 0x10], 1
jmp 0x12fde32c
mov dword [0x131c96c0], 0xe
mov dword [0x131c96c4], 0x372f
jmp 0x12fde321
mov dword [0x131c96c0], 0xe
mov dword [0x131c96c4], 0x3735
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c96c8], eax
cmp ebp, ebx
je 0x12fde339
push ebp
call fcn.12f5bf80
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x12fde34a
push eax
call fcn.12f5bf80
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x12fde35f
push eax
call fcn.12f5bf80
add esp, 4
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x12fde370
push eax
call fcn.12f5bf80
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [esp + 0x50], ebx
je 0x12fde630
cmp dword [esp + 0x10], ebx
jne 0x12fde630
mov esi, dword [esp + 0x58]
mov dword [esp + 0x4e8], ebx
cmp esi, ebx
mov dword [esp + 0x4ec], ebx
mov dword [esp + 0x4f8], ebx
mov dword [esp + 0x4f0], ebx
mov dword [esp + 0x4fc], ebx
mov dword [esp + 0x4f4], ebx
jne 0x12fde3d0
mov esi, dword [esp + 0xcd4]
cmp esi, ebx
je 0x12fde498
mov eax, dword [esi + 0x70]
mov ebp, dword [esi + 0x6c]
add eax, ebp
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x74]
lea ecx, [eax + edx*2]
lea eax, [esp + 0x4e8]
lea edx, [ecx + ecx + 0x7a]
mov ecx, dword [esp + 0x578]
push edx
mov edx, dword [esp + 0x18]
push esi
push eax
push ecx
push edx
call fcn.12fb8dc0
add esp, 0x14
test eax, eax
je 0x12fde475
mov ebp, dword [esp + 0x57c]
push esi
or ebp, 4
mov dword [esp + 0x580], ebp
call fcn.12fedc70
add esp, 4
test eax, eax
jne 0x12fde436
mov eax, dword [esp + 0x57c]
or al, 1
mov dword [esp + 0x57c], eax
add esi, 0x10
push esi
call fcn.12fedc70
add esp, 4
test eax, eax
jne 0x12fde456
mov eax, dword [esp + 0x57c]
or al, 2
mov dword [esp + 0x57c], eax
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x4f0]
mov eax, dword [esp + 0x3c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
add edi, ecx
adc eax, ebx
mov dword [esp + 0x3c], eax
jmp 0x12fde4a2
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c96c0], 0x10
mov dword [0x131c96c4], 0x376e
call ebp
mov dword [0x131c96c8], eax
jmp 0x12fde49e
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0xcc8]
mov dword [esp + 0x500], ebx
mov dword [esp + 0x504], ebx
mov dword [esp + 0x510], ebx
mov eax, dword [esi + 0x68]
mov edx, dword [esi + 0x64]
mov ecx, eax
mov dword [esp + 0x508], ebx
shl ecx, 4
add ecx, eax
mov dword [esp + 0x514], ebx
mov dword [esp + 0x50c], ebx
lea eax, [edx + ecx*8]
mov ecx, dword [esi + 0x6c]
lea edx, [ecx + eax*2 + 0x82]
mov ecx, dword [esp + 0x578]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x504]
push esi
push eax
push ecx
push edx
call fcn.12fb8dc0
add esp, 0x14
test eax, eax
je 0x12fde56c
mov ecx, dword [esp + 0x580]
push esi
add ecx, 4
mov dword [esp + 0x584], ecx
call fcn.12fedc70
add esp, 4
test eax, eax
jne 0x12fde53e
mov eax, dword [esp + 0x580]
or al, 1
mov dword [esp + 0x580], eax
cmp dword [esp + 0xcdc], ebx
je 0x12fde557
mov eax, dword [esp + 0x580]
or al, 2
mov dword [esp + 0x580], eax
mov ecx, dword [esp + 0x508]
mov eax, dword [esp + 0x3c]
add edi, ecx
adc eax, ebx
mov dword [esp + 0x3c], eax
jmp 0x12fde587
mov dword [0x131c96c0], 0x10
mov dword [0x131c96c4], 0x378c
call ebp
mov dword [0x131c96c8], eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x558]
push ecx
mov dword [esp + 0x1d4], edi
mov dword [esp + 0x1d8], eax
call fcn.12fb8be0
lea edx, [esp + 0x1ac]
lea eax, [esp + 0x55c]
push edx
push eax
call fcn.12fb93d0
add esp, 0xc
test eax, eax
je 0x12fde761
mov esi, dword [esp + 0x14]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x40]
push ebx
push ecx
lea edx, [esp + 0x560]
push 0x3d0
push edx
push esi
mov dword [esp + 0x54], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x12fde683
mov dword [0x131c96c0], 0xe
mov dword [0x131c96c4], 0x2263
call ebp
mov dword [0x131c96c8], eax
mov dword [0x131c96c0], 0x10
mov dword [0x131c96c4], 0x37a1
call ebp
mov dword [0x131c96c8], eax
mov eax, dword [esp + 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x12fde649
push eax
call esi
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x12fde65a
push eax
call fcn.12f5bf80
add esp, 4
mov esi, dword [esp + 0x80]
cmp esi, ebx
jne 0x12fde67c
cmp dword [esp + 0x88], ebx
je 0x12fde67c
mov ecx, dword [esp + 0xcc4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
jmp 0x12fde797
cmp dword [esp + 0xce0], ebx
je 0x12fde693
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [esp + 0x80], 1
jmp 0x12fde630
mov dword [0x131c96c0], 3
mov dword [0x131c96c4], 0x3555
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c96c8], eax
mov eax, esi
jmp 0x12fde797
mov dword [0x131c96c0], 4
mov dword [0x131c96c4], 0x35ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fde62b
mov dword [0x131c96c0], 9
mov dword [0x131c96c4], 0x35f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fde62b
mov dword [0x131c96c0], 8
mov dword [0x131c96c4], 0x35ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fde62b
mov dword [0x131c96c0], 0xb
mov dword [0x131c96c4], 0x360f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fde62b
mov dword [0x131c96c0], 0xc
mov dword [0x131c96c4], 0x3616
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fde62b
mov dword [0x131c96c0], 0x13
mov dword [0x131c96c4], 0x3799
jmp 0x12fde629
mov dword [0x131c96c0], 1
mov dword [0x131c96c4], 0x3523
call esi
mov dword [0x131c96c8], eax
xor eax, eax
mov ecx, dword [esp + 0xcb0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xcac
ret