Function at 0x10180930
Capabilities:
Check for peb ntglobalflag flag
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101fc2d2
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
call fcn.101a7380
mov edi, dword [eax + 0xc]
test edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
je 0x10180978
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
mov dword [esp + 0x70], 0
test edi, edi
jne 0x101809a3
mov dword [esp + 0x70], 0xffffffff
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x3c]
push eax
call fcn.1003e1e0
mov byte [esp + 0x70], 1
mov edx, dword [edi]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x40]
mov esi, dword [eax]
lea ebx, [esp + 0x3c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
call fcn.10180ea0
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0
mov byte [esp + 0x70], 2
jmp 0x101809f0
test ebx, ebx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x24], ecx
je 0x10180a04
lea edx, [esp + 0x3c]
cmp ebx, edx
je 0x10180a0a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [esp + 0x24]
je 0x10180b15
test ebx, ebx
jne 0x10180a1e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [ebx + 4]
jne 0x10180a29
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esi + 0x98], 0xffffffff
jne 0x10180afb
mov eax, dword [ebp + 8]
add eax, 0x284
mov eax, dword [eax + 4]
mov ebx, dword [eax]
jmp 0x10180a50
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x288]
add edi, 0x284
cmp edi, edi
mov dword [esp + 0x2c], ecx
je 0x10180a6d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esp + 0x2c]
je 0x10180ac5
mov edx, dword [esp + 0x18]
cmp esi, dword [edx + 4]
jne 0x10180a82
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [edi + 4]
jne 0x10180a8d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esi + 0x24], 8
mov edi, dword [esi + 0x20]
lea ecx, [ebx + 0x40]
jb 0x10180a9e
mov eax, dword [esi + 0x10]
jmp 0x10180aa1
lea eax, [esi + 0x10]
push eax
mov eax, dword [ecx + 0x14]
call fcn.1000fad0
test eax, eax
je 0x10180afb
mov eax, dword [ebp + 8]
add eax, 0x284
cmp ebx, dword [eax + 4]
jne 0x10180ac1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [ebx]
jmp 0x10180a50
mov eax, dword [esp + 0x18]
cmp esi, dword [eax + 4]
jne 0x10180ad4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
lea edi, [eax + 4]
add esi, 0x28
push esi
push ecx
push eax
call fcn.10180f30
lea ecx, [esp + 0x30]
mov esi, eax
call fcn.10180fe0
mov dword [edi], esi
mov edx, dword [esi + 4]
mov dword [edx], esi
lea esi, [esp + 0x18]
call fcn.10040f80
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
jmp 0x101809f0
mov esi, dword [ebp + 8]
cmp dword [esi + 0x28c], 0
jne 0x10180bb9
cmp dword [esp + 0x38], 0
je 0x10180bf1
mov eax, dword [esp + 0x34]
mov edi, dword [eax]
cmp edi, eax
jne 0x10180b40
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [edi + 8]
push eax
lea eax, [esp + 0x4c]
push eax
mov edx, 0x1023ff3c
call fcn.1002ef90
mov bl, 3
mov byte [esp + 0x78], bl
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
push ecx
mov edi, 0x1023ff38
call fcn.1002eeb0
add esp, 8
mov byte [esp + 0x8c], 4
lea edx, [esi + 0x70]
push edx
mov byte [esp + 0x90], bl
call fcn.101c03d0
mov byte [esp + 0x70], 2
cmp dword [esp + 0x60], 8
jb 0x10180ba2
mov eax, dword [esp + 0x4c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], eax
mov word [esp + 0x4c], ax
cmp dword [esp + 0x38], 0
je 0x10180bf1
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
mov ebx, dword [esi + 0x288]
push ecx
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x34]
push ecx
lea eax, [esi + 0x284]
mov ecx, edx
mov edx, dword [esp + 0x24]
push ecx
push ebx
push eax
push edx
push eax
call fcn.10181120
mov esi, dword [esi + 0x28c]
mov byte [esp + 0x70], 1
lea ebx, [esp + 0x30]
call fcn.10180d80
mov eax, dword [esp + 0x34]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
xor eax, eax
add esp, 4
mov dword [esp + 0x34], eax
mov byte [esp + 0x70], al
lea eax, [esp + 0x3c]
call fcn.1003f470
mov dword [esp + 0x70], 0xffffffff
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4