Function at 0x10013730
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10041d04
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x10054020]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov eax, dword [esp + 0xd8]
mov edi, dword [esp + 0xdc]
xor ebx, ebx
cmp dword [ecx + 0x14], 0x24
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
jae 0x1001379b
mov dword [eax + 0x18], 0xf
mov dword [eax + 0x14], ebx
mov byte [eax + 4], bl
jmp 0x10013c1b
mov eax, dword [esp + 0xe0]
call fcn.1000f2c0
mov ebp, 0x10
cmp dword [ecx + 0x18], ebp
jb 0x100137b6
mov ecx, dword [ecx + 4]
jmp 0x100137b9
add ecx, 4
cmp dword [edx + 0x18], ebp
jb 0x100137c3
mov esi, dword [edx + 4]
jmp 0x100137c6
lea esi, [edx + 4]
cmp dword [edi + 0x18], ebp
jb 0x100137d0
mov edx, dword [edi + 4]
jmp 0x100137d3
lea edx, [edi + 4]
mov edi, dword [esp + 0xe4]
push edi
push ecx
push esi
push edx
lea ecx, [esp + 0x24]
push ecx
call eax
add esp, 0x14
push 0xffffffffffffffff
mov dword [esp + 0xd4], ebx
push ebx
mov esi, 0xf
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.10003890
mov byte [esp + 0xd0], 2
cmp dword [esp + 0x2c], ebp
jb 0x10013828
mov edx, dword [esp + 0x18]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x50], ebp
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x2c], esi
jae 0x10013842
lea ebx, [esp + 0x3c]
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x54]
lea edi, [esp + 0xa8]
call fcn.100246f0
mov ebx, edi
mov byte [esp + 0xd0], 3
call fcn.10022a10
xor eax, eax
mov ecx, edi
lea edx, [esp + 0x14]
call fcn.10023870
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0xdc], 4
call fcn.10003890
cmp dword [esp + 0x2c], ebp
jb 0x1001389c
mov eax, dword [esp + 0x18]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ebp, dword [esp + 0xe0]
and ebp, 0x80000001
jns 0x100138b0
dec ebp
or ebp, 0xfffffffe
inc ebp
cmp dword [esp + 0xe0], 0xa
jge 0x10013942
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
mov byte [esp + 0xd0], 5
mov eax, dword [esp + 0x4c]
xor edi, edi
cmp eax, ebx
jbe 0x10013920
lea esp, [esp]
mov ecx, edi
and ecx, 1
cmp ecx, ebp
jne 0x10013914
cmp edi, eax
jbe 0x100138f3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x50], 0x10
mov eax, dword [esp + 0x3c]
jae 0x10013902
lea eax, [esp + 0x3c]
mov bl, byte [eax + edi]
lea esi, [esp + 0x54]
call fcn.10015350
mov eax, dword [esp + 0x4c]
xor ebx, ebx
add edi, 1
cmp edi, eax
jb 0x100138e0
mov esi, 0xf
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x58]
call fcn.10003630
cmp dword [esp + 0x6c], 0x10
jb 0x10013942
mov eax, dword [esp + 0x58]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0xe4]
mov ebp, eax
and ebp, 0x80000001
jns 0x10013958
dec ebp
or ebp, 0xfffffffe
inc ebp
cmp eax, 0xa
jge 0x10013a25
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
mov byte [esp + 0xd0], 6
mov eax, dword [esp + 0x4c]
xor edi, edi
cmp eax, ebx
jbe 0x100139bb
nop
mov ecx, edi
and ecx, 1
cmp ecx, ebp
jne 0x100139b4
cmp edi, eax
jbe 0x10013993
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x50], 0x10
mov eax, dword [esp + 0x3c]
jae 0x100139a2
lea eax, [esp + 0x3c]
mov bl, byte [eax + edi]
lea esi, [esp + 0x54]
call fcn.10015350
mov eax, dword [esp + 0x4c]
xor ebx, ebx
add edi, 1
cmp edi, eax
jb 0x10013980
mov ebp, dword [esp + 0x58]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
mov dword [esp + 0x3c], ebp
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x40], ebp
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x50]
cmp eax, 0x10
mov dword [esp + 0x44], ebp
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], edi
mov dword [esp + 0x50], edx
mov dword [esp + 0x6c], eax
jb 0x10013a25
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ebp, 7
mov dword [esp + 0x88], ebp
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
mov eax, dword [esp + 0xe0]
push eax
push 0x100483e4
lea ecx, [esp + 0x78]
mov byte [esp + 0xd8], 8
call fcn.10022b50
mov dword [esp + 0xac], ebp
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], bx
mov ecx, dword [esp + 0xec]
push ecx
push 0x100483e4
lea ecx, [esp + 0x9c]
mov byte [esp + 0xe0], 9
call fcn.10022b50
xor eax, eax
lea ecx, [esp + 0x80]
lea edx, [esp + 0x64]
call fcn.10023870
lea edx, [esp + 0x48]
push edx
push eax
lea edi, [esp + 0x2c]
mov byte [esp + 0xe8], 0xa
call fcn.10015eb0
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0xdc], 0xb
call fcn.10003890
mov edi, 0x10
cmp dword [esp + 0x2c], edi
jb 0x10013aeb
mov eax, dword [esp + 0x18]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov byte [esp + 0xd0], 9
cmp dword [esp + 0x6c], edi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
jb 0x10013b16
mov ecx, dword [esp + 0x58]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
lea ecx, [esp + 0x8c]
lea edx, [esp + 0x54]
call fcn.10023870
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x40]
mov byte [esp + 0xd8], 0xc
call fcn.10003a60
mov byte [esp + 0xd0], 9
cmp dword [esp + 0x6c], edi
jb 0x10013b59
mov edx, dword [esp + 0x58]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [esp + 0x30]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x40]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.10003890
mov edi, 8
cmp dword [esp + 0xa4], edi
jb 0x10013b97
mov ecx, dword [esp + 0x90]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x88], edi
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], bx
jb 0x10013bc3
mov edx, dword [esp + 0x74]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0xc0], edi
mov dword [esp + 0x88], ebp
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
jb 0x10013bef
mov eax, dword [esp + 0xac]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x50], 0x10
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], bx
jb 0x10013c19
mov ecx, dword [esp + 0x3c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.1003ec9d
add esp, 0xc0
ret 0x10