Function at 0x12fce120
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1307172b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
push esi
push edi
xor edi, edi
mov dword [0x131c96c0], edi
call ebx
mov ebp, dword [esp + 0xa8]
mov ecx, dword [esp + 0xc0]
mov dword [0x131c96c8], eax
or dword [ebp + 0x24], 1
call fcn.12f925b0
mov esi, eax
mov dword [0x131c96c0], edi
neg esi
sbb esi, esi
inc esi
call ebx
mov ebx, dword [esp + 0xa4]
mov dword [0x131c96c8], eax
lea eax, [esp + 0x10]
push 1
push eax
push edi
push ebx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push edi
push edi
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [0x13182bc0]
mov ecx, ebp
cmp esi, edi
mov dword [esp + 0x18], edi
mov dword [ecx], edx
mov eax, dword [0x13182bc4]
mov dword [ecx + 4], eax
mov edx, dword [0x13182bc8]
mov dword [ecx + 8], edx
mov eax, dword [0x13182bcc]
mov word [ebp + 0x30], 0x40
mov dword [ecx + 0xc], eax
je 0x12fce1e1
mov dword [ebp + 0x20], 0x40001
jmp 0x12fce1e8
mov dword [ebp + 0x20], 0x40002
mov esi, 0x50
push 0x40
push ebp
mov word [ebp + 0x3e], si
mov dword [ebp + 0x34], edi
call fcn.12fedaf0
push ebp
mov dword [ebp + 0x34], eax
call fcn.12fdaba0
add esp, 0xc
test eax, eax
je 0x12fce2b5
mov eax, dword [ebp + 0x20]
cmp eax, 0x40001
je 0x12fce225
cmp eax, 0x40002
jne 0x12fce2b5
cmp word [ebp + 0x3e], si
jne 0x12fce2b5
mov esi, dword [ebp + 0x34]
mov dword [ebp + 0x34], edi
push esi
push 0x40
push ebp
call fcn.12fedaa0
add esp, 0xc
cmp eax, edi
mov dword [ebp + 0x34], esi
je 0x12fce2b5
cmp ebx, 0xffffffff
je 0x12fce28c
cmp ebp, edi
je 0x12fce28c
lea ecx, [esp + 0x14]
push edi
push ecx
push 0x40
push ebp
push ebx
mov dword [esp + 0x28], edi
call fcn.12fecff0
add esp, 0x14
test eax, eax
jne 0x12fce2ad
mov dword [0x131c96c0], 0xe
mov dword [0x131c96c4], 0x11d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c96c8], eax
jmp 0x12fce2b5
mov dword [0x131c96c0], 1
mov dword [0x131c96c4], 0x11ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c96c8], eax
jmp 0x12fce2b5
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edi
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x18], edi
jne 0x12fce2f1
mov dword [0x131c96c0], 0x10
mov dword [0x131c96c4], 0x17c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c96c8], eax
jmp 0x12fce755
mov ecx, dword [esp + 0xbc]
xor esi, esi
mov dword [esp + 0x38], edi
call fcn.12f925b0
test eax, eax
jbe 0x12fce32c
mov ecx, dword [esp + 0xbc]
call fcn.12f92cd0
mov ecx, dword [esp + 0xbc]
mov esi, eax
mov dword [esp + 0x38], esi
call fcn.12f925b0
mov dword [esi], eax
mov esi, 1
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x3c], edi
call fcn.12f925b0
test eax, eax
jbe 0x12fce363
mov ecx, dword [esp + 0xc0]
call fcn.12f92cd0
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x3c], eax
call fcn.12f925b0
mov ecx, dword [esp + 0x3c]
inc esi
mov dword [ecx], eax
mov eax, esi
lea ecx, [esp + 0x1c]
and eax, 0xffff
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], edi
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esp + 0x14], eax
add eax, 0x10
mov dword [esp + 0x10], eax
call fcn.12f923b0
mov edx, dword [esp + 0x10]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0xa4], edi
call fcn.12f925c0
lea ecx, [esp + 0x1c]
call fcn.12f92cb0
mov edi, eax
mov eax, dword [esp + 0x10]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x38]
mov word [edi + 0xc], si
mov word [edi], 1
test eax, eax
mov word [edi + 0xe], 0x28
lea esi, [edi + 0x10]
je 0x12fce420
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0x24], esi
mov dword [esi], 3
mov byte [esi + 4], 1
call fcn.12f925b0
test eax, eax
jbe 0x12fce3fb
mov ecx, dword [esp + 0xbc]
call fcn.12f925b0
jmp 0x12fce3fd
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xc], eax
add ecx, 0xd8
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 8]
or ecx, 1
mov dword [esi + 0x14], 0
mov dword [esi + 8], ecx
add esi, 0x28
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x12fce494
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x18], esi
mov dword [esi], 4
mov byte [esi + 4], 2
call fcn.12f925b0
test eax, eax
jbe 0x12fce454
mov ecx, dword [esp + 0xc0]
call fcn.12f925b0
jmp 0x12fce456
xor eax, eax
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x12fce478
mov eax, dword [esp + 0x24]
xor ecx, ecx
mov edx, dword [eax + 0xc]
add edx, dword [eax + 0x10]
adc ecx, dword [eax + 0x14]
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], ecx
jmp 0x12fce48c
mov edx, dword [esp + 0x14]
add edx, 0xd8
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 0
mov eax, dword [esi + 8]
or al, 1
mov dword [esi + 8], eax
mov eax, dword [edi + 4]
push eax
push edi
call fcn.12fedaf0
mov esi, dword [esp + 0xb4]
mov cx, word [esp + 0x18]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x40]
add esp, 8
mov word [esi + 0x12], cx
test eax, eax
je 0x12fce536
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x28], 0
mov edx, dword [ecx + 8]
or edx, 4
mov dword [ecx + 8], edx
xor edx, edx
mov dword [esp + 0x29], edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x2d], edx
push ecx
mov dword [esp + 0x35], edx
mov word [esp + 0x39], dx
mov byte [esp + 0x3b], dl
mov edx, dword [eax]
push edx
push eax
push 1
call fcn.13032f00
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0x24]
push eax
push ecx
push ebp
push ebx
call fcn.12fcf2d0
add esp, 0x10
test eax, eax
je 0x12fce741
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add edx, 0x18
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x12fce5bc
mov eax, dword [esp + 0x18]
test eax, eax
je 0x12fce5bc
mov edx, dword [eax + 8]
mov byte [esp + 0x28], 0
or edx, 4
mov dword [eax + 8], edx
xor edx, edx
mov dword [esp + 0x29], edx
lea eax, [esp + 0x28]
mov dword [esp + 0x2d], edx
push eax
mov dword [esp + 0x35], edx
mov word [esp + 0x39], dx
mov byte [esp + 0x3b], dl
mov edx, dword [ecx]
push edx
push ecx
push 1
call fcn.13032f00
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push ebp
push ebx
call fcn.12fcf2d0
add esp, 0x10
test eax, eax
je 0x12fce741
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add edx, 0x18
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x1c]
push edi
push edx
push ebp
push ebx
call fcn.12fceeb0
add esp, 0x10
test eax, eax
je 0x12fce741
xor edi, edi
mov dword [0x131c96c0], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
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 0x90
push ebx
mov dword [esp + 0x28], eax
call edi
mov edi, dword [esp + 0xb0]
push 0x38
push edi
mov dword [esp + 0x18], 0
mov word [edi + 4], 0x38
mov dword [edi], 0
call fcn.12fedaf0
add esp, 8
cmp word [edi + 4], 0x38
mov dword [esp + 0x20], eax
mov dword [edi], eax
jne 0x12fce705
push eax
push 0x38
push edi
mov dword [edi], 0
call fcn.12fedaa0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
mov dword [edi], ecx
je 0x12fce705
mov esi, edi
lea edx, [esp + 0x44]
mov ecx, 0xe
lea edi, [esp + 0x44]
push 0x38
push edx
rep movsd dword es:[edi], dword [esi]
push ebp
call fcn.12fdb810
add esp, 0xc
test eax, eax
je 0x12fce6fe
cmp ebx, 0xffffffff
je 0x12fce6d5
lea eax, [esp + 0x44]
test eax, eax
je 0x12fce6d5
lea ecx, [esp + 0x20]
push 0
push ecx
lea edx, [esp + 0x4c]
push 0x38
push edx
push ebx
mov dword [esp + 0x34], 0
call fcn.12fecff0
add esp, 0x14
test eax, eax
jne 0x12fce6f6
mov dword [0x131c96c0], 0xe
mov dword [0x131c96c4], 0x11d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c96c8], eax
jmp 0x12fce6fe
mov dword [0x131c96c0], 1
mov dword [0x131c96c4], 0x11ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c96c8], eax
jmp 0x12fce6fe
mov dword [esp + 0x10], 1
mov esi, dword [esp + 0xac]
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x14]
push 0
push eax
push ecx
push ebx
call edi
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x12fce77b
mov dword [0x131c96c0], 0x10
mov dword [0x131c96c4], 0x1820
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c96c8], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x9c], 0xffffffff
call fcn.12f92510
mov dword [0x131c96c0], 0x10
mov dword [0x131c96c4], 0x179f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c96c8], eax
xor eax, eax
jmp 0x12fce9e3
mov dword [0x131c96c0], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x14]
push 1
push edx
push 0
push ebx
mov dword [0x131c96c8], eax
mov dword [esp + 0x24], 0
call edi
push 0
push 0
push 0x40
push ebx
mov dword [esp + 0x28], eax
call edi
push 0x50
push esi
mov dword [esp + 0x18], 0
mov word [esi + 4], 0x50
mov word [esi + 0x10], 0x38
mov dword [esi], 0
call fcn.12fedaf0
add esp, 8
cmp word [esi + 4], 0x50
mov dword [esp + 0x20], eax
mov dword [esi], eax
jne 0x12fce847
cmp word [esi + 0x10], 0x38
jne 0x12fce847
push eax
push 0x50
push esi
mov dword [esi], 0
call fcn.12fedaa0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
mov dword [esi], ecx
je 0x12fce847
lea edx, [esp + 0x44]
mov ecx, 0x14
lea edi, [esp + 0x44]
push 0x50
push edx
push ebp
rep movsd dword es:[edi], dword [esi]
call fcn.12fdb810
add esp, 0xc
test eax, eax
je 0x12fce841
lea eax, [esp + 0x44]
push 0x50
push eax
push ebx
call fcn.12fcb520
add esp, 0xc
test eax, eax
je 0x12fce841
mov dword [esp + 0x10], 1
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
push ebx
call edi
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x12fce877
mov dword [0x131c96c0], 0x10
mov dword [0x131c96c4], 0x17f3
jmp 0x12fce736
mov edx, dword [ebp + 0x24]
mov ecx, dword [esp + 0xc0]
and edx, 0xfffffffe
mov dword [ebp + 0x24], edx
call fcn.12f925b0
mov esi, eax
mov dword [0x131c96c0], 0
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c96c8], eax
lea eax, [esp + 0x20]
push 1
push eax
push 0
push ebx
mov dword [esp + 0x30], 0
call edi
push 0
push 0
push 0
push ebx
mov dword [esp + 0x20], eax
call edi
mov edx, dword [0x13182bc0]
mov ecx, ebp
xor eax, eax
push 0x40
mov dword [ecx], edx
mov edx, dword [0x13182bc4]
neg esi
mov dword [ecx + 4], edx
mov edx, dword [0x13182bc8]
sbb esi, esi
push ebp
mov dword [ecx + 8], edx
mov edx, dword [0x13182bcc]
add esi, 0x40002
mov dword [esp + 0x1c], eax
mov dword [ecx + 0xc], edx
mov word [ebp + 0x30], 0x40
mov dword [ebp + 0x20], esi
mov word [ebp + 0x3e], 0x50
mov dword [ebp + 0x34], eax
call fcn.12fedaf0
push ebp
mov dword [ebp + 0x34], eax
call fcn.12fdabd0
add esp, 0xc
test eax, eax
je 0x12fce99a
cmp ebx, 0xffffffff
je 0x12fce971
test ebp, ebp
je 0x12fce971
lea eax, [esp + 0x40]
push 0
push eax
push 0x40
push ebp
push ebx
mov dword [esp + 0x54], 0
call fcn.12fecff0
add esp, 0x14
test eax, eax
jne 0x12fce992
mov dword [0x131c96c0], 0xe
mov dword [0x131c96c4], 0x11d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c96c8], eax
jmp 0x12fce99a
mov dword [0x131c96c0], 1
mov dword [0x131c96c4], 0x11ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131c96c8], eax
jmp 0x12fce99a
mov dword [esp + 0x14], 1
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push 0
push ecx
push edx
push ebx
call edi
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x12fce9ca
mov dword [0x131c96c0], 0x10
mov dword [0x131c96c4], 0x17c6
jmp 0x12fce736
lea ecx, [esp + 0x1c]
mov dword [esp + 0x9c], 0xffffffff
call fcn.12f92510
mov eax, 1
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret