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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x1b4]
push ebx
mov ebx, edx
sub esp, 0x1d0
mov esi, dword [edx + 0x2c]
mov dword [ebp - 0x1c0], eax
xor eax, eax
mov dword [ebp - 0x1bc], ecx
mov ecx, 0x1f
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1b8], 0
test esi, esi
jns 0x10036e90
mov edi, dword [ebp - 0x1c0]
mov eax, dword [edi + 0x2c]
test eax, eax
js 0x10036e30
mov edx, dword [edi + 0x18]
mov ecx, dword [ebx + 0x5c]
mov esi, ebx
lea eax, [edx + eax*2]
mov dword [ebp - 0x198], eax
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x194], eax
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x190], eax
test ecx, ecx
js 0x10036e59
mov edx, dword [esi + 0x38]
mov eax, dword [esi + 0x40]
test edx, edx
js 0x10036f9e
mov ecx, dword [esi + 0x18]
test eax, eax
jne 0x10036f88
lea edx, [edx + eax + 1]
not eax
add eax, dword [esi + 0x3c]
lea edx, [ecx + edx*2]
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x184], edx
mov eax, dword [esi + 0x44]
test eax, eax
js 0x10036c73
mov edx, dword [esi + 0x18]
lea edi, [ebp - 0x138]
xor ecx, ecx
lea eax, [edx + eax*2]
lea edx, [ebp - 0x1b4]
mov dword [ebp - 0x138], eax
mov eax, edi
call sym._parse_host
mov eax, dword [esi + 0x58]
test eax, eax
jne 0x10036fb0
cmp ebx, esi
je 0x10036c95
mov eax, dword [ebx + 0x68]
cmp eax, 0xffffffff
je 0x10036c95
mov edi, dword [ebx + 0x6c]
test edi, edi
jne 0x10036fe0
mov eax, dword [esi + 0x68]
test eax, eax
js 0x10037130
mov edx, dword [esi + 0x18]
lea eax, [edx + eax*2]
mov dword [ebp - 0x150], eax
mov eax, dword [esi + 0x6c]
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp - 0x1bc]
mov eax, dword [ebx + 0x74]
and ecx, 0x8000000
mov dword [ebp - 0x1c0], ecx
test eax, eax
js 0x10037110
mov esi, ebx
mov dword [ebp - 0x1c4], 0
mov edx, dword [esi + 0x18]
lea eax, [edx + eax*2]
mov dword [ebp - 0x148], eax
mov eax, dword [esi + 0x78]
mov dword [ebp - 0x144], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
js 0x10036d12
mov edx, dword [ebx + 0x18]
lea eax, [edx + eax*2]
mov dword [ebp - 0x140], eax
mov eax, dword [ebx + 0x80]
mov dword [ebp - 0x13c], eax
mov esi, dword [ebp - 0x1c0]
xor ebx, ebx
mov edx, dword [ebp - 0x1b4]
test esi, esi
mov esi, dword [ebp - 0x1bc]
setne bl
mov eax, ebx
or eax, 2
and esi, 0x10000
cmovne ebx, eax
lea eax, [ebp - 0x1b4]
mov ecx, ebx
call sym._generate_raw_uri
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.oleaut32.dll_SysAllocStringLen]
mov dword [ebp - 0x1b4], eax
sub esp, 8
mov edx, eax
test eax, eax
je 0x100374fd
mov ecx, ebx
lea eax, [ebp - 0x1b4]
call sym._generate_raw_uri
lea eax, [ebp - 0x138]
mov dword [esp], 0
mov dword [esp + 4], eax
call sym._Uri_Construct
mov edi, eax
test eax, eax
js 0x10037160
mov ebx, dword [ebp - 0x1c0]
mov ecx, dword [ebp - 0x1b8]
test ebx, ebx
je 0x10036db0
or ecx, 0x10
mov dword [ebp - 0x1b8], ecx
test esi, esi
je 0x10036dbd
or ecx, 0x20
mov dword [ebp - 0x1b8], ecx
mov eax, dword [ebp - 0x1b4]
mov edx, dword [ebp - 0x138]
mov dword [edx + 0x14], eax
lea eax, [ebp - 0x1b4]
call sym._canonicalize_uri
mov edi, eax
test eax, eax
js 0x10036f60
mov edx, dword [ebp - 0x1c0]
test edx, edx
jne 0x10036fd0
lea eax, [ebp - 0x1b8]
xor edi, edi
call sym._apply_default_flags
mov eax, dword [ebp - 0x138]
mov edx, dword [ebp - 0x1b8]
mov ebx, dword [ebp + 8]
mov dword [eax + 0x28], edx
mov dword [ebx], eax
mov eax, dword [ebp - 0x1c4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebx + 0x5c]
xor eax, eax
mov esi, ebx
mov dword [ebp - 0x1b0], 1
mov dword [ebp - 0x1b8], 1
mov dword [ebp - 0x190], eax
test ecx, ecx
jns 0x10036c1a
mov eax, dword [ebp - 0x1c0]
mov edx, dword [eax + 0x5c]
test edx, edx
jns 0x1003781c
mov eax, dword [ebp - 0x1c0]
cmp dword [eax + 0x34], 9
mov esi, eax
je 0x10036c7e
mov dword [ebp - 0x1ac], 1
jmp 0x10036c7e
mov eax, dword [edx + 0x14]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_SysAllocString]
mov dword [ebp - 0x1b4], eax
sub esp, 4
test eax, eax
je 0x10037510
mov edx, 4
lea eax, [ebp - 0x1b4]
call sym._parse_uri
lea eax, [ebp - 0x138]
mov dword [esp], 0
mov dword [esp + 4], eax
call sym._Uri_Construct
mov edi, eax
test eax, eax
js 0x10036f71
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1b8]
test ebx, ebx
je 0x10036f14
test dword [ebp - 0x1bc], 0x8000000
je 0x10036eff
or ecx, 0x10
mov dword [ebp - 0x1b8], ecx
test dword [ebp - 0x1bc], 0x2000000
je 0x10036f14
or cl, 0x80
mov dword [ebp - 0x1b8], ecx
mov eax, dword [ebp - 0x1b4]
mov edx, dword [ebp - 0x138]
mov dword [edx + 0x14], eax
lea eax, [ebp - 0x1b4]
call sym._canonicalize_uri
mov edi, eax
test eax, eax
js 0x10036f60
lea eax, [ebp - 0x1b8]
xor edi, edi
call sym._apply_default_flags
mov eax, dword [ebp - 0x138]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 0x1b8]
mov dword [eax + 0x28], edx
mov dword [ebx], eax
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x138]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [eax], 0
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [ecx + edx*2]
mov dword [ebp - 0x18c], ecx
mov ecx, eax
jns 0x10036f98
mov ecx, dword [esi + 0x3c]
mov dword [ebp - 0x188], ecx
test eax, eax
js 0x10036c4b
mov ecx, dword [esi + 0x18]
jmp 0x10036c33
mov dword [ebp - 0x160], 1
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x154], eax
jmp 0x10036c7e
mov eax, dword [ebp - 0x138]
or dword [eax + 0x24], 2
jmp 0x10036def
mov edx, dword [ebx + 0x18]
lea eax, [edx + eax*2]
cmp word [eax], 0x2f
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebp - 0x1c0]
jne 0x10037190
cmp dword [ebp - 0x190], 0xa
je 0x100371d0
cmp dword [eax + 0x34], 9
je 0x10037560
lea eax, [edi + edi + 2]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x10037510
mov dword [ebp - 0x1c4], eax
mov esi, edi
mov ecx, dword [ebp - 0x1c8]
add edi, edi
mov dword [esp], eax
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
call sym._memcpy
mov eax, dword [ebp - 0x1c4]
xor ecx, ecx
mov edx, dword [ebp - 0x1ac]
mov word [eax + esi*2], cx
mov eax, dword [ebp - 0x1bc]
and eax, 0x8000000
mov dword [ebp - 0x1c0], eax
or eax, edx
jne 0x100370a0
mov dword [ebp - 0x1c8], esi
mov eax, dword [ebp - 0x1c4]
xor edi, edi
mov edx, esi
call sym._remove_dot_segments
cmp dword [ebp - 0x1c8], eax
jne 0x10037698
mov dword [ebp - 0x1c0], 0
mov edx, dword [ebp - 0x1ac]
mov eax, dword [ebx + 0x74]
test eax, eax
js 0x100370bc
mov ecx, dword [ebx + 0x18]
lea eax, [ecx + eax*2]
mov dword [ebp - 0x148], eax
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x1c4]
lea edi, [ebp - 0x138]
mov dword [ebp - 0x138], eax
test edx, edx
jne 0x10037370
xor ecx, ecx
lea edx, [ebp - 0x1b4]
mov eax, edi
call sym._parse_path_hierarchical
test eax, eax
jne 0x10036cf3
mov eax, dword [ebp - 0x1c4]
mov edi, 0x80070057
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp + 8]
mov dword [eax], 0
jmp 0x10036e1f
mov eax, dword [esi + 0x74]
test eax, eax
jns 0x10036cd4
mov dword [ebp - 0x1c4], 0
jmp 0x10036cf3
mov edi, dword [ebp - 0x1ac]
test edi, edi
jne 0x10036cb5
mov dword [ebp - 0x150], 0x10060dc0
mov dword [ebp - 0x14c], 1
jmp 0x10036cb5
mov eax, dword [ebp - 0x1b4]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_SysFreeString]
mov eax, dword [ebp - 0x1c4]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp + 8]
mov dword [eax], 0
jmp 0x10036e1f
mov edx, dword [eax + 0x68]
mov esi, dword [eax + 0x6c]
mov eax, dword [eax + 0x18]
lea ecx, [eax + edx*2]
test esi, esi
je 0x1003721e
lea esi, [ecx + esi*2 - 2]
mov eax, esi
cmp esi, ecx
jae 0x100371bb
jmp 0x100376e4
sub eax, 2
cmp eax, ecx
jb 0x10037528
cmp word [eax], 0x2f
jne 0x100371b0
cmp eax, ecx
jb 0x10037528
lea esi, [eax + 2]
jmp 0x1003721a
mov edx, dword [eax + 0x68]
mov esi, dword [eax + 0x6c]
mov eax, dword [eax + 0x18]
lea ecx, [eax + edx*2]
test esi, esi
je 0x1003721e
lea edx, [esi + esi - 2]
mov esi, ecx
lea eax, [ecx + edx]
cmp eax, ecx
ja 0x100371ff
jmp 0x100376dc
add esi, 2
cmp eax, esi
jbe 0x1003720f
cmp word [esi], 0x3a
jne 0x100371f8
cmp word [esi + 2], 0x3a
jne 0x100371f8
add esi, 2
cmp eax, esi
je 0x10037776
add esi, 2
sub esi, ecx
sar esi, 1
lea eax, [edi + esi + 1]
mov dword [ebp - 0x1c0], ecx
add eax, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x10037510
mov ecx, dword [ebp - 0x1c0]
add esi, esi
mov dword [esp], eax
add edi, edi
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
mov dword [ebp - 0x1c4], eax
call sym._memcpy
mov ecx, dword [ebp - 0x1c8]
add esi, dword [ebp - 0x1c4]
mov dword [esp + 8], edi
mov dword [esp], esi
add esi, edi
mov dword [esp + 4], ecx
call sym._memcpy
xor edx, edx
mov word [esi], dx
sub esi, dword [ebp - 0x1c4]
mov ecx, esi
sar ecx, 1
mov dword [ebp - 0x1c8], ecx
test byte [0x10056490], 8
jne 0x100373a0
cmp ecx, 2
jbe 0x10037338
cmp dword [ebp - 0x190], 9
jne 0x10037338
mov esi, dword [ebp - 0x17c]
test esi, esi
jne 0x10037338
mov eax, dword [ebp - 0x1c4]
movzx eax, word [eax]
cmp ax, 0x2f
je 0x100377ab
and eax, 0xffffffdf
sub eax, 0x41
cmp ax, 0x19
ja 0x10037338
mov eax, dword [ebp - 0x1c4]
mov esi, dword [ebp - 0x1bc]
movzx edx, word [eax + 2]
cmp dx, 0x3a
sete al
cmp dx, 0x7c
sete dl
and esi, 0x8000000
or eax, edx
mov edx, dword [ebp - 0x1ac]
mov dword [ebp - 0x1c0], esi
or esi, edx
jne 0x100370a0
test al, al
je 0x10037357
mov eax, 1
lea edi, [eax + 1]
mov eax, dword [ebp - 0x1c4]
mov esi, ecx
sub esi, edi
lea eax, [eax + edi*2]
jmp 0x1003707d
mov eax, dword [ebp - 0x1bc]
mov edx, dword [ebp - 0x1ac]
and eax, 0x8000000
mov dword [ebp - 0x1c0], eax
or eax, edx
jne 0x100370a0
mov eax, dword [ebp - 0x1c4]
mov esi, ecx
xor edi, edi
jmp 0x1003707d
xor ecx, ecx
lea edx, [ebp - 0x1b4]
mov eax, edi
call sym._parse_path_opaque
test eax, eax
je 0x100370ed
mov eax, dword [ebp - 0x1ac]
test eax, eax
jne 0x10036cf3
jmp 0x100370d6
mov eax, dword [ebp - 0x1c4]
shr eax, 0x10
je 0x100376f3
mov eax, dword [ebp - 0x1c4]
mov dword [esp + 4], ecx
mov dword [ebp - 0x1c0], ecx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, dword [ebp - 0x1c0]
mov edx, 0x1006071f
sub esp, 8
test eax, eax
jne 0x100374c4
cmp esi, 0xfffffffe
je 0x10037745
mov eax, 0x224c
lea edx, [ecx - 1]
mov word [ebp - 0x138], ax
test esi, esi
jle 0x1003780f
mov dword [ebp - 0x1c0], ebx
mov esi, dword [ebp - 0x1c4]
lea edi, [ebp - 0x136]
jmp 0x10037450
cmp ax, 9
je 0x10037608
cmp ax, 0xa
jne 0x10037626
mov eax, 0x6e5c
add edi, 2
mov word [edi - 2], ax
nop
lea esi, [esi]
lea eax, [edx - 1]
test edx, edx
jle 0x10037484
lea ebx, [ebp - 0x16]
cmp edi, ebx
ja 0x10037484
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x100375f0
jbe 0x10037418
cmp ax, 0x22
je 0x10037680
cmp ax, 0x5c
jne 0x10037619
mov ebx, 0x5c5c
add edi, 2
mov word [edi - 2], bx
jmp 0x10037440
mov ebx, dword [ebp - 0x1c0]
mov byte [edi], 0x22
test eax, eax
jle 0x1003773d
mov edx, 0x2e2e
mov byte [edi + 3], 0x2e
lea eax, [edi + 4]
mov word [edi + 1], dx
lea edi, [ebp - 0x138]
mov byte [eax], 0
mov dword [esp], edi
mov dword [ebp - 0x1c0], ecx
call sym.___wine_dbg_strdup
mov ecx, dword [ebp - 0x1c0]
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.ret__s_n
mov dword [esp + 8], str.merge_paths
mov dword [esp + 4], 0x10056490
mov dword [esp], 3
mov dword [ebp - 0x1c0], ecx
call sym._wine_dbg_log.constprop.0_18
mov ecx, dword [ebp - 0x1c0]
jmp 0x1003729b
mov eax, dword [ebp - 0x1c4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
lea esi, [esi]
mov eax, dword [ebp + 8]
mov edi, 0x8007000e
mov dword [eax], 0
jmp 0x10036e1f
cmp dword [ebp - 0x190], 9
jne 0x100371c9
jmp 0x1003754d
lea eax, [esi - 2]
cmp eax, ecx
jb 0x1003721a
mov esi, eax
cmp word [esi], 0x5c
jne 0x10037540
jmp 0x10037217
cmp dword [eax + 0x6c], 3
jbe 0x10037013
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x68]
add eax, eax
lea ecx, [edx + eax]
cmp word [ecx], 0x2f
jne 0x10037013
lea edx, [edx + eax + 2]
movzx eax, word [edx]
and eax, 0xffffffdf
sub eax, 0x41
cmp ax, 0x19
ja 0x10037013
movzx eax, word [edx + 2]
cmp ax, 0x3a
je 0x100375aa
cmp ax, 0x7c
jne 0x10037013
lea eax, [edi + 4]
mov dword [ebp - 0x1c0], ecx
lea esi, [edi + 3]
add eax, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [ebp - 0x1c0]
test eax, eax
mov dword [ebp - 0x1c4], eax
je 0x10037510
mov eax, dword [ecx]
mov edx, dword [ebp - 0x1c4]
mov dword [edx], eax
movzx eax, word [ecx + 4]
mov word [edx + 4], ax
lea eax, [edx + 6]
jmp 0x10037030
mov eax, 0x725c
add edi, 2
mov word [edi - 2], ax
jmp 0x10037440
mov eax, 0x745c
add edi, 2
mov word [edi - 2], ax
jmp 0x10037440
lea ebx, [eax - 0x20]
cmp bx, 0x5e
jbe 0x1003771d
mov ebx, eax
mov byte [edi], 0x5c
add edi, 5
shr bx, 0xc
movzx ebx, bx
movzx ebx, byte [ebx + str.0123456789abcdeffind_domain_name]
mov byte [edi - 4], bl
mov ebx, eax
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdeffind_domain_name]
mov byte [edi - 3], bl
mov ebx, eax
and eax, 0xf
shr bx, 4
movzx eax, byte [eax + str.0123456789abcdeffind_domain_name]
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdeffind_domain_name]
mov byte [edi - 1], al
mov byte [edi - 2], bl
jmp 0x10037440
mov eax, 0x225c
add edi, 2
mov word [edi - 2], ax
jmp 0x10037440
lea eax, [edi + eax + 1]
lea esi, [eax + eax]
mov eax, dword [ebp - 0x1c4]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
test eax, eax
je 0x100374fd
xor edx, edx
mov dword [ebp - 0x1c4], eax
mov word [eax + esi - 2], dx
mov edx, dword [ebp - 0x1ac]
mov dword [ebp - 0x1c0], 0
jmp 0x100370a0
mov esi, ecx
je 0x10037776
test esi, esi
jne 0x10037823
xor esi, esi
jmp 0x1003721e
movzx eax, word [ebp - 0x1c4]
mov dword [esp], 0x10060729
mov dword [ebp - 0x1c0], ecx
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_14
mov ecx, dword [ebp - 0x1c0]
mov edx, eax
jmp 0x100374c4
mov byte [edi], al
add edi, 1
jmp 0x10037440
mov word [ebp - 0x138], 0x224c
lea edi, [ebp - 0x136]
mov byte [ebp - 0x136], 0x22
lea eax, [edi + 1]
jmp 0x100374a5
mov esi, dword [ebp - 0x1c4]
cmp word [esi], 0
je 0x10037727
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x10037758
mov eax, 0x224c
mov word [ebp - 0x138], ax
jmp 0x100373fe
xor esi, esi
cmp word [ecx], 0x40
jne 0x1003721e
lea edx, [ecx + edx + 2]
mov eax, ecx
cmp edx, ecx
jbe 0x1003721e
mov esi, eax
add eax, 2
cmp edx, eax
jbe 0x100376ec
cmp word [eax], 0x3a
jne 0x10037790
add esi, 4
jmp 0x1003721a
mov eax, dword [ebp - 0x1c4]
movzx eax, word [eax + 2]
mov word [ebp - 0x1c0], ax
and eax, 0xffffffdf
sub eax, 0x41
cmp ax, 0x19
ja 0x10037338
mov eax, dword [ebp - 0x1c4]
movzx eax, word [eax + 4]
cmp ax, 0x3a
je 0x100377e6
cmp ax, 0x7c
jne 0x10037338
mov eax, dword [ebp - 0x1bc]
mov edx, dword [ebp - 0x1ac]
and eax, 0x8000000
mov dword [ebp - 0x1c0], eax
or eax, edx
jne 0x100370a0
mov eax, 2
jmp 0x1003731d
mov eax, edx
lea edi, [ebp - 0x136]
jmp 0x1003748a
mov esi, eax
jmp 0x10036c1a
mov eax, esi
jmp 0x100371c9