Function at 0x12fd1710
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1307194c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
xor ebx, ebx
push edi
mov dword [0x131c96c0], ebx
call ebp
mov esi, dword [esp + 0x154]
mov dword [0x131c96c8], eax
mov eax, dword [esp + 0x158]
mov dword [esp + 0x40], ebx
cmp eax, ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x84], 0xffffffff
je 0x12fd23ca
cmp dword [0x131c96cc], ebx
je 0x12fd23e7
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x45]
mov byte [esp + 0x44], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x44]
push eax
push esi
call fcn.12fd9ff0
add esp, 8
test eax, eax
je 0x12fd2404
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2c]
push ebx
push edx
push ebx
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], ebx
call fcn.12fc2de0
mov eax, dword [esp + 0x30]
add esp, 0x14
cmp eax, ebx
jne 0x12fd2421
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0xa8]
mov dword [esp + 0xa4], ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xa4]
lea edx, [esp + 0x44]
push ecx
push edx
push esi
call fcn.12fda230
add esp, 0xc
test eax, eax
je 0x12fd2441
mov eax, dword [esp + 0xbb]
mov ecx, dword [esp + 0xc0]
mov edx, dword [0x131c96d8]
and eax, 0xff
cmp ecx, 0x2710
ja 0x12fd1838
cmp edx, 0x2710
ja 0x12fd185a
cmp edx, ecx
je 0x12fd185a
cmp ecx, ebx
jne 0x12fd1848
jmp 0x12fd185a
cmp ecx, edx
jne 0x12fd1848
cmp dword [0x131c96e0], ebx
ja 0x12fd185a
cmp eax, ebx
je 0x12fd185a
push eax
push ecx
call fcn.12fd8480
add esp, 8
cmp eax, ebx
je 0x12fd2461
lea ecx, [esp + 0x14]
call fcn.12f923b0
lea eax, [esp + 0x34]
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0xac]
push edx
lea ecx, [esp + 0x50]
push eax
push ecx
push esi
mov dword [esp + 0x164], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.12fda700
add esp, 0x18
test eax, eax
je 0x12fd2481
mov edx, dword [esp + 0x30]
xor ecx, ecx
mov si, word [edx + 0xc]
cmp si, bx
jbe 0x12fd18e0
mov edx, dword [esp + 0x34]
mov eax, ecx
and eax, 0xffff
lea eax, [eax + eax*4]
test byte [edx + eax*8 + 8], 1
lea eax, [edx + eax*8]
je 0x12fd18da
mov eax, dword [eax]
cmp eax, 1
jb 0x12fd24a1
cmp eax, 4
ja 0x12fd24a1
inc ecx
cmp cx, si
jb 0x12fd18b2
mov eax, dword [esp + 0x158]
mov ecx, dword [eax]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.12f92440
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], 1
mov esi, 1
mov dword [esp + 0x18], ebx
call fcn.12f923b0
lea edx, [esp + 0x98]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x158], 2
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
call fcn.12f925b0
push eax
push 2
lea edx, [esp + 0x28]
push 4
lea eax, [esp + 0x4c]
push edx
lea ecx, [esp + 0x4c]
push eax
push ecx
call fcn.12fdae40
add esp, 0x24
lea ecx, [esp + 0x10]
call fcn.12f925b0
test eax, eax
jne 0x12fd1972
cmp dword [esp + 0x18], ebx
je 0x12fd24c1
lea ecx, [esp + 0x10]
call fcn.12f925b0
push eax
push 2
lea edx, [esp + 0x3c]
push 4
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.12fdadc0
mov ebp, eax
mov eax, dword [esp + 0xdc]
add esp, 0x14
cmp ebp, eax
mov dword [esp + 0xa0], ebp
ja 0x12fd19a8
xor esi, esi
cmp esi, ebx
mov dword [esp + 0x28], ebx
je 0x12fd1a7b
mov eax, dword [esp + 0x160]
cmp eax, ebx
je 0x12fd2565
mov edi, dword [esp + 0x164]
cmp edi, ebx
je 0x12fd2565
mov ecx, dword [0x1307d25c]
mov dword [esp + 0x1c], ecx
mov edx, dword [0x131c9c00]
lea ecx, [esp + 0x1c]
push edx
push ecx
push 0x1311b178
push eax
mov byte [esp + 0x15c], 3
call fcn.12fee520
add esp, 0x10
test eax, eax
je 0x12fd2507
mov edx, dword [esp + 0x1c]
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push edx
call fcn.12fee850
mov esi, eax
add esp, 0x1c
cmp esi, 0xffffffff
mov dword [esp + 0x84], esi
je 0x12fd2539
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.12f473b0
mov edx, dword [esp + 0x154]
lea ecx, [esp + 0xa4]
push ebp
push ecx
push esi
push edx
call fcn.12fd2600
add esp, 0x10
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x12fd254f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], esi
mov byte [esp + 0x14c], 2
call fcn.12f47220
mov esi, dword [esp + 0x68]
lea ecx, [esp + 0x10]
or esi, 1
mov dword [esp + 0x68], esi
call fcn.12f925b0
mov esi, eax
mov dword [0x131c96c0], ebx
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x131c96c8], eax
lea eax, [esp + 0x1c]
push 1
push eax
push ebx
push ebp
mov dword [esp + 0x2c], ebx
call edi
push ebx
push ebx
push ebx
push ebp
mov dword [esp + 0x3c], eax
call edi
mov edx, dword [0x13182bc4]
mov ecx, dword [0x13182bc0]
xor ebp, ebp
mov eax, dword [0x13182bc8]
neg esi
sbb esi, esi
mov dword [esp + 0x48], edx
add esi, 0x40002
mov dword [esp + 0x44], ecx
mov ecx, dword [0x13182bcc]
mov dword [esp + 0x64], esi
lea edx, [esp + 0x44]
mov esi, 0x50
push 0x40
push edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
mov word [esp + 0x7c], 0x40
mov word [esp + 0x8a], si
mov dword [esp + 0x80], ebx
call fcn.12fedaf0
mov dword [esp + 0x80], eax
lea eax, [esp + 0x4c]
push eax
call fcn.12fdaba0
add esp, 0xc
test eax, eax
je 0x12fd1b9c
mov eax, dword [esp + 0x64]
cmp eax, 0x40001
je 0x12fd1b52
cmp eax, 0x40002
jne 0x12fd1b9c
cmp word [esp + 0x82], si
jne 0x12fd1b9c
mov esi, dword [esp + 0x78]
lea ecx, [esp + 0x44]
push esi
push 0x40
push ecx
mov dword [esp + 0x84], ebx
call fcn.12fedaa0
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x78], esi
je 0x12fd1b9c
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x44]
push 0x40
push edx
push eax
call fcn.12fd4b60
add esp, 0xc
test eax, eax
je 0x12fd1b9c
mov ebp, 1
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push ebx
push ecx
push edx
push eax
call edi
cmp ebp, ebx
jne 0x12fd1be9
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0x10
mov dword [0x131c96c0], esi
mov dword [0x131c96c4], 0x330c
call edi
mov dword [0x131c96c8], eax
mov dword [0x131c96c0], esi
mov dword [0x131c96c4], 0x1db7
jmp 0x12fd22f1
lea ecx, [esp + 0x10]
xor esi, esi
call fcn.12f925b0
test eax, eax
je 0x12fd1c03
lea ecx, [esp + 0x10]
call fcn.12f92cb0
mov esi, eax
mov ebp, dword [esp + 0x68]
mov ecx, ebp
and ch, 0xfe
cmp esi, ebx
je 0x12fd1c40
mov al, byte [esi + 6]
cmp al, 1
je 0x12fd1c24
cmp al, bl
je 0x12fd1c24
xor edx, edx
mov dh, byte [esi + 5]
mov edi, edx
jmp 0x12fd1c26
xor edi, edi
xor eax, eax
mov edx, dword [esi]
mov al, byte [esi + 4]
add eax, edi
lea eax, [eax + eax*4]
lea eax, [eax*4 + 8]
cmp edx, eax
jb 0x12fd1c40
or ch, 1
cmp ecx, ebp
je 0x12fd1c48
mov dword [esp + 0x68], ecx
mov eax, dword [esp + 0x18]
xor esi, esi
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x1c], ebx
je 0x12fd1c5e
mov esi, dword [eax + 0x10]
mov edi, dword [eax + 0x14]
lea ecx, [esp + 0x10]
call fcn.12f925b0
test eax, eax
jne 0x12fd1c86
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x12fd1d7f
mov edx, dword [ecx + 0xc]
mov eax, 0xffffffd8
sub eax, edx
jmp 0x12fd1d47
cmp dword [esp + 0x18], ebx
je 0x12fd1cb2
lea ecx, [esp + 0x20]
call fcn.12f925b0
test eax, eax
jbe 0x12fd1d7f
lea ecx, [esp + 0x10]
call fcn.12f925b0
mov ecx, dword [esp + 0x18]
sub eax, dword [ecx + 0xc]
jmp 0x12fd1d47
mov ecx, dword [esp + 0x30]
xor eax, eax
mov ax, word [ecx + 0xc]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x34]
lea edx, [eax + edx*8]
mov dword [esp + 0x18], edx
inc word [ecx + 0xc]
mov eax, dword [esp + 0x18]
mov dword [eax], 4
mov ecx, dword [esp + 0x18]
mov byte [ecx + 4], 2
lea ecx, [esp + 0x10]
call fcn.12f925b0
test eax, eax
jbe 0x12fd1cf8
lea ecx, [esp + 0x10]
call fcn.12f925b0
jmp 0x12fd1cfa
xor eax, eax
mov edx, dword [esp + 0x18]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x9c]
add eax, 0x28
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0x18]
adc ecx, ebx
mov dword [eax + 0x14], ecx
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
or dword [eax + 8], 1
call fcn.12f925b0
test eax, eax
jbe 0x12fd1d42
lea ecx, [esp + 0x10]
call fcn.12f925b0
jmp 0x12fd1d44
xor eax, eax
add eax, 0x28
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x12fd1d7f
mov edx, dword [esp + 0x34]
push edi
lea ecx, [esp + 0x24]
push esi
push ecx
push eax
mov eax, dword [esp + 0x40]
push 2
push 4
push edx
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x60]
push eax
push ecx
push edx
call fcn.12fd2840
add esp, 0x28
test eax, eax
je 0x12fd22f8
lea ecx, [esp + 0x10]
call fcn.12f925b0
test eax, eax
jne 0x12fd1e5c
cmp dword [esp + 0x18], ebx
je 0x12fd1e5c
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
add ecx, 0xc
xor edx, edx
xor ebp, ebp
mov dword [esp + 0x3c], eax
cmp word [ecx], bx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], ecx
jbe 0x12fd1f23
cmp edx, ebx
mov eax, ebp
je 0x12fd1e0b
and eax, 0xffff
mov ecx, 0xa
lea edi, [esp + 0xf4]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x3c]
lea eax, [eax + edx*8]
mov esi, eax
rep movsd dword es:[edi], dword [esi]
lea edx, [eax - 0x28]
mov ecx, 0xa
mov esi, edx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xa
lea esi, [esp + 0xf4]
mov edi, edx
mov edx, dword [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x38]
jmp 0x12fd1e2e
mov esi, dword [esp + 0x3c]
and eax, 0xffff
lea eax, [eax + eax*4]
lea eax, [esi + eax*8]
cmp dword [eax], 4
jne 0x12fd1e2e
cmp byte [eax + 4], 2
jne 0x12fd1e2e
mov edx, 1
mov dword [esp + 0x2c], edx
inc ebp
cmp bp, word [ecx]
jb 0x12fd1dbe
cmp edx, ebx
je 0x12fd1f23
dec word [ecx]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.12f925b0
sub eax, 0x28
lea ecx, [esp + 0x18]
push eax
call fcn.12f925c0
jmp 0x12fd1f23
lea ecx, [esp + 0x10]
call fcn.12f925b0
test eax, eax
jbe 0x12fd1e74
lea ecx, [esp + 0x10]
call fcn.12f925b0
jmp 0x12fd1e76
xor eax, eax
mov ecx, dword [esp + 0x18]
xor edx, edx
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x18]
mov ebp, dword [eax + 8]
or ebp, 4
mov dword [eax + 8], ebp
lea eax, [esp + 0x88]
push eax
mov eax, dword [esp + 0x15c]
mov dword [esp + 0x8d], edx
mov byte [esp + 0x8c], bl
mov ecx, dword [eax]
mov dword [esp + 0x91], edx
mov dword [esp + 0x95], edx
push ecx
mov word [esp + 0x9d], dx
push eax
push 1
mov byte [esp + 0xa7], dl
call fcn.13032f00
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x48]
push eax
push ecx
push edx
call fcn.12fdcec0
add esp, 0x10
test eax, eax
je 0x12fd25be
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x88]
add eax, 0x18
mov dword [eax], ecx
mov edx, dword [esp + 0x8c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x90]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x94]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
push edi
call fcn.12fdcaa0
add esp, 0x10
test eax, eax
je 0x12fd25dd
cmp dword [esp + 0x1c], ebx
jne 0x12fd1f57
cmp dword [esp + 0x28], ebx
je 0x12fd2116
lea ecx, [esp + 0x14]
call fcn.12f925b0
mov word [esp + 0xb6], ax
mov dword [0x131c96c0], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x131c96c8], eax
lea eax, [esp + 0x28]
push 1
push eax
push ebx
push edi
mov dword [esp + 0x38], ebx
call esi
push ebx
push ebx
push 0x40
push edi
mov dword [esp + 0x3c], eax
call esi
mov esi, 0x50
lea ecx, [esp + 0xa4]
mov edi, 0x38
push esi
push ecx
xor ebp, ebp
mov word [esp + 0xb0], si
mov word [esp + 0xbc], di
mov dword [esp + 0xac], ebx
call fcn.12fedaf0
add esp, 8
cmp word [esp + 0xa8], si
mov dword [esp + 0xa4], eax
jne 0x12fd20c5
cmp word [esp + 0xb4], di
jne 0x12fd20c5
mov esi, eax
lea edx, [esp + 0xa4]
push esi
push 0x50
push edx
mov dword [esp + 0xb0], ebx
call fcn.12fedaa0
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0xa4], esi
je 0x12fd20c5
mov ecx, 0x14
lea esi, [esp + 0xa4]
lea edi, [esp + 0xf4]
lea eax, [esp + 0xf4]
rep movsd dword es:[edi], dword [esi]
push 0x50
lea ecx, [esp + 0x48]
push eax
push ecx
call fcn.12fdb810
add esp, 0xc
test eax, eax
je 0x12fd20c5
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x12fd209f
lea edx, [esp + 0xf4]
test edx, edx
je 0x12fd209f
lea ecx, [esp + 0x38]
push ebx
push ecx
lea edx, [esp + 0xfc]
push 0x50
push edx
push eax
mov dword [esp + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x12fd20c0
mov dword [0x131c96c0], 0xe
mov dword [0x131c96c4], 0x2263
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c96c8], eax
jmp 0x12fd20c5
mov dword [0x131c96c0], 1
mov dword [0x131c96c4], 0x225c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c96c8], eax
jmp 0x12fd20c5
mov ebp, 1
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x28]
push ebx
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp ebp, ebx
jne 0x12fd2116
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0x10
mov dword [0x131c96c0], esi
mov dword [0x131c96c4], 0x3339
call edi
mov dword [0x131c96c8], eax
mov dword [0x131c96c0], esi
mov dword [0x131c96c4], 0x1e18
jmp 0x12fd22f1
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x10]
and al, 0xfe
mov dword [esp + 0x68], eax
call fcn.12f925b0
mov esi, eax
mov dword [0x131c96c0], ebx
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x131c96c8], eax
lea eax, [esp + 0x28]
push 1
push eax
push ebx
push ebp
mov dword [esp + 0x38], ebx
call edi
push ebx
push ebx
push ebx
push ebp
mov dword [esp + 0x4c], eax
call edi
mov edx, dword [0x13182bc4]
mov ecx, dword [0x13182bc0]
mov eax, dword [0x13182bc8]
mov dword [esp + 0x48], edx
neg esi
sbb esi, esi
mov dword [esp + 0x44], ecx
mov ecx, dword [0x13182bcc]
lea edx, [esp + 0x44]
add esi, 0x40002
push 0x40
push edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
mov word [esp + 0x7c], 0x40
mov dword [esp + 0x6c], esi
mov word [esp + 0x8a], 0x50
mov dword [esp + 0x80], ebx
call fcn.12fedaf0
add esp, 8
mov ecx, 4
mov edi, 0x13182bc0
lea esi, [esp + 0x44]
xor edx, edx
mov dword [esp + 0x78], eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x12fd22a7
cmp word [esp + 0x74], 0x40
jne 0x12fd22a7
mov ecx, dword [esp + 0x64]
cmp ecx, 0x40001
je 0x12fd2204
cmp ecx, 0x40002
jne 0x12fd22a7
cmp word [esp + 0x82], 0x50
jne 0x12fd22a7
mov esi, eax
lea eax, [esp + 0x44]
push esi
push 0x40
push eax
mov dword [esp + 0x84], ebx
call fcn.12fedaa0
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x78], esi
je 0x12fd22a7
cmp ebp, 0xffffffff
je 0x12fd227e
lea ecx, [esp + 0x44]
test ecx, ecx
je 0x12fd227e
lea edx, [esp + 0x38]
push ebx
push edx
lea eax, [esp + 0x4c]
push 0x40
push eax
push ebp
mov dword [esp + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x12fd229f
mov dword [0x131c96c0], 0xe
mov dword [0x131c96c4], 0x2263
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c96c8], eax
jmp 0x12fd22a7
mov dword [0x131c96c0], 1
mov dword [0x131c96c4], 0x225c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c96c8], eax
jmp 0x12fd22a7
mov dword [esp + 0x2c], 1
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x28]
push ebx
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x2c], ebx
jne 0x12fd232f
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0x10
mov dword [0x131c96c0], esi
mov dword [0x131c96c4], 0x330c
call edi
mov dword [0x131c96c8], eax
mov dword [0x131c96c0], esi
mov dword [0x131c96c4], 0x1e21
call edi
mov dword [0x131c96c8], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], 1
call fcn.12f92510
lea ecx, [esp + 0x10]
mov byte [esp + 0x14c], bl
call fcn.12f92510
lea ecx, [esp + 0x14]
mov dword [esp + 0x14c], 0xffffffff
call fcn.12f92510
jmp 0x12fd239a
mov ecx, dword [esp + 0xa0]
lea eax, [ecx + 0xfff]
shr eax, 0xc
shl eax, 0xc
push eax
push ecx
push ebp
call fcn.12fde960
add esp, 0xc
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], 1
mov byte [esp + 0x14c], 1
call fcn.12f92510
lea ecx, [esp + 0x10]
mov byte [esp + 0x14c], bl
call fcn.12f92510
lea ecx, [esp + 0x14]
mov dword [esp + 0x14c], 0xffffffff
call fcn.12f92510
cmp dword [esp + 0x15c], ebx
je 0x12fd239a
push ebp
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [esp + 0x84]
cmp eax, 0xffffffff
je 0x12fd23ad
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x144]
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x140
ret
mov dword [0x131c96c0], 1
mov dword [0x131c96c4], 0x1d36
call ebp
mov dword [0x131c96c8], eax
jmp 0x12fd23ad
mov dword [0x131c96c0], 2
mov dword [0x131c96c4], 0x1d3c
call ebp
mov dword [0x131c96c8], eax
jmp 0x12fd23ad
mov dword [0x131c96c0], 7
mov dword [0x131c96c4], 0x1d43
call ebp
mov dword [0x131c96c8], eax
jmp 0x12fd23ad
mov dword [0x131c96c0], 0x31
mov dword [0x131c96c4], 0x1d4a
call ebp
mov dword [0x131c96c8], eax
jmp 0x12fd23ad
mov dword [0x131c96c0], 8
mov dword [0x131c96c4], 0x1d53
call ebp
mov dword [0x131c96c8], eax
jmp 0x12fd23ad
mov dword [0x131c96c0], 0x1f
mov dword [0x131c96c4], 0x1d59
call ebp
mov dword [0x131c96c8], eax
jmp 0x12fd23ad
mov dword [0x131c96c0], 0x2c
mov dword [0x131c96c4], 0x1d62
call ebp
mov dword [0x131c96c8], eax
jmp 0x12fd25a5
mov dword [0x131c96c0], 0x32
mov dword [0x131c96c4], 0x1d68
call ebp
mov dword [0x131c96c8], eax
jmp 0x12fd25a5
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], 1
mov byte [esp + 0x14c], 1
call fcn.12f92510
lea ecx, [esp + 0x10]
mov byte [esp + 0x14c], bl
call fcn.12f92510
lea ecx, [esp + 0x14]
mov dword [esp + 0x14c], 0xffffffff
call fcn.12f92510
mov ebp, dword [esp + 0x24]
jmp 0x12fd238a
mov dword [0x131c96c0], 0x24
mov dword [0x131c96c4], 0x1d93
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x1c]
mov dword [0x131c96c8], eax
mov byte [esp + 0x14c], 2
call fcn.12f47220
jmp 0x12fd2584
mov dword [0x131c96c0], 3
mov dword [0x131c96c4], 0x1da2
jmp 0x12fd251b
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 2
call fcn.12f47220
jmp 0x12fd22f8
mov dword [0x131c96c0], 1
mov dword [0x131c96c4], 0x1d8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c96c8], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], 1
call fcn.12f92510
lea ecx, [esp + 0x10]
mov byte [esp + 0x14c], bl
call fcn.12f92510
lea ecx, [esp + 0x14]
mov dword [esp + 0x14c], 0xffffffff
call fcn.12f92510
jmp 0x12fd23ad
mov dword [0x131c96c0], 0x10
mov dword [0x131c96c4], 0x1e04
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fd22f3
mov dword [0x131c96c0], 0x10
mov dword [0x131c96c4], 0x1e0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fd22f3