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

Disassembly:
sub esp, 0xd4
mov eax, dword [0x10143964]
xor eax, esp
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0xd8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xf0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x10], eax
push ebp
mov ebp, dword [esp + 0xec]
push edi
mov edi, dword [esp + 0xf4]
test ecx, ecx
jne 0x10085e57
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
pop edi
pop ebp
mov dword [eax], 9
or eax, 0xffffffff
or edx, eax
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.100f06e3
add esp, 0xd4
ret
mov eax, dword [esp + 0xe4]
xorps xmm0, xmm0
mov dword [esp + 0x4c], eax
xor ecx, ecx
mov eax, dword [esp + 0xe8]
push ebx
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x4c]
movlpd qword [esp + 0x34], xmm0
mov edx, eax
mov ebx, dword [esp + 0x34]
push esi
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x30], 0
nop dword [eax]
add ebx, dword [edx]
mov eax, 0
mov dword [esp + 0x38], ebx
adc esi, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x3c], esi
js 0x10086165
jg 0x10085ed5
test ebx, ebx
jb 0x10086165
inc ecx
add edx, 8
cmp ecx, 1
jl 0x10085eb0
test ebp, ebp
je 0x10085ee5
mov eax, dword [ebp]
mov dword [esp + 0x1c], eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push 1
mov esi, eax
lea eax, [esp + 0x64]
push eax
push dword [esp + 0x28]
lea eax, [esp + 0x34]
push dword [esp + 0x28]
push dword [esp + 0x34]
push 0
push eax
push dword [esp + 0x64]
call fcn.100aa2e0
add esp, 0x20
mov dword [esi], eax
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call esi
cmp dword [eax], 0
je 0x10085f56
cmp dword [esp + 0x38], ebx
jne 0x10085f36
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x3c], eax
je 0x10085f56
call esi
cmp dword [eax], 4
je 0x10085f4e
call esi
cmp dword [eax], 0xffffffff
je 0x10085f4e
call esi
cmp dword [eax], 0x8c
jne 0x10085f56
call esi
mov dword [eax], 0
call esi
cmp dword [eax], 0
jne 0x1008614c
mov eax, dword [esp + 0x20]
test dword [eax], 0x2000
jne 0x100860da
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0xc8]
mov eax, dword [eax + 0xcc]
mov dword [esp + 0x4c], eax
mov eax, ecx
and eax, 0x18000000
cmp eax, 0x18000000
jne 0x1008606b
cmp dword [edx], 0x2c
jl 0x1008606b
mov dx, word [esp + 0x80]
test dl, 1
je 0x10086067
movzx eax, word [esp + 0x60]
mov word [edi], ax
movzx eax, word [esp + 0x62]
mov word [edi + 2], ax
movzx eax, word [esp + 0x64]
mov word [edi + 4], ax
mov eax, dword [esp + 0x68]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x6c]
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x74]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x78]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x7c]
mov dword [edi + 0x18], eax
movzx eax, word [esp + 0x82]
mov word [edi + 0x1c], ax
xor eax, eax
mov word [edi + 0x1e], ax
test dl, 4
je 0x10086015
mov eax, 0x400
mov word [edi + 0x1e], ax
movzx ecx, ax
test dl, 8
je 0x10086027
or eax, 0x10
mov word [edi + 0x1e], ax
movzx ecx, ax
test dl, 2
je 0x10086033
or ecx, 0x20
mov word [edi + 0x1e], cx
mov eax, dword [esp + 0x8c]
mov dword [edi + 0x20], eax
mov eax, dword [esp + 0x88]
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x84]
mov dword [edi + 0x28], eax
mov eax, dword [esp + 0x14]
mov dword [eax], 0x2c
mov eax, dword [esp + 0x18]
mov dword [eax], 3
jmp 0x100860da
mov edx, dword [esp + 0x14]
and ecx, 0x8000000
or ecx, 0
je 0x100860ca
cmp dword [edx], 0x1c
jl 0x100860ca
movzx eax, word [esp + 0x60]
mov word [edi], ax
movzx eax, word [esp + 0x62]
mov word [edi + 2], ax
movzx eax, word [esp + 0x64]
mov word [edi + 4], ax
mov eax, dword [esp + 0x68]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x6c]
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x74]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x78]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x7c]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [edx], 0x1c
mov dword [eax], 1
jmp 0x100860da
mov eax, dword [esp + 0x18]
mov dword [eax], 0
mov dword [edx], 0
test ebp, ebp
je 0x1008614c
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
test ecx, ecx
jle 0x10086150
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10086150
cmp edi, dword [esp + 0x3c]
jl 0x10086150
jg 0x10086100
cmp ebx, dword [esp + 0x38]
jbe 0x10086150
movzx eax, word [eax]
sub eax, 2
je 0x10086137
sub eax, 0x15
je 0x10086129
sub eax, 0x64
je 0x1008611b
mov dword [ebp], 0
jmp 0x10086150
mov dword [ebp], 8
mov eax, 8
jmp 0x10086143
mov dword [ebp], 0x1c
mov eax, 0x1c
jmp 0x10086143
mov dword [ebp], 0x10
mov eax, 0x10
cmp eax, ecx
jle 0x10086150
mov dword [ebp], ecx
jmp 0x10086150
mov edi, dword [esp + 0x10]
call esi
cmp dword [eax], 0
jne 0x10086171
sub ebx, dword [esp + 0x38]
mov eax, ebx
sbb edi, dword [esp + 0x3c]
mov edx, edi
jmp 0x10086176
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
or eax, 0xffffffff
or edx, eax
mov ecx, dword [esp + 0xe0]
pop esi
pop ebx
pop edi
pop ebp
xor ecx, esp
call fcn.100f06e3
add esp, 0xd4
ret