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

Disassembly:
push 0xffffffffffffffff
push 0x130719ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
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 dword [0x131c96c8], eax
mov eax, dword [esp + 0x14c]
cmp eax, ebx
mov dword [esp + 0x34], ebx
je 0x12fd2e46
cmp dword [0x131c96cc], ebx
je 0x12fd2e66
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], bl
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x148]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x38]
push eax
push ecx
call fcn.12fd9ff0
add esp, 8
test eax, eax
je 0x12fd2e86
mov esi, dword [esp + 0x5c]
mov edx, dword [esp + 0x14c]
not esi
shr esi, 6
push edx
and esi, 1
call fcn.12fde810
add esp, 4
cmp esi, ebx
mov dword [esp + 0x24], eax
je 0x12fd2b70
cmp eax, ebx
jne 0x12fd2ea6
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ebx
push ecx
push ebx
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x44], ebx
call fcn.12fc2de0
mov eax, dword [esp + 0x28]
add esp, 0x14
cmp eax, ebx
jne 0x12fd2eb3
mov edx, dword [esp + 0x148]
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x9c]
mov dword [esp + 0x98], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x98]
lea ecx, [esp + 0x38]
push eax
push ecx
push edx
call fcn.12fda230
add esp, 0xc
test eax, eax
je 0x12fd2ed3
mov eax, dword [esp + 0xaf]
mov ecx, dword [esp + 0xb4]
mov edx, dword [0x131c96d8]
and eax, 0xff
cmp ecx, 0x2710
ja 0x12fd2c0c
cmp edx, 0x2710
ja 0x12fd2c2e
cmp edx, ecx
je 0x12fd2c2e
cmp ecx, ebx
jne 0x12fd2c1c
jmp 0x12fd2c2e
cmp ecx, edx
jne 0x12fd2c1c
cmp dword [0x131c96e0], ebx
ja 0x12fd2c2e
cmp eax, ebx
je 0x12fd2c2e
push eax
push ecx
call fcn.12fd8480
add esp, 8
cmp eax, ebx
je 0x12fd2ef3
lea ecx, [esp + 0x18]
call fcn.12f923b0
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0xa0]
push edx
mov edx, dword [esp + 0x154]
lea ecx, [esp + 0x44]
push eax
push ecx
push edx
mov dword [esp + 0x158], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.12fda700
add esp, 0x18
test eax, eax
je 0x12fd2f13
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov di, word [eax + 0xc]
cmp di, bx
jbe 0x12fd2cbb
mov edx, dword [esp + 0x2c]
mov eax, ecx
and eax, 0xffff
lea eax, [eax + eax*4]
test byte [edx + eax*8 + 8], 1
lea eax, [edx + eax*8]
je 0x12fd2cb5
mov eax, dword [eax]
cmp eax, 1
jb 0x12fd2f33
cmp eax, 4
ja 0x12fd2f33
inc ecx
cmp cx, di
jb 0x12fd2c8d
cmp esi, ebx
jne 0x12fd2d70
cmp dword [esp + 0x24], ebx
jne 0x12fd2d70
lea ecx, [esp + 0x14]
call fcn.12f923b0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], 1
push ecx
push edx
mov edx, dword [esp + 0x150]
lea ecx, [esp + 0x40]
push eax
push ecx
push edx
call fcn.12fd10b0
add esp, 0x14
test eax, eax
je 0x12fd2d5f
lea ecx, [esp + 0x14]
call fcn.12f92cb0
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.12f925b0
cmp eax, 0x78
jb 0x12fd2d5f
lea ecx, [esp + 0x14]
call fcn.12f925b0
cmp eax, 0x78
jb 0x12fd2d5f
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x6c]
add ecx, edx
mov edx, dword [esi + 0x74]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*2]
lea edx, [ecx + ecx + 0x7a]
cmp edx, eax
jne 0x12fd2d5f
mov eax, dword [esp + 0x14c]
push esi
push eax
call fcn.12fde890
add esp, 8
test eax, eax
jne 0x12fd2f53
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], 0
call fcn.12f92510
lea ecx, [esp + 0x10]
call fcn.12f923b0
mov edx, dword [esp + 0x14c]
lea ecx, [esp + 0x10]
push ecx
push edx
mov byte [esp + 0x148], 2
call fcn.12fdb400
add esp, 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], ebx
call fcn.12f923b0
lea eax, [esp + 0x88]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 3
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
call fcn.12f925b0
push eax
push 1
lea eax, [esp + 0x2c]
push 3
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x44]
push ecx
push edx
call fcn.12fdae40
add esp, 0x24
lea ecx, [esp + 0x10]
call fcn.12f925b0
test eax, eax
jne 0x12fd2e07
cmp dword [esp + 0x1c], ebx
je 0x12fd2f85
lea ecx, [esp + 0x10]
call fcn.12f925b0
push eax
push 1
lea eax, [esp + 0x34]
push 3
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.12fdadc0
mov ecx, dword [esp + 0xd0]
add esp, 0x14
cmp eax, ecx
mov dword [esp + 0x90], eax
jbe 0x12fd2fc8
mov dword [esp + 0x34], ebx
jmp 0x12fd3878
mov dword [0x131c96c0], 1
mov dword [0x131c96c4], 0x1f16
call ebp
mov dword [0x131c96c8], eax
jmp 0x12fd3925
mov dword [0x131c96c0], 2
mov dword [0x131c96c4], 0x1f1c
call ebp
mov dword [0x131c96c8], eax
jmp 0x12fd3925
mov dword [0x131c96c0], 7
mov dword [0x131c96c4], 0x1f23
call ebp
mov dword [0x131c96c8], eax
jmp 0x12fd3925
mov dword [esp + 0x34], 1
jmp 0x12fd390e
mov dword [0x131c96c0], 0x31
mov dword [0x131c96c4], 0x1f33
call ebp
mov dword [0x131c96c8], eax
jmp 0x12fd3925
mov dword [0x131c96c0], 8
mov dword [0x131c96c4], 0x1f3a
call ebp
mov dword [0x131c96c8], eax
jmp 0x12fd3925
mov dword [0x131c96c0], 0x1f
mov dword [0x131c96c4], 0x1f40
call ebp
mov dword [0x131c96c8], eax
jmp 0x12fd3925
mov dword [0x131c96c0], 0x2c
mov dword [0x131c96c4], 0x1f49
call ebp
mov dword [0x131c96c8], eax
jmp 0x12fd389a
mov dword [0x131c96c0], 0x32
mov dword [0x131c96c4], 0x1f4f
call ebp
mov dword [0x131c96c8], eax
jmp 0x12fd389a
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], 1
mov byte [esp + 0x140], 0
call fcn.12f92510
lea ecx, [esp + 0x18]
mov dword [esp + 0x140], 0xffffffff
call fcn.12f92510
jmp 0x12fd390e
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 1
mov byte [esp + 0x140], 2
call fcn.12f92510
lea ecx, [esp + 0x10]
mov byte [esp + 0x140], 0
call fcn.12f92510
lea ecx, [esp + 0x18]
mov dword [esp + 0x140], 0xffffffff
call fcn.12f92510
jmp 0x12fd390e
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
or edx, 1
mov dword [esp + 0x5c], edx
xor edx, edx
cmp ecx, 0x40002
setne dl
xor edi, edi
mov esi, edx
mov dword [0x131c96c0], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x148]
mov dword [0x131c96c8], eax
lea eax, [esp + 0x14]
push 1
push eax
mov dword [esp + 0x1c], edi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call edi
push 0
push 0
push 0
push ebx
mov ebp, eax
call edi
mov edx, dword [0x13182bc4]
mov ecx, dword [0x13182bc0]
xor ebx, ebx
mov eax, dword [0x13182bc8]
neg esi
sbb esi, esi
mov dword [esp + 0x3c], edx
add esi, 0x40002
mov dword [esp + 0x38], ecx
mov ecx, dword [0x13182bcc]
mov dword [esp + 0x58], esi
lea edx, [esp + 0x38]
mov esi, 0x50
push 0x40
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov word [esp + 0x70], 0x40
mov word [esp + 0x7e], si
mov dword [esp + 0x74], ebx
call fcn.12fedaf0
mov dword [esp + 0x74], eax
lea eax, [esp + 0x40]
push eax
call fcn.12fdaba0
add esp, 0xc
test eax, eax
je 0x12fd30e8
mov eax, dword [esp + 0x58]
cmp eax, 0x40001
je 0x12fd309d
cmp eax, 0x40002
jne 0x12fd30e8
cmp word [esp + 0x76], si
jne 0x12fd30e8
mov esi, dword [esp + 0x6c]
lea ecx, [esp + 0x38]
push esi
push 0x40
push ecx
mov dword [esp + 0x78], 0
call fcn.12fedaa0
add esp, 0xc
mov dword [esp + 0x6c], esi
test eax, eax
je 0x12fd30e8
mov eax, dword [esp + 0x148]
lea edx, [esp + 0x38]
push 0x40
push edx
push eax
call fcn.12fd4b60
add esp, 0xc
test eax, eax
je 0x12fd30e8
mov ebx, 1
mov edx, dword [esp + 0x148]
lea ecx, [esp + 0x14]
push 0
push ecx
push ebp
push edx
call edi
test ebx, ebx
jne 0x12fd3135
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], 0x1f87
jmp 0x12fd3871
lea ecx, [esp + 0x10]
call fcn.12f925b0
test eax, eax
jbe 0x12fd314f
lea ecx, [esp + 0x10]
call fcn.12f92cb0
test eax, eax
jne 0x12fd3158
mov esi, dword [esp + 0x5c]
and esi, 0xffffffb1
jmp 0x12fd3174
mov esi, dword [esp + 0x5c]
push eax
or esi, 8
call fcn.12fd9630
add esp, 4
test eax, eax
je 0x12fd3171
and esi, 0xffffffbf
jmp 0x12fd3174
or esi, 0x40
cmp esi, dword [esp + 0x5c]
je 0x12fd317e
mov dword [esp + 0x5c], esi
lea ecx, [esp + 0x10]
xor ebx, ebx
call fcn.12f925b0
test eax, eax
jbe 0x12fd3198
lea ecx, [esp + 0x10]
call fcn.12f92cd0
mov ebx, eax
mov eax, dword [esp + 0x1c]
xor esi, esi
xor edi, edi
mov dword [esp + 0x14], 0
test eax, eax
je 0x12fd31b2
mov esi, dword [eax + 0x10]
mov edi, dword [eax + 0x14]
lea ecx, [esp + 0x10]
call fcn.12f925b0
test eax, eax
jne 0x12fd31da
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x12fd32d9
mov edx, dword [ecx + 0xc]
mov eax, 0xffffffd8
sub eax, edx
jmp 0x12fd329e
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x12fd3208
lea ecx, [esp + 0x20]
call fcn.12f925b0
test eax, eax
jbe 0x12fd32d9
lea ecx, [esp + 0x10]
call fcn.12f925b0
mov ecx, dword [esp + 0x1c]
sub eax, dword [ecx + 0xc]
jmp 0x12fd329e
mov ecx, dword [esp + 0x28]
xor eax, eax
mov ax, word [ecx + 0xc]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x2c]
lea edx, [eax + edx*8]
mov dword [esp + 0x1c], edx
inc word [ecx + 0xc]
mov eax, dword [esp + 0x1c]
mov dword [eax], 3
mov ecx, dword [esp + 0x1c]
mov byte [ecx + 4], 1
lea ecx, [esp + 0x10]
call fcn.12f925b0
test eax, eax
jbe 0x12fd324e
lea ecx, [esp + 0x10]
call fcn.12f925b0
jmp 0x12fd3250
xor eax, eax
mov edx, dword [esp + 0x1c]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x8c]
add eax, 0x28
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0x1c]
adc ecx, 0
mov dword [eax + 0x14], ecx
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
or dword [eax + 8], 1
call fcn.12f925b0
test eax, eax
jbe 0x12fd3299
lea ecx, [esp + 0x10]
call fcn.12f925b0
jmp 0x12fd329b
xor eax, eax
add eax, 0x28
test eax, eax
mov dword [esp + 0x14], eax
je 0x12fd32d9
mov edx, dword [esp + 0x2c]
push edi
lea ecx, [esp + 0x24]
push esi
push ecx
push eax
mov eax, dword [esp + 0x38]
push 1
push 3
push edx
mov edx, dword [esp + 0x164]
lea ecx, [esp + 0x54]
push eax
push ecx
push edx
call fcn.12fd2840
add esp, 0x28
test eax, eax
je 0x12fd3878
lea ecx, [esp + 0x10]
call fcn.12f925b0
test eax, eax
jne 0x12fd33b0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x12fd33b0
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
xor ebp, ebp
xor edx, edx
cmp word [eax + 0xc], bp
lea ecx, [eax + 0xc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], ecx
jbe 0x12fd3480
test edx, edx
mov eax, ebp
je 0x12fd3360
and eax, 0xffff
lea edi, [esp + 0xe8]
lea ecx, [eax + eax*4]
lea eax, [ebx + ecx*8]
mov ecx, 0xa
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 + 0xe8]
mov edi, edx
mov edx, dword [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x30]
jmp 0x12fd3382
and eax, 0xffff
lea eax, [eax + eax*4]
mov esi, dword [ebx + eax*8]
lea eax, [ebx + eax*8]
cmp esi, 3
jne 0x12fd3382
cmp byte [eax + 4], 1
jne 0x12fd3382
mov edx, 1
mov dword [esp + 0x24], edx
inc ebp
cmp bp, word [ecx]
jb 0x12fd3317
test edx, edx
je 0x12fd3480
dec word [ecx]
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call fcn.12f925b0
sub eax, 0x28
lea ecx, [esp + 0x1c]
push eax
call fcn.12f925c0
jmp 0x12fd3480
lea ecx, [esp + 0x10]
call fcn.12f925b0
test eax, eax
jbe 0x12fd33c8
lea ecx, [esp + 0x10]
call fcn.12f925b0
jmp 0x12fd33ca
xor eax, eax
mov ecx, dword [esp + 0x1c]
xor edx, edx
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 8]
or edi, 4
mov dword [eax + 8], edi
mov ecx, dword [ebx]
mov dword [esp + 0x79], edx
lea eax, [esp + 0x78]
mov dword [esp + 0x7d], edx
push eax
mov dword [esp + 0x85], edx
push ecx
mov word [esp + 0x8d], dx
push ebx
push 1
mov byte [esp + 0x88], 0
mov byte [esp + 0x97], dl
call fcn.13032f00
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x14c]
lea ecx, [esp + 0x3c]
push eax
push ecx
push edx
call fcn.12fdcec0
add esp, 0x10
test eax, eax
jne 0x12fd3458
mov dword [0x131c96c0], 0x10
mov dword [0x131c96c4], 0x1fda
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fd3873
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x78]
add eax, 0x18
mov dword [eax], ecx
mov edx, dword [esp + 0x7c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x80]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x84]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14c]
lea edx, [esp + 0x3c]
push ecx
push edx
push eax
call fcn.12fdcaa0
add esp, 0x10
test eax, eax
jne 0x12fd34c2
mov dword [0x131c96c0], 0x10
mov dword [0x131c96c4], 0x1fe4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fd3873
mov eax, dword [esp + 0x14]
test eax, eax
je 0x12fd3695
lea ecx, [esp + 0x18]
call fcn.12f925b0
xor ebx, ebx
mov word [esp + 0xaa], ax
mov dword [0x131c96c0], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x148]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x24]
push 1
push ecx
push ebx
push edi
mov dword [0x131c96c8], eax
mov dword [esp + 0x34], ebx
call esi
push ebx
push ebx
push 0x40
push edi
mov ebp, eax
call esi
mov esi, 0x50
lea edx, [esp + 0x98]
mov edi, 0x38
push esi
push edx
mov word [esp + 0xa4], si
mov word [esp + 0xb0], di
mov dword [esp + 0xa0], ebx
call fcn.12fedaf0
add esp, 8
cmp word [esp + 0x9c], si
mov dword [esp + 0x98], eax
jne 0x12fd3644
cmp word [esp + 0xa8], di
jne 0x12fd3644
mov esi, eax
lea eax, [esp + 0x98]
push esi
push 0x50
push eax
mov dword [esp + 0xa4], ebx
call fcn.12fedaa0
add esp, 0xc
mov dword [esp + 0x98], esi
test eax, eax
je 0x12fd3644
mov ecx, 0x14
lea esi, [esp + 0x98]
lea edi, [esp + 0xe8]
push 0x50
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xec]
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.12fdb810
add esp, 0xc
test eax, eax
je 0x12fd3644
mov eax, dword [esp + 0x148]
cmp eax, 0xffffffff
je 0x12fd361e
lea ecx, [esp + 0xe8]
test ecx, ecx
je 0x12fd361e
lea edx, [esp + 0x14]
push ebx
push edx
lea ecx, [esp + 0xf0]
push 0x50
push ecx
push eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x12fd363f
mov dword [0x131c96c0], 0xe
mov dword [0x131c96c4], 0x2263
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c96c8], eax
jmp 0x12fd3644
mov dword [0x131c96c0], 1
mov dword [0x131c96c4], 0x225c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c96c8], eax
jmp 0x12fd3644
mov ebx, 1
mov eax, dword [esp + 0x148]
lea edx, [esp + 0x24]
push 0
push edx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test ebx, ebx
jne 0x12fd3695
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], 0x1fee
jmp 0x12fd3871
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
and edi, 0xfffffffe
xor ecx, ecx
cmp esi, 0x40002
mov dword [esp + 0x5c], edi
setne cl
xor edi, edi
mov esi, ecx
mov dword [0x131c96c0], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x148]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x30]
push 1
push edx
push edi
push ebx
mov dword [0x131c96c8], eax
mov dword [esp + 0x40], edi
call ebp
push edi
push edi
push edi
push ebx
mov dword [esp + 0x24], eax
call ebp
mov ecx, dword [0x13182bc4]
mov eax, dword [0x13182bc0]
mov edx, dword [0x13182bc8]
mov dword [esp + 0x3c], ecx
neg esi
sbb esi, esi
mov dword [esp + 0x38], eax
mov eax, dword [0x13182bcc]
lea ecx, [esp + 0x38]
add esi, 0x40002
push 0x40
push ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
mov word [esp + 0x70], 0x40
mov dword [esp + 0x60], esi
mov word [esp + 0x7e], 0x50
mov dword [esp + 0x74], edi
call fcn.12fedaf0
add esp, 8
mov ecx, 4
mov edi, 0x13182bc0
lea esi, [esp + 0x38]
xor edx, edx
mov dword [esp + 0x6c], eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x12fd3828
cmp word [esp + 0x68], 0x40
jne 0x12fd3828
mov ecx, dword [esp + 0x58]
cmp ecx, 0x40001
je 0x12fd3783
cmp ecx, 0x40002
jne 0x12fd3828
cmp word [esp + 0x76], 0x50
jne 0x12fd3828
mov esi, eax
lea eax, [esp + 0x38]
push esi
xor edi, edi
push 0x40
push eax
mov dword [esp + 0x78], edi
call fcn.12fedaa0
add esp, 0xc
cmp eax, edi
mov dword [esp + 0x6c], esi
je 0x12fd3828
cmp ebx, 0xffffffff
je 0x12fd37ff
lea ecx, [esp + 0x38]
test ecx, ecx
je 0x12fd37ff
lea edx, [esp + 0x94]
push edi
push edx
lea eax, [esp + 0x40]
push 0x40
push eax
push ebx
mov dword [esp + 0xa8], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x12fd3820
mov dword [0x131c96c0], 0xe
mov dword [0x131c96c4], 0x2263
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c96c8], eax
jmp 0x12fd3828
mov dword [0x131c96c0], 1
mov dword [0x131c96c4], 0x225c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c96c8], eax
jmp 0x12fd3828
mov dword [esp + 0x24], 1
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x30]
push 0
push ecx
push edx
push ebx
call ebp
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x12fd38b0
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], 0x1ff7
call edi
mov dword [0x131c96c8], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x140], 2
call fcn.12f92510
lea ecx, [esp + 0x10]
mov byte [esp + 0x140], 0
call fcn.12f92510
lea ecx, [esp + 0x18]
mov dword [esp + 0x140], 0xffffffff
call fcn.12f92510
jmp 0x12fd3925
mov ecx, dword [esp + 0x90]
lea eax, [ecx + 0xfff]
shr eax, 0xc
shl eax, 0xc
push eax
push ecx
push ebx
call fcn.12fde960
add esp, 0xc
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 1
mov byte [esp + 0x140], 2
call fcn.12f92510
lea ecx, [esp + 0x10]
mov byte [esp + 0x140], 0
call fcn.12f92510
lea ecx, [esp + 0x18]
mov dword [esp + 0x140], 0xffffffff
call fcn.12f92510
xor ebx, ebx
cmp dword [esp + 0x150], ebx
je 0x12fd3925
mov eax, dword [esp + 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [esp + 0x138]
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret