Function at 0x12fc71a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x13071506
push eax
mov dword fs:[0], esp
sub esp, 0x524
mov dword [0x131c96c0], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
call ebx
mov ebp, dword [esp + 0x53c]
mov dword [0x131c96c8], eax
test ebp, ebp
je 0x12fc7c6c
cmp word [ebp], 0
je 0x12fc7c6c
mov eax, dword [esp + 0x540]
test eax, eax
je 0x12fc7c6c
cmp word [eax], 0
je 0x12fc7c6c
mov eax, dword [0x131c96cc]
test eax, eax
jne 0x12fc7229
mov dword [0x131c96c0], 2
mov dword [0x131c96c4], 0x99a
jmp 0x12fc7c80
push esi
push edi
xor edx, edx
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x148]
mov dword [esp + 0x144], edx
mov dword [esp + 0x2c], edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x50], edx
push eax
push 0x60
push 1
push 7
push 0x80
push 0x120089
push ebp
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x70], edx
call fcn.12fed860
mov esi, eax
add esp, 0x1c
cmp esi, 0xffffffff
mov dword [esp + 0x3c], esi
jne 0x12fc72b9
cmp dword [esp + 0x54], 0xc0000034
je 0x12fc7a11
push 0
push 0x60
push 1
push 7
push 0x80
push 0x120089
push ebp
call fcn.12fed860
mov esi, eax
add esp, 0x1c
cmp esi, 0xffffffff
mov dword [esp + 0x3c], esi
je 0x12fc7a2e
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xb5]
mov byte [esp + 0xb4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xb4]
push ecx
push esi
stosb byte es:[edi], al
call fcn.12fcd110
add esp, 8
test eax, eax
je 0x12fc7a4b
lea edx, [esp + 0xb4]
test edx, edx
je 0x12fc7a6b
push 0x10
lea eax, [esp + 0xb8]
push 0x13182bc0
push eax
call fcn.12f5e5f0
add esp, 0xc
test eax, eax
jne 0x12fc7a6b
test byte [esp + 0xe6], 1
je 0x12fc7a6b
mov eax, dword [esp + 0xd4]
lea ecx, [esp + 0x18]
xor ebp, ebp
push ecx
lea edx, [esp + 0x38]
push ebp
push edx
push ebp
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x48], ebp
call fcn.12fc2de0
mov eax, dword [esp + 0x2c]
add esp, 0x14
cmp eax, ebp
jne 0x12fc7a8b
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0xf8]
mov dword [esp + 0xf4], ebp
rep stosd dword es:[edi], eax
mov ecx, 0xd
lea edi, [esp + 0x80]
mov dword [esp + 0x7c], ebp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
call fcn.12f923b0
lea ecx, [esp + 0xf4]
lea edx, [esp + 0xb4]
push ecx
push edx
push esi
mov dword [esp + 0x548], ebp
call fcn.12fcd380
add esp, 0xc
test eax, eax
je 0x12fc7aab
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 0x1ad]
mov byte [esp + 0x1ac], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1ac]
push eax
push esi
call fcn.12fc9710
add esp, 8
test eax, eax
je 0x12fc7adf
lea ecx, [esp + 0x7c]
lea edx, [esp + 0xf4]
push ecx
lea eax, [esp + 0xb8]
push edx
push eax
push esi
call fcn.12fcd600
add esp, 0x10
test eax, eax
je 0x12fc7b13
cmp word [esp + 0x86], bp
jne 0x12fc7b47
lea ecx, [esp + 0x1c]
call fcn.12f923b0
lea ecx, [esp + 0x24]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0xfc]
push eax
lea edx, [esp + 0xc0]
push ecx
push edx
push esi
mov byte [esp + 0x554], 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x3c], ebp
call fcn.12fcd850
add esp, 0x18
test eax, eax
je 0x12fc7b7b
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov di, word [eax + 0xc]
cmp di, bp
jbe 0x12fc74a7
mov edx, dword [esp + 0x24]
mov eax, ecx
and eax, 0xffff
lea eax, [eax + eax*4]
test byte [edx + eax*8 + 8], 1
lea eax, [edx + eax*8]
je 0x12fc74a1
mov eax, dword [eax]
cmp eax, 1
jb 0x12fc7bc0
cmp eax, 4
ja 0x12fc7bc0
inc ecx
cmp cx, di
jb 0x12fc7479
lea ecx, [esp + 0x1c]
mov byte [esp + 0x53c], 0
call fcn.12f92510
lea ecx, [esp + 0x144]
push 0x28
push ecx
push esi
call fcn.12feca70
add esp, 0xc
test eax, eax
je 0x12fc7bd6
mov edi, dword [esp + 0x548]
push 0
push 0x60
push 3
push 1
push 0x80
push 0x120116
push edi
call fcn.12fed860
mov esi, eax
or ebp, 0xffffffff
add esp, 0x1c
cmp esi, ebp
mov dword [esp + 0x28], esi
jne 0x12fc7535
push 1
push 0
push edi
call fcn.12fecaf0
push 0
push 0x60
push 1
push 7
push 0x80
push 0x120116
push edi
call fcn.12fed860
mov esi, eax
add esp, 0x28
cmp esi, ebp
mov dword [esp + 0x28], esi
je 0x12fc7bf3
mov edx, dword [esp + 0x128]
mov dword [esp + 0x50], 1
push edx
call fcn.12ff0660
add esp, 4
mov dword [esp + 0x60], eax
test eax, eax
je 0x12fc7c09
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x16d]
mov byte [esp + 0x16c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea ecx, [esp + 0x16c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x74], eax
lea eax, [esp + 0x40]
lea edx, [esp + 0x74]
push eax
push 0x40
push ecx
lea eax, [esp + 0x100]
push edx
push eax
call fcn.12fd8510
add esp, 0x14
test eax, eax
je 0x12fc7c1f
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x12fc7c4f
mov edi, dword [esp + 0xa8]
cmp eax, 1
jne 0x12fc75e0
mov edi, dword [esp + 0xac]
mov ecx, dword [esp + 0x60]
push edi
mov edx, dword [ecx]
call dword [edx + 0xc]
mov esi, dword [0x13182bbc]
mov ecx, eax
mov eax, esi
xor edx, edx
div edi
mov dword [esp + 0x70], ecx
mov dword [esp + 0x34], esi
mov ebx, eax
mov eax, dword [esp + 0xa4]
imul ebx, ecx
cmp eax, 1
mov dword [esp + 0x44], ebx
je 0x12fc761f
mov eax, esi
xor edx, edx
div edi
test edx, edx
je 0x12fc762b
mov esi, edi
mov ebx, ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x44], ebx
push esi
call fcn.12f5bf8b
push ebx
mov dword [esp + 0x40], eax
call fcn.12f5bf8b
mov ecx, dword [esp + 0x44]
add esp, 8
xor ebp, ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x118]
push ebp
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, esi
xor edx, edx
div edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x78], eax
mov edi, dword [esp + 0x38]
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 edi, dword [esp + 0x1c]
mov ecx, ebx
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 edi, dword [esp + 0x78]
mov eax, dword [esp + 0xa4]
lea ecx, [edi + ebp]
cmp ecx, eax
jb 0x12fc76d1
mov edi, eax
mov eax, dword [esp + 0xac]
sub edi, ebp
mov dword [esp + 0x18], 1
lea esi, [edi - 1]
imul esi, dword [esp + 0xa8]
add esi, eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push 0
lea edx, [esp + 0x4c]
push 0
push edx
push esi
push eax
push ecx
mov dword [esp + 0x60], 0
call fcn.12fecef0
add esp, 0x18
test eax, eax
je 0x12fc7904
cmp esi, dword [esp + 0x48]
jne 0x12fc791a
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x6c], edi
xor edi, edi
mov dword [esp + 0x5c], edi
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa8]
inc eax
cmp eax, edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x64], ecx
jne 0x12fc7743
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x64], ecx
mov edx, dword [esp + 0xa0]
xor eax, eax
cmp eax, edx
mov dword [esp + 0x14], edi
ja 0x12fc77ca
jb 0x12fc7765
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x9c]
cmp edx, eax
jae 0x12fc77ca
lea eax, [esp + 0x4c]
lea edx, [esp + 0x68]
push eax
mov eax, dword [esp + 0x88]
push edx
push ecx
push ebx
push eax
mov dword [esp + 0x7c], edi
mov dword [esp + 0x60], edi
call fcn.12fdd2c0
add esp, 0x14
test eax, eax
je 0x12fc78d8
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x54]
push ebp
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x54]
push eax
lea eax, [esp + 0x184]
push eax
call dword [edx + 0x14]
cmp eax, edi
je 0x12fc78ee
mov ecx, dword [esp + 0x14]
jmp 0x12fc7826
mov ecx, dword [esp + 0xb0]
mov eax, dword [esp + 0x70]
cmp ecx, eax
mov dword [esp + 0x14], ecx
jbe 0x12fc77e3
mov ecx, eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x84]
and eax, 0xffff
sub eax, edi
je 0x12fc780e
dec eax
je 0x12fc77fe
dec eax
jne 0x12fc7826
lea esi, [ebx + 8]
jmp 0x12fc7810
mov eax, ecx
lea esi, [ebx + 4]
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x12fc781b
mov esi, ebx
mov edx, ecx
mov edi, ebp
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 + 0x14]
xor edi, edi
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + 0x30]
cmp edx, eax
jne 0x12fc7866
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x8c]
cmp eax, edi
ja 0x12fc784f
cmp ecx, 0x1000
jbe 0x12fc7862
and ecx, 0xfff
xor eax, eax
mov edx, ecx
or edx, eax
jne 0x12fc7862
mov ecx, 0x1000
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x6c]
add esi, ecx
dec eax
mov dword [esp + 0x5c], esi
mov dword [esp + 0x6c], eax
je 0x12fc7888
mov edx, dword [esp + 0x64]
add ebx, edx
add ebp, ecx
jmp 0x12fc7719
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x58]
push edi
push eax
push esi
add ebx, esi
push ecx
push edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x6c], edi
call fcn.12fecff0
add esp, 0x14
test eax, eax
je 0x12fc7930
cmp dword [esp + 0x58], esi
jb 0x12fc7946
cmp dword [esp + 0x18], edi
jne 0x12fc796d
mov ebx, dword [esp + 0x44]
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
jmp 0x12fc7673
mov dword [0x131c96c0], 0x1c
mov dword [0x131c96c4], 0xaa3
jmp 0x12fc795a
mov dword [0x131c96c0], 0x12
mov dword [0x131c96c4], 0xaac
jmp 0x12fc795a
mov dword [0x131c96c0], 0xd
mov dword [0x131c96c4], 0xa7f
jmp 0x12fc795a
mov dword [0x131c96c0], 0xd
mov dword [0x131c96c4], 0xa87
jmp 0x12fc795a
mov dword [0x131c96c0], 0xe
mov dword [0x131c96c4], 0xad6
jmp 0x12fc795a
mov dword [0x131c96c0], 0xe
mov dword [0x131c96c4], 0xade
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c96c8], eax
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x38]
push eax
call fcn.12f5bf80
mov ecx, dword [esp + 0x20]
push ecx
call fcn.12f5bf80
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x12fc799c
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x12fc799c
mov dword [esp + 0x2c], 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x53c], 0xffffffff
call fcn.12f92510
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x12fc79cf
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x144]
push 0x28
push edx
push eax
call fcn.12fecab0
add esp, 0xc
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x12fc79df
push eax
call dword [0x131ca5fc]
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x12fc79ef
push eax
call dword [0x131ca5fc]
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x12fc7a11
mov eax, dword [esp + 0x50]
test eax, eax
je 0x12fc7a11
mov ecx, dword [esp + 0x548]
push 1
push ecx
call fcn.12fecdf0
add esp, 8
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x524]
mov dword fs:[0], ecx
add esp, 0x530
ret
mov dword [0x131c96c0], 3
mov dword [0x131c96c4], 0x9bf
call ebx
mov dword [0x131c96c8], eax
jmp 0x12fc7a11
mov dword [0x131c96c0], 0xf
mov dword [0x131c96c4], 0x9c7
call ebx
mov dword [0x131c96c8], eax
jmp 0x12fc79cf
mov dword [0x131c96c0], 0x22
mov dword [0x131c96c4], 0x9ce
call ebx
mov dword [0x131c96c8], eax
jmp 0x12fc79cf
mov dword [0x131c96c0], 0x31
mov dword [0x131c96c4], 0x9d5
call ebx
mov dword [0x131c96c8], eax
jmp 0x12fc79cf
mov dword [0x131c96c0], 0x14
mov dword [0x131c96c4], 0x9e1
call ebx
lea ecx, [esp + 0x10]
mov dword [0x131c96c8], eax
mov dword [esp + 0x53c], 0xffffffff
call fcn.12f92510
jmp 0x12fc79cf
mov dword [0x131c96c0], 0x1f
mov dword [0x131c96c4], 0x9e9
call ebx
lea ecx, [esp + 0x10]
mov dword [0x131c96c8], eax
mov dword [esp + 0x53c], 0xffffffff
call fcn.12f92510
jmp 0x12fc79cf
mov dword [0x131c96c0], 0x14
mov dword [0x131c96c4], 0x9ef
call ebx
lea ecx, [esp + 0x10]
mov dword [0x131c96c8], eax
mov dword [esp + 0x53c], 0xffffffff
call fcn.12f92510
jmp 0x12fc79cf
mov dword [0x131c96c0], 1
mov dword [0x131c96c4], 0x9f6
call ebx
lea ecx, [esp + 0x10]
mov dword [0x131c96c8], eax
mov dword [esp + 0x53c], 0xffffffff
call fcn.12f92510
jmp 0x12fc79cf
mov dword [0x131c96c0], 0x14
mov dword [0x131c96c4], 0xa00
call ebx
lea ecx, [esp + 0x1c]
mov dword [0x131c96c8], eax
mov byte [esp + 0x53c], 0
call fcn.12f92510
lea ecx, [esp + 0x10]
mov dword [esp + 0x53c], 0xffffffff
call fcn.12f92510
jmp 0x12fc79cf
mov dword [0x131c96c0], 0x32
mov dword [0x131c96c4], 0xa06
jmp 0x12fc7b8f
mov dword [0x131c96c0], 5
mov dword [0x131c96c4], 0xa15
call ebx
mov dword [0x131c96c8], eax
jmp 0x12fc7ba7
mov dword [0x131c96c0], 4
mov dword [0x131c96c4], 0xa31
jmp 0x12fc7c33
mov dword [0x131c96c0], 0xc
mov dword [0x131c96c4], 0xa3c
jmp 0x12fc7c33
mov dword [0x131c96c0], 0xb
mov dword [0x131c96c4], 0xa45
call ebx
lea ecx, [esp + 0x10]
mov dword [0x131c96c8], eax
mov dword [esp + 0x53c], ebp
call fcn.12f92510
jmp 0x12fc79cf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 1
mov dword [esp + 0x53c], ebp
call fcn.12f92510
jmp 0x12fc79b8
mov dword [0x131c96c0], 1
mov dword [0x131c96c4], 0x994
call ebx
mov ecx, dword [esp + 0x52c]
mov dword [0x131c96c8], eax
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x530
ret