Function at 0x682821d0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Extract resource via kernel32 functions
Get kernel32 base address
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0xd8
mov eax, dword [ecx + 8]
mov ebx, dword [ecx]
mov edi, dword [ecx + 4]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x8c], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x94], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x98], eax
test byte [0x68284078], 8
jne 0x68282940
mov dword [esp], str.___h
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [section..bss]
sub esp, 4
mov dword [ebp - 0x90], eax
test eax, eax
je 0x682829c0
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x68282255
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strlen]
cmp eax, esi
ja 0x68282840
test ebx, ebx
je 0x682829a0
mov eax, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x9c], eax
call eax
mov edx, dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0x18
lea esi, [eax + eax + 2]
mov dword [ebp - 0x90], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x30]
mov dword [ebp - 0xa4], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edx
sub esp, 0xc
test eax, eax
je 0x682829a0
mov edx, dword [ebp - 0x90]
mov dword [esp + 8], ebx
mov dword [ebp - 0x90], eax
mov ebx, dword [ebp - 0x9c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call ebx
mov eax, dword [ebp - 0x90]
xor edx, edx
sub esp, 0x18
mov word [eax + esi - 2], dx
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x682823dd
mov dword [ebp - 0x9c], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call ebx
mov edx, dword [ebp - 0xa4]
sub esp, 0x18
lea ebx, [eax + eax + 2]
mov dword [ebp - 0xa0], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edx
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x68282a17
mov edx, dword [ebp - 0xa0]
mov edi, dword [ebp - 0x8c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [ebp - 0x9c]
mov dword [esp + 0x14], edx
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call eax
xor eax, eax
mov dword [ebp - 0x8c], esi
mov word [esi + ebx - 2], ax
sub esp, 0x18
test byte [0x68284078], 8
jne 0x682829e0
mov dword [ebp - 0x7c], 0
mov esi, dword [section..bss]
lea ebx, [ebp - 0x58]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x6c], 0
mov dword [esp], 0
call dword [sym.imp.ole32.dll_CoInitialize]
sub esp, 4
mov dword [ebp - 0xa0], eax
mov dword [esp + 4], ebx
mov dword [esp], str.JScript
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
sub esp, 8
test eax, eax
jne 0x682828d0
lea eax, [ebp - 0x78]
mov dword [esp + 0xc], 0x68289818
mov dword [esp + 0x10], eax
mov dword [esp + 8], 3
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
jne 0x682828d0
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x7c]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x68289808
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
test eax, eax
jne 0x682828d0
mov eax, dword [ebp - 0x7c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 4
test eax, eax
jne 0x682828d0
mov eax, dword [ebp - 0x78]
mov edx, dword [eax]
mov dword [esp + 4], 0x68284020
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 8
test eax, eax
jne 0x682828d0
mov eax, dword [ebp - 0x78]
mov edx, dword [eax]
mov dword [esp + 8], 8
mov dword [esp + 4], str.global_funcs
mov dword [esp], eax
call dword [edx + 0x20]
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x682828d0
mov dword [esp], str.jsproxy.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov edi, eax
mov dword [esp + 8], 0x28
mov dword [esp + 4], str.pac.js
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
test eax, eax
je 0x682828d0
mov dword [esp], edi
mov dword [esp + 4], eax
mov dword [ebp - 0xa8], eax
call dword [sym.imp.kernel32.dll_SizeofResource]
mov edx, dword [ebp - 0xa8]
sub esp, 8
mov dword [ebp - 0xac], eax
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edi, dword [ebp - 0xac]
sub esp, 8
mov dword [ebp - 0xb0], eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x9c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call eax
sub esp, 0x18
cmp word [esi], 0
mov dword [ebp - 0xa8], eax
je 0x68282a37
mov eax, esi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x682825b0
sub eax, esi
sar eax, 1
mov edi, dword [ebp - 0xa8]
mov dword [esp], 0
lea eax, [edi + eax + 1]
mov dword [esp + 4], eax
call dword [sym.imp.oleaut32.dll_SysAllocStringLen]
sub esp, 8
mov edi, eax
test eax, eax
je 0x682828d0
mov edx, dword [ebp - 0xac]
mov eax, dword [ebp - 0xa8]
mov dword [esp + 0x10], edi
mov dword [esp + 4], 0
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0xb0]
mov dword [esp + 0x14], eax
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x9c]
mov dword [esp], 0
call edx
mov eax, dword [ebp - 0xa8]
sub esp, 0x18
lea ecx, [edi + eax*2]
xor eax, eax
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x68282630
mov eax, dword [ebp - 0x7c]
mov edx, dword [eax]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0x28
test eax, eax
jne 0x682828d4
mov eax, dword [ebp - 0x78]
mov edx, dword [eax]
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 8
mov ebx, eax
test eax, eax
jne 0x68282a30
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x74]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x28]
sub esp, 0xc
test eax, eax
jne 0x682828d4
mov dword [esp], str.FindProxyForURL
mov esi, dword [sym.imp.oleaut32.dll_SysAllocString]
call esi
mov dword [ebp - 0x6c], eax
sub esp, 4
test eax, eax
je 0x682828d4
mov ecx, dword [ebp - 0x74]
lea edx, [ebp - 0x70]
mov eax, dword [ecx]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x6c]
mov dword [esp + 0x10], 0x800
mov dword [esp + 0xc], 1
mov dword [esp + 8], edx
mov dword [esp + 4], 0x6828cb08
mov dword [esp], ecx
call dword [eax + 0x14]
sub esp, 0x18
mov ebx, eax
test eax, eax
jne 0x68282a30
mov eax, dword [ebp - 0x8c]
mov ecx, 8
mov word [ebp - 0x38], cx
mov dword [esp], eax
call esi
mov dword [ebp - 0x30], eax
mov eax, 8
sub esp, 4
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x90]
mov dword [esp], eax
call esi
mov esi, dword [ebp - 0x74]
lea edx, [ebp - 0x38]
mov dword [ebp - 0x44], 0
sub esp, 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x40], 2
mov dword [ebp - 0x3c], 0
mov ecx, dword [esi]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x48]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x70]
mov dword [esp], esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0x800
mov dword [esp + 8], 0x6828cb08
mov dword [esp + 4], eax
call dword [ecx + 0x18]
lea edx, [ebp - 0x38]
mov esi, eax
mov eax, dword [sym.imp.oleaut32.dll_VariantClear]
sub esp, 0x24
mov dword [esp], edx
mov dword [ebp - 0x9c], eax
call eax
lea eax, [ebp - 0x28]
sub esp, 4
mov dword [esp], eax
mov eax, dword [ebp - 0x9c]
call eax
sub esp, 4
test esi, esi
je 0x68282a3e
test byte [0x68284078], 4
je 0x682828d4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.script_failed_0x_08lx_n
mov dword [esp + 8], str.run_script
mov dword [esp + 4], 0x68284078
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x682828d4
mov eax, dword fs:[0x18]
mov dword [ebp - 0x8c], 0
xor ebx, ebx
mov dword [eax + 0x34], 0x7a
mov dword [ebp - 0x90], 0
mov eax, dword [ebp - 0x8c]
mov dword [esp + 4], 0
mov edi, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x90]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [esp], str.___h
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
xor edi, edi
xor ebx, ebx
mov esi, dword [sym.imp.oleaut32.dll_SysFreeString]
mov dword [esp], edi
call esi
mov eax, dword [ebp - 0x6c]
sub esp, 4
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x74]
sub esp, 4
test eax, eax
je 0x682828ff
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x68282911
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x68282923
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0xa0]
test eax, eax
js 0x68282863
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x68282863
mov eax, ebx
call sym._wine_dbgstr_an.constprop.0
mov edx, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x8c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], edx
mov edx, dword [ebp - 0x94]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._s___lu___s___lu___p___p_n
mov dword [esp + 8], str.InternetGetProxyInfo
mov dword [esp + 4], 0x68284078
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x68282217
mov dword [ebp - 0x8c], 0
xor ebx, ebx
mov dword [ebp - 0x90], 0
jmp 0x68282863
mov eax, dword fs:[0x18]
mov dword [ebp - 0x8c], 0
xor ebx, ebx
mov dword [eax + 0x34], 0x3eb
jmp 0x68282863
mov eax, dword [section..bss]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], 0x682860b3
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.InternetGetProxyInfo
mov dword [esp + 4], 0x68284078
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x682823ea
mov dword [ebp - 0x8c], 0
xor ebx, ebx
jmp 0x68282863
xor ebx, ebx
jmp 0x682828d4
xor eax, eax
jmp 0x682825bd
mov edx, dword [ebp - 0x60]
test edx, edx
je 0x68282b63
mov ecx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 8], edx
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0xac], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
mov ecx, dword [ebp - 0xa4]
sub esp, 0x20
mov ebx, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0xa8], ebx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ecx
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x68282b63
mov eax, dword [ebp - 0xa8]
mov edx, dword [ebp - 0xb0]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], 0
mov ecx, dword [ebp - 0xac]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
mov eax, dword [ebp - 0x94]
sub esp, 0x20
mov dword [eax], ebx
test byte [0x68284078], 8
jne 0x68282b71
mov eax, dword [ebp - 0x94]
mov esi, 1
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, dword [ebp - 0x98]
inc eax
mov dword [ebx], eax
lea eax, [ebp - 0x68]
mov ebx, esi
mov dword [esp], eax
mov eax, dword [ebp - 0x9c]
call eax
push edx
jmp 0x682828d4
mov eax, dword [ebp - 0x94]
mov dword [eax], 0
jmp 0x68282b4d
mov eax, ebx
call sym._wine_dbgstr_an.constprop.0
mov dword [esp + 0xc], str.result:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.run_script
mov dword [esp + 4], 0x68284078
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x68282b2e