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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10169bca
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push esi
push edi
mov eax, dword [0x10438fc0]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x40
push ebx
push eax
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x30], eax
cmp eax, ebx
je 0x1008636d
mov dword [esp + 0x38], 0x10
mov dword [esp + 0x100], ebx
mov byte [esp + 0x27], bl
mov edi, dword [ebp + 0xc]
mov byte [esp + 0x100], 1
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x18]
push ecx
push edi
mov dword [esp + 0x20], ebx
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x4c], ebx
jle 0x10085dd8
mov ecx, dword [ebp + 8]
add ecx, 0x78
mov dword [esp + 0x48], ecx
lea esp, [esp]
mov byte [esp + 0x100], 2
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ecx
push eax
call edx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x100], 3
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edi, dword [esp + 0x20]
push ebx
lea eax, [esp + 0x20]
call fcn.100164f0
mov byte [esp + 0x100], 4
mov edi, dword [esp + 0x1c]
mov eax, dword [edi - 4]
cmp eax, ebx
je 0x10085cf8
push ebx
push 1
push eax
lea esi, [esp + 0x28]
call fcn.100163a0
mov edi, dword [esp + 0x1c]
mov esi, edi
cmp word [edi], bx
je 0x10085cf8
jmp 0x10085ce0
movzx ecx, word [esi]
push ecx
call dword [sym.imp.MSVCR100.dll_towlower]
mov word [esi], ax
add esi, 2
add esp, 4
cmp word [esi], bx
jne 0x10085ce0
movzx eax, word [edi]
xor ecx, ecx
mov edx, edi
cmp ax, bx
je 0x10085d17
imul ecx, ecx, 0x25
movzx eax, ax
add edx, 2
add ecx, eax
movzx eax, word [edx]
cmp ax, bx
jne 0x10085d04
mov esi, dword [esp + 0x48]
mov eax, ecx
xor edx, edx
div dword [esi + 4]
mov eax, dword [esp + 0x48]
push edi
lea esi, [esp + 0x48]
mov ebx, ecx
call fcn.10024e40
test eax, eax
je 0x10085f1f
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + 4]
lea eax, [esp + 0x50]
push eax
lea esi, [esp + 0x30]
mov dword [esp + 0x54], edx
call fcn.1009f830
mov esi, dword [esp + 0x50]
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
test al, al
je 0x10085d69
mov byte [esp + 0x27], 1
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
push 1
mov ecx, esi
call eax
mov esi, eax
xor ebx, ebx
lea ecx, [edi - 0xc]
cmp esi, ebx
jl 0x10085f68
test ecx, ecx
je 0x10085d99
dec dword [edi - 0xc]
lea eax, [edi - 0xc]
jne 0x10085d99
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x10085da8
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x100], 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x10085dc0
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x28]
inc eax
xor ebx, ebx
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x4c]
jl 0x10085c60
mov edi, dword [ebp + 0xc]
push 0x4c
mov dword [esp + 0x18], ebx
call fcn.101484dd
add eax, 0xc
mov dword [eax - 0xc], 1
mov dword [eax - 8], 0x4c
xor ecx, ecx
mov dword [eax - 4], ebx
add esp, 4
mov dword [esp + 0x28], eax
mov word [eax], cx
mov esi, dword [ebp + 8]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x2c]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x10c], 5
call fcn.1008a050
push ebx
lea ecx, [esp + 0x58]
push ecx
call fcn.10012150
mov byte [esp + 0x100], 6
lea edx, [esp + 0x28]
mov dword [esp + 0x1c], ebx
push edx
lea ebx, [esp + 0x20]
lea ecx, [esp + 0x47]
mov byte [esp + 0x64], 1
call fcn.10094150
mov ebx, dword [esp + 0x28]
test eax, eax
je 0x10085ff9
cmp eax, 8
je 0x10085ff9
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x10085e73
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
push ebx
push 0x80040207
push 0x1044ebe0
call fcn.10025150
mov edi, eax
test edi, edi
jns 0x10086043
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
push eax
call esi
add esp, 4
lea ecx, [esp + 0x54]
push ecx
mov byte [esp + 0x104], 5
call fcn.10011f10
test ebx, ebx
je 0x10085ec8
lea edx, [ebx - 0xc]
test edx, edx
je 0x10085ec8
dec dword [ebx - 0xc]
lea eax, [ebx - 0xc]
jne 0x10085ec8
push eax
call esi
add esp, 4
mov byte [esp + 0x100], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10085ee8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], 0
cmp byte [esp + 0x3c], 0
je 0x10085f05
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10085f05
push eax
mov eax, dword [esp + 0x30]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [edi - 0xc]
test eax, eax
je 0x10085f38
dec dword [edi - 0xc]
lea eax, [edi - 0xc]
jne 0x10085f38
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10085f47
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x100], 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10085dc0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x10085dc0
test ecx, ecx
je 0x10085f7e
dec dword [edi - 0xc]
lea eax, [edi - 0xc]
jne 0x10085f7e
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x10085f8d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x100], 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x10085fa9
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x14], ebx
mov byte [esp + 0x100], bl
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10085fc4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], ebx
cmp byte [esp + 0x3c], bl
je 0x10085fdf
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x10085fdf
push eax
mov eax, dword [esp + 0x30]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
test eax, eax
je 0x10086023
cmp eax, 8
je 0x10086023
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
mov edi, 0x80040207
jmp 0x10085e8d
mov dword [esp + 0x64], edi
mov byte [esp + 0x6c], 1
mov eax, dword [edi + 4]
sub eax, 4
je 0x10086060
sub eax, 5
je 0x10086057
dec eax
jne 0x10086043
mov eax, dword [edi + 0x18]
mov dword [esp + 0x68], eax
cmp dword [esp + 0x64], 0
mov ecx, dword [esi + 4]
jne 0x10086069
mov edi, 0x8000ffff
jmp 0x10085e8d
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x68], ecx
jmp 0x10086043
mov edx, dword [edi + 0x10]
mov dword [esp + 0x68], edx
jmp 0x10086043
mov eax, dword [esp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 0x94]
push eax
lea eax, [esp + 0x58]
push eax
call edx
mov edi, eax
mov dword [esp + 0x20], edi
test edi, edi
js 0x10085e8d
cmp byte [esp + 0x27], 0
je 0x100861a6
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x68]
lea ecx, [eax + eax*2]
lea eax, [edx + ecx*8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], 0
call fcn.10011d90
mov byte [esp + 0x100], 7
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x1c]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*8]
movzx ecx, word [eax]
cmp ecx, 1
je 0x100860df
test cx, cx
jne 0x100860f2
mov ecx, 0xd
mov word [eax], cx
mov dword [eax + 8], edx
mov eax, dword [edx]
mov ecx, dword [eax + 4]
push edx
call ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x9c]
push eax
mov eax, dword [esi + 0x68]
push eax
lea eax, [esp + 0x5c]
push eax
call edx
test eax, eax
jne 0x10086175
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esi + 4]
lea edx, [esp + 0x54]
call fcn.1006d410
xor edi, edi
cmp dword [esp + 0x34], edi
jle 0x1008614f
mov ebx, dword [esp + 0x30]
mov edx, dword [esi + 0x68]
mov ecx, dword [ebx + edi*4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
push edx
mov edx, dword [esp + 0x58]
push edx
call eax
mov dword [esp + 0x20], eax
test eax, eax
js 0x10086175
inc edi
cmp edi, dword [esp + 0x34]
jl 0x1008612d
cmp dword [esp + 0x20], 0
jl 0x10086175
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x9c]
push eax
mov eax, dword [esi + 0x68]
push eax
lea eax, [esp + 0x5c]
push eax
call edx
test eax, eax
je 0x10086111
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x68]
lea eax, [eax + eax*2]
lea edx, [ecx + eax*8]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [esp + 0x100], 6
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1008621b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x1008621b
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x9c]
push edx
mov edx, dword [esi + 0x68]
push edx
lea edx, [esp + 0x5c]
push edx
call eax
test eax, eax
jne 0x1008621b
xor ebx, ebx
cmp dword [esp + 0x34], ebx
jle 0x100861f8
lea ecx, [ecx]
mov eax, dword [esi + 0x68]
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + ebx*4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
push eax
mov eax, dword [esp + 0x58]
push eax
call edx
mov edi, eax
mov dword [esp + 0x20], edi
test edi, edi
js 0x1008621b
inc ebx
cmp ebx, dword [esp + 0x34]
jl 0x100861d0
test edi, edi
js 0x1008621b
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x9c]
push edx
mov edx, dword [esi + 0x68]
push edx
lea edx, [esp + 0x5c]
push edx
call eax
test eax, eax
je 0x100861c5
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
push ecx
call edi
add esp, 4
cmp byte [esi + 0xc], 0
je 0x100862ba
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0x104], 5
call fcn.10011f10
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10086263
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x10086263
add eax, 0xfffffff4
dec dword [eax]
jne 0x10086263
push eax
call edi
add esp, 4
mov byte [esp + 0x100], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10086283
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x18], 0
cmp byte [esp + 0x3c], 0
je 0x100862a0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x100862a0
mov ecx, dword [esp + 0x2c]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
xor esi, esi
test ebx, ebx
jle 0x100862e6
mov ecx, dword [edi + esi*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
test eax, eax
jns 0x100862e1
cmp dword [esp + 0x20], 0
jl 0x100862e1
mov dword [esp + 0x20], eax
inc esi
cmp esi, ebx
jl 0x100862c8
lea ecx, [esp + 0x54]
push ecx
mov byte [esp + 0x104], 5
call fcn.10011f10
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10086318
lea edx, [eax - 0xc]
test edx, edx
je 0x10086318
add eax, 0xfffffff4
dec dword [eax]
jne 0x10086318
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov byte [esp + 0x100], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10086338
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], 0
cmp byte [esp + 0x3c], 0
je 0x10086351
test edi, edi
je 0x10086351
mov eax, dword [esp + 0x2c]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], str.bad_allocation
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_]
push 0x104241f4
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x34], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3