Function at 0x42f040
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x1e]
push ebx
lea ebx, [ebp - 0x24]
sub esp, 0x4c
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xffffffff
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [0x49cf30]
sub esp, 0x1c
mov esi, eax
mov dword [esp + 4], 0x2b08
mov dword [esp], str..._wine_dlls_urlmon_tests_uri.c
call fcn.0045a5b0
xor eax, eax
cmp esi, 0x80070057
mov dword [esp + 8], esi
sete al
mov dword [esp + 0xc], 0x80070057
mov dword [esp], eax
mov dword [esp + 4], str.Error:_CoInternetParseIUri_returned_0x_08x__expected_0x_08x._n
call fcn.0045a820
mov dword [esp + 4], 0x2b0a
mov dword [esp], str..._wine_dlls_urlmon_tests_uri.c
call fcn.0045a5b0
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], str.Error:_Expected_result_to_be_0__but_was__d._n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0045a820
lea eax, [ebp - 0x28]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], str.http:__www.winehq.org_
call dword [0x49cf48]
sub esp, 0x10
mov esi, eax
mov dword [esp + 4], 0x2b0d
mov dword [esp], str..._wine_dlls_urlmon_tests_uri.c
call fcn.0045a5b0
mov edx, esi
mov dword [esp + 8], esi
not edx
mov dword [esp + 4], str.Error:_CreateUri_returned_0x_08x._n
shr edx, 0x1f
mov dword [esp], edx
call fcn.0045a820
test esi, esi
js 0x42f63b
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], 0xffffffff
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [0x49cf30]
sub esp, 0x1c
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], 0x2b13
mov dword [esp], str..._wine_dlls_urlmon_tests_uri.c
call fcn.0045a5b0
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], 0x80070057
mov dword [esp + 4], str.Error:_CoInternetParseIUri_returned_0x_08x__expected_0x_08x._n
cmp eax, 0x80070057
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0045a820
mov dword [esp + 4], 0x2b15
mov dword [esp], str..._wine_dlls_urlmon_tests_uri.c
call fcn.0045a5b0
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], str.Error:_Expected_result_to_be_0__but_was__d._n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0045a820
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [0x49cf30]
sub esp, 0x1c
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], 0x2b18
mov dword [esp], str..._wine_dlls_urlmon_tests_uri.c
call fcn.0045a5b0
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], 0x80004003
mov dword [esp + 4], str.Error:_CoInternetParseIUri_returned_0x_08x__expected_0x_08x._n
cmp eax, 0x80004003
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0045a820
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], 0xffffffff
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 3
mov dword [esp], eax
call dword [0x49cf30]
sub esp, 0x1c
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], 0x2b1d
mov dword [esp], str..._wine_dlls_urlmon_tests_uri.c
call fcn.0045a5b0
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], 0x80004005
mov dword [esp + 4], str.Error:_CoInternetParseIUri_returned_0x_08x_expected_0x_08x._n
cmp eax, 0x80004005
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0045a820
mov dword [esp + 4], 0x2b1f
mov dword [esp], str..._wine_dlls_urlmon_tests_uri.c
call fcn.0045a5b0
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], str.Error:_Expected_result_to_be_0__but_was__d._n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0045a820
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], 0xffffffff
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb
mov dword [esp], eax
call dword [0x49cf30]
sub esp, 0x1c
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], 0x2b23
mov dword [esp], str..._wine_dlls_urlmon_tests_uri.c
call fcn.0045a5b0
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], 0x80004005
mov dword [esp + 4], str.Error:_CoInternetParseIUri_returned_0x_08x__expected_0x_08x._n
cmp eax, 0x80004005
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0045a820
mov dword [esp + 4], 0x2b25
mov dword [esp], str..._wine_dlls_urlmon_tests_uri.c
call fcn.0045a5b0
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], str.Error:_Expected_result_to_be_0__but_was__d._n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0045a820
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], 0xffffffff
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc
mov dword [esp], eax
call dword [0x49cf30]
sub esp, 0x1c
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], 0x2b29
mov dword [esp], str..._wine_dlls_urlmon_tests_uri.c
call fcn.0045a5b0
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], 0x80004005
mov dword [esp + 4], str.Error:_CoInternetParseIUri_returned_0x_08x__expected_0x_08x._n
cmp eax, 0x80004005
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0045a820
mov dword [esp + 4], 0x2b2b
mov dword [esp], str..._wine_dlls_urlmon_tests_uri.c
call fcn.0045a5b0
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], str.Error:_Expected_result_to_be_0__but_was__d._n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0045a820
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], 0xffffffff
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x11
mov dword [esp], eax
call dword [0x49cf30]
sub esp, 0x1c
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], 0x2b2f
mov dword [esp], str..._wine_dlls_urlmon_tests_uri.c
call fcn.0045a5b0
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], 0x80004005
mov dword [esp + 4], str.Error:_CoInternetParseIUri_returned_0x_08x__expected_0x_08x._n
cmp eax, 0x80004005
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0045a820
mov dword [esp + 4], 0x2b31
mov dword [esp], str..._wine_dlls_urlmon_tests_uri.c
call fcn.0045a5b0
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], str.Error:_Expected_result_to_be_0__but_was__d._n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0045a820
mov edx, 0x74
mov eax, str.http:__www.winehq.org_
jmp 0x42f574
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x42f570
sub eax, str.http:__www.winehq.org_
mov dword [esp + 0xc], edi
sar eax, 1
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 3
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [0x49cf30]
sub esp, 0x1c
mov edi, eax
mov dword [esp + 4], 0x2b36
mov dword [esp], str..._wine_dlls_urlmon_tests_uri.c
call fcn.0045a5b0
xor eax, eax
cmp edi, 0x8007007a
mov dword [esp + 0xc], 0x8007007a
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.Error:_CoInternetParseIUri_returned_0x_08x__expected_0x_08x._n
call fcn.0045a820
mov dword [esp + 4], 0x2b39
mov dword [esp], str..._wine_dlls_urlmon_tests_uri.c
call fcn.0045a5b0
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
mov dword [esp + 4], str.Error:_Expected_result_to_be__d__but_was__d_instead._n
cmp eax, edx
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 8], edx
movzx eax, al
mov dword [esp], eax
call fcn.0045a820
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42f64d
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov dword [esp + 8], 0x2092
mov esi, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov edi, eax
mov eax, dword [str.http:__www.winehq.org_]
sub esp, 0xc
lea ecx, [edi + 0x2090]
mov dword [edi], eax
mov eax, dword [0x4916e4]
mov dword [edi + 4], eax
mov eax, dword [0x4916e8]
mov dword [edi + 8], eax
mov eax, dword [0x4916ec]
mov dword [edi + 0xc], eax
mov eax, dword [0x4916f0]
mov dword [edi + 0x10], eax
mov eax, dword [0x4916f4]
mov dword [edi + 0x14], eax
mov eax, dword [0x4916f8]
mov dword [edi + 0x18], eax
mov eax, dword [0x4916fc]
mov dword [edi + 0x1c], eax
mov eax, dword [0x491700]
mov dword [edi + 0x20], eax
mov eax, dword [0x491704]
mov dword [edi + 0x24], eax
mov eax, dword [0x491708]
mov dword [edi + 0x28], eax
movzx eax, word [0x49170c]
mov word [edi + 0x2c], ax
lea eax, [edi + 0x2c]
mov edx, 0x78
add eax, 2
mov word [eax - 2], dx
cmp eax, ecx
jne 0x42f6e4
xor eax, eax
mov word [edi + 0x2090], ax
mov dword [esp + 8], 0x2092
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
lea esi, [ebp - 0x28]
sub esp, 0xc
mov dword [ebp - 0x2c], eax
mov dword [esp + 8], 0x2092
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [0x49cf48]
sub esp, 0x10
mov esi, eax
mov dword [esp + 4], 0x2b4a
mov dword [esp], str..._wine_dlls_urlmon_tests_uri.c
call fcn.0045a5b0
mov edx, esi
mov dword [esp + 8], esi
not edx
mov dword [esp + 4], str.Error:_CreateUri_returned_0x_08x._n
mov eax, edx
shr eax, 0x1f
mov dword [esp], eax
call fcn.0045a820
test esi, esi
js 0x42f8b4
mov dword [esp + 8], 0x2090
mov dword [esp + 4], 0xcc
mov dword [esp], edi
mov dword [ebp - 0x24], 0xffffffff
call dword [sym.imp.msvcrt.dll_memset]
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0x1049
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [0x49cf30]
sub esp, 0x1c
mov ebx, eax
mov dword [esp + 4], 0x2b4f
mov dword [esp], str..._wine_dlls_urlmon_tests_uri.c
call fcn.0045a5b0
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], str.Error:_CoInternetParseIUri_returned_0x_08x._n
mov dword [esp], ebx
call fcn.0045a820
mov dword [esp + 4], 0x2b50
mov dword [esp], str..._wine_dlls_urlmon_tests_uri.c
call fcn.0045a5b0
mov eax, edi
call fcn.0042ee60
mov esi, eax
mov eax, dword [ebp - 0x2c]
call fcn.0042ee60
mov dword [esp], edi
mov ebx, eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
sete al
mov dword [esp + 0xc], esi
movzx eax, al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.Error:_expected_long_url__s_but_was__s._n
call fcn.0045a820
mov dword [esp + 4], 0x2b52
mov dword [esp], str..._wine_dlls_urlmon_tests_uri.c
call fcn.0045a5b0
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], 0x1048
mov dword [esp + 4], str.Error:_Expected_result_to_be__d__but_was__d_instead._n
cmp eax, 0x1048
mov dword [esp + 0xc], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0045a820
mov dword [esp + 8], edi
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x2c]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x28]
sub esp, 0xc
test eax, eax
je 0x42f90a
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret