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

Disassembly:
push 0xffffffffffffffff
push 0x130715b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x200
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
push esi
xor ebp, ebp
push edi
mov dword [0x131c96c0], ebp
call ebx
mov dword [0x131c96c8], eax
mov eax, dword [0x131c96cc]
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x12fc9b79
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x220]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x38]
push eax
push esi
call fcn.12fcd110
add esp, 8
test eax, eax
je 0x12fc9b99
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x34]
push ebp
push edx
push ebp
push eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], ebp
call fcn.12fc2de0
mov eax, dword [esp + 0x3c]
add esp, 0x14
cmp eax, ebp
jne 0x12fc9bb9
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x7c]
mov dword [esp + 0x78], ebp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x78]
lea edx, [esp + 0x38]
push ecx
push edx
push esi
call fcn.12fcd380
add esp, 0xc
test eax, eax
je 0x12fc9bd9
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0xcc]
mov dword [esp + 0xc8], ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc8]
lea ecx, [esp + 0x78]
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
push esi
call fcn.12fcd600
add esp, 0x10
test eax, eax
je 0x12fc9bf9
lea ecx, [esp + 0x10]
call fcn.12f923b0
lea eax, [esp + 0x20]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x80]
push edx
lea ecx, [esp + 0x44]
push eax
push ecx
push esi
mov dword [esp + 0x230], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
call fcn.12fcd850
add esp, 0x18
test eax, eax
je 0x12fc9c19
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov di, word [edx + 0xc]
cmp di, bp
jbe 0x12fc98a0
mov edx, dword [esp + 0x20]
mov eax, ecx
and eax, 0xffff
lea eax, [eax + eax*4]
test byte [edx + eax*8 + 8], 1
lea eax, [edx + eax*8]
je 0x12fc989a
mov eax, dword [eax]
cmp eax, 1
jb 0x12fc9c39
cmp eax, 4
ja 0x12fc9c39
inc ecx
cmp cx, di
jb 0x12fc9872
lea ecx, [esp + 0x18]
call fcn.12f923b0
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push ebp
push 1
push eax
lea edx, [esp + 0x4c]
push ecx
push edx
push esi
mov byte [esp + 0x238], 1
mov dword [esp + 0x54], ebp
call fcn.12fcdcf0
add esp, 0x20
lea ecx, [esp + 0x14]
call fcn.12f923b0
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x20]
push ecx
push ebp
push 2
push edx
lea ecx, [esp + 0x4c]
push eax
push ecx
push esi
mov byte [esp + 0x238], 2
mov dword [esp + 0x4c], ebp
call fcn.12fcdcf0
mov bl, byte [esp + 0x7c]
add esp, 0x20
test bl, 8
je 0x12fc9969
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov si, word [edx + 0xc]
test si, si
jbe 0x12fc9955
mov edx, dword [esp + 0x20]
mov eax, ecx
and eax, 0xffff
lea eax, [eax + eax*4]
mov edi, dword [edx + eax*8]
lea eax, [edx + eax*8]
cmp edi, 3
jne 0x12fc994f
cmp byte [eax + 4], 1
je 0x12fc99e2
inc ecx
cmp cx, si
jb 0x12fc9930
cmp dword [0x131c9c08], 1
je 0x12fc9967
test bl, 0x40
jne 0x12fc9c59
xor ebp, ebp
mov edx, dword [esp + 0x90]
mov ecx, 0x43
xor eax, eax
lea edi, [esp + 0x104]
mov dword [esp + 0x100], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x8e]
mov eax, dword [esp + 0x94]
mov dword [esp + 0x104], edx
mov edx, dword [esp + 0x8f]
and ecx, 0xff
and edx, 0xff
mov dword [esp + 0x10c], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x108], eax
mov dword [esp + 0x110], edx
call fcn.12f925b0
test eax, eax
jbe 0x12fc99f3
lea ecx, [esp + 0x18]
call fcn.12f92cb0
mov edi, eax
jmp 0x12fc99fa
and ecx, 0xffff
lea ecx, [ecx + ecx*4]
lea ebp, [edx + ecx*8]
jmp 0x12fc9969
lea edi, [esp + 0x100]
lea ecx, [esp + 0x14]
call fcn.12f925b0
test eax, eax
jbe 0x12fc9a12
lea ecx, [esp + 0x14]
call fcn.12f92cb0
jmp 0x12fc9a19
lea eax, [esp + 0x100]
mov esi, dword [esp + 0x224]
lea ecx, [esp + 0x78]
push esi
push ebp
push eax
lea eax, [esp + 0xd4]
push edi
push eax
lea edx, [esp + 0x4c]
push ecx
push edx
call fcn.12fdb630
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x1c
mov dword [0x131c96c0], 0
call edi
test esi, esi
mov dword [0x131c96c8], eax
jne 0x12fc9ae6
mov dword [0x131c96c0], 1
mov dword [0x131c96c4], 0x2a43
call edi
mov dword [0x131c96c8], eax
mov dword [0x131c96c0], 0x1f
mov dword [0x131c96c4], 0xf70
call edi
mov dword [0x131c96c8], eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x218], 1
call fcn.12f92510
lea ecx, [esp + 0x18]
mov byte [esp + 0x218], 0
call fcn.12f92510
lea ecx, [esp + 0x10]
mov dword [esp + 0x218], 0xffffffff
call fcn.12f92510
mov ecx, dword [esp + 0x210]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20c
ret
mov eax, dword [0x131c96cc]
test eax, eax
jne 0x12fc9b08
mov dword [0x131c96c0], 2
mov dword [0x131c96c4], 0x2a49
jmp 0x12fc9a71
mov eax, dword [0x131c9bf4]
test eax, eax
jne 0x12fc9b6c
mov eax, dword [esi + 0x1f4]
mov esi, dword [esi + 0x1ec]
mov ecx, dword [0x131c96d8]
cmp esi, 0x2710
ja 0x12fc9b48
cmp ecx, 0x2710
ja 0x12fc9b6c
cmp ecx, esi
je 0x12fc9b6c
test esi, esi
jne 0x12fc9b5a
mov dword [esp + 0x24], 1
jmp 0x12fc9a93
cmp esi, ecx
jne 0x12fc9b5a
mov ecx, dword [0x131c96e0]
test ecx, ecx
ja 0x12fc9b6c
test eax, eax
je 0x12fc9b6c
push eax
push esi
call fcn.12fd8480
add esp, 8
test eax, eax
je 0x12fc9a78
mov dword [esp + 0x24], 1
jmp 0x12fc9a93
mov dword [0x131c96c0], 2
mov dword [0x131c96c4], 0xeff
call ebx
mov dword [0x131c96c8], eax
jmp 0x12fc9ac9
mov dword [0x131c96c0], 7
mov dword [0x131c96c4], 0xf06
call ebx
mov dword [0x131c96c8], eax
jmp 0x12fc9ac9
mov dword [0x131c96c0], 0x31
mov dword [0x131c96c4], 0xf0c
call ebx
mov dword [0x131c96c8], eax
jmp 0x12fc9ac9
mov dword [0x131c96c0], 8
mov dword [0x131c96c4], 0xf13
call ebx
mov dword [0x131c96c8], eax
jmp 0x12fc9ac9
mov dword [0x131c96c0], 8
mov dword [0x131c96c4], 0xf1a
call ebx
mov dword [0x131c96c8], eax
jmp 0x12fc9ac9
mov dword [0x131c96c0], 0x2c
mov dword [0x131c96c4], 0xf23
call ebx
mov dword [0x131c96c8], eax
jmp 0x12fc9ab5
mov dword [0x131c96c0], 0x32
mov dword [0x131c96c4], 0xf29
call ebx
mov dword [0x131c96c8], eax
jmp 0x12fc9ab5
mov dword [0x131c96c0], 0x2c
mov dword [0x131c96c4], 0xf4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12fc9a8e