Function at 0x403c00
Capabilities:
Create process on windows
Query environment variable
Resolve function by parsing pe exports
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x9b0
mov eax, dword [0x448010]
mov edi, dword [ebp + 0x10]
movq xmm0, qword [0x43e1a8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
xor eax, ebp
mov edx, edi
mov dword [esp + 0x9a8], eax
lea eax, [esp + 0x40]
movq qword [esp + 0x40], xmm0
push eax
call fcn.004055c0
add esp, 4
lea eax, [edi + 4]
mov dword [0x448758], esi
mov dword [esp + 0x14], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x403d07
mov ecx, dword [ebp + 0x10]
mov ebx, dword [esp + 0x14]
lea esi, [ecx + 8]
jmp 0x403c81
mov eax, dword [ebx + 4]
add ebx, 4
add esi, 4
test eax, eax
je 0x403d07
movzx ecx, word [eax]
or ecx, 2
cmp cx, 0x2f
jne 0x403c70
xor edx, edx
cmp word [eax + 2], 0x2d
lea edi, [eax + 2]
lea ecx, [eax + 4]
sete dl
cmove edi, ecx
movzx eax, word [eax + edx*2 + 2]
mov dword [esp + 0xc], edi
mov edi, 2
test ax, ax
setne cl
test cl, 1
je 0x403c70
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, word [edi + 0x441f00]
jne 0x403c70
mov eax, dword [esp + 0xc]
movzx eax, word [eax + edi]
test ax, ax
setne cl
cmp word [edi + str.log_launcher_error], 0
lea edi, [edi + 2]
jne 0x403cb4
test ax, ax
jne 0x403c70
mov eax, dword [esi]
mov dword [esi - 4], eax
add esi, 4
test eax, eax
jne 0x403cef
mov eax, dword [ebp + 0xc]
dec dword [eax]
mov byte [0x448754], 1
lea ecx, [esp + 0x78]
call fcn.00402d00
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
test eax, eax
je 0x403eb7
mov ecx, dword [ebp + 0x10]
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
lea esi, [ecx + 8]
movzx ecx, word [eax]
cmp cx, 0x2d
jne 0x403ea0
xor edx, edx
cmp word [eax + 2], 0x2d
lea ebx, [eax + 2]
lea ecx, [eax + 4]
sete dl
cmove ebx, ecx
movzx eax, word [eax + edx*2 + 2]
test ax, ax
je 0x403eaa
movzx eax, ax
push eax
call edi
add esp, 4
cmp ax, 0x63
jne 0x403eaa
movzx eax, word [ebx + 2]
test ax, ax
je 0x403eaa
movzx eax, ax
push eax
call edi
add esp, 4
cmp ax, 0x6f
jne 0x403eaa
movzx eax, word [ebx + 4]
test ax, ax
je 0x403eaa
movzx eax, ax
push eax
call edi
add esp, 4
cmp ax, 0x6e
jne 0x403eaa
movzx eax, word [ebx + 6]
test ax, ax
je 0x403eaa
movzx eax, ax
push eax
call edi
add esp, 4
cmp ax, 0x74
jne 0x403eaa
movzx eax, word [ebx + 8]
test ax, ax
je 0x403eaa
movzx eax, ax
push eax
call edi
add esp, 4
cmp ax, 0x65
jne 0x403eaa
movzx eax, word [ebx + 0xa]
test ax, ax
je 0x403eaa
movzx eax, ax
push eax
call edi
add esp, 4
cmp ax, 0x6e
jne 0x403eaa
movzx eax, word [ebx + 0xc]
test ax, ax
je 0x403eaa
movzx eax, ax
push eax
call edi
add esp, 4
cmp ax, 0x74
jne 0x403eaa
movzx eax, word [ebx + 0xe]
test ax, ax
je 0x403eaa
movzx eax, ax
push eax
call edi
add esp, 4
cmp ax, 0x70
jne 0x403eaa
movzx eax, word [ebx + 0x10]
test ax, ax
je 0x403eaa
movzx eax, ax
push eax
call edi
add esp, 4
cmp ax, 0x72
jne 0x403eaa
movzx eax, word [ebx + 0x12]
test ax, ax
je 0x403eaa
movzx eax, ax
push eax
call edi
add esp, 4
cmp ax, 0x6f
jne 0x403eaa
movzx eax, word [ebx + 0x14]
test ax, ax
je 0x403eaa
movzx eax, ax
push eax
call edi
add esp, 4
cmp ax, 0x63
jne 0x403eaa
cmp word [ebx + 0x16], 0
je 0x404515
jmp 0x403eaa
cmp cx, 0x2f
je 0x403d37
mov eax, dword [esi]
add esi, 4
test eax, eax
jne 0x403d2a
pxor xmm0, xmm0
lea eax, [esp + 0x138]
mov dword [esp + 0x594], 0
mov dword [esp + 0x590], 0
lea ecx, [esp + 0x580]
movdqa xmmword [esp + 0x580], xmm0
push eax
push 0x18
push ecx
push 0
push 0xffffffffffffffff
call sub.ntdll.dll_NtQueryInformationProcess
mov edi, eax
test eax, eax
js 0x40405c
mov ebx, dword [esp + 0x594]
test edi, edi
js 0x404069
push ebx
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test eax, eax
mov dword [esp + 0x68], eax
je 0x4040b5
lea ecx, [esp + 0x580]
lea edx, [esp + 0x68]
call fcn.0040dd70
cmp byte [esp + 0x590], 1
je 0x4040cb
lea edx, [esp + 0x594]
lea ecx, [esp + 0x560]
push dword [esp + 0x580]
call fcn.0040dec0
add esp, 4
cmp byte [esp + 0x578], 1
je 0x4040e2
lea ecx, [esp + 0x138]
call fcn.0040ddf0
cmp byte [esp + 0x148], 1
je 0x404115
lea edx, [esp + 0x14c]
lea ecx, [esp + 0x118]
push dword [esp + 0x138]
call fcn.0040dec0
add esp, 4
mov al, byte [esp + 0x130]
cmp al, 1
je 0x404146
or al, byte [esp + 0x578]
jne 0x4040c4
movdqu xmm0, xmmword [esp + 0x560]
movdqu xmm2, xmmword [esp + 0x118]
movdqu xmm1, xmmword [esp + 0x568]
movdqu xmm3, xmmword [esp + 0x120]
pcmpeqb xmm2, xmm0
pcmpeqb xmm3, xmm1
pand xmm3, xmm2
pmovmskb eax, xmm3
cmp eax, 0xffff
sete bl
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
lea eax, [esi + 1]
cmp eax, 2
jb 0x404021
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0xc], 0
jne 0x404082
test bl, bl
sete bl
push 0x441355
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
jne 0x40412c
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
test eax, eax
je 0x404397
mov ecx, dword [ebp + 0x10]
lea esi, [ecx + 8]
jmp 0x40424d
mov ebx, str._builds_worker_workspace_obj_build_dist_include_mozilla_NativeNt.h
test edi, edi
jns 0x403f0e
mov eax, ebx
or edi, 0x10000000
mov dword [esp + 0x10], 0x492
and eax, 0xffffff00
mov dword [esp + 8], eax
movzx eax, bl
mov ecx, dword [esp + 0x10]
or eax, dword [esp + 8]
mov dword [esp + 0x580], eax
mov dword [esp + 0x584], ecx
lea ecx, [esp + 0x580]
mov dword [esp + 0x588], edi
call fcn.00402bd0
xor ebx, ebx
jmp 0x40402d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x404175
xor ebx, ebx
jmp 0x404002
mov eax, dword [esp + 0x588]
mov ebx, dword [esp + 0x584]
mov edi, dword [esp + 0x58c]
jmp 0x40415b
mov edi, dword [esp + 0x568]
cmp edi, 0xd000003a
je 0x40419a
mov ebx, dword [esp + 0x560]
mov eax, dword [esp + 0x564]
mov ecx, ebx
mov dword [esp + 0x10], eax
and ecx, 0xffffff00
mov dword [esp + 8], ecx
jmp 0x40416a
mov eax, dword [esp + 0x140]
mov ebx, dword [esp + 0x13c]
mov edi, dword [esp + 0x144]
jmp 0x40415b
cmp byte [eax], 0
je 0x404043
mov ecx, str.MOZ_LAUNCHER_PROCESS
call fcn.0040a6f0
mov bl, 1
jmp 0x404043
mov eax, dword [esp + 0x11c]
mov ebx, dword [esp + 0x118]
mov edi, dword [esp + 0x120]
mov dword [esp + 0x10], eax
mov eax, ebx
and eax, 0xffffff00
mov dword [esp + 8], eax
mov al, 1
mov dword [esp + 0xc], eax
jmp 0x404012
movzx edi, ax
mov ecx, str._builds_worker_checkouts_gecko_browser_app_winlauncher_SameBinary.h
mov ebx, str._builds_worker_checkouts_gecko_browser_app_winlauncher_SameBinary.h
mov dword [esp + 0x10], 0x58
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x404109
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x138]
lea edx, [esp + 0x560]
mov dword [esp + 0x18], eax
mov dword [esp + 0x560], eax
call fcn.0040dd70
cmp byte [esp + 0x148], 1
jne 0x4041f4
mov eax, dword [esp + 0x140]
mov ebx, dword [esp + 0x13c]
mov edi, dword [esp + 0x144]
mov dword [esp + 0x10], eax
mov eax, ebx
and eax, 0xffffff00
mov dword [esp + 8], eax
mov al, 1
mov dword [esp + 0xc], eax
jmp 0x40421e
lea ecx, [esp + 0x580]
lea edx, [esp + 0x138]
call fcn.0040de50
mov ebx, eax
mov edi, 0xd000003a
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 2
jb 0x404012
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404012
mov eax, dword [esi]
add esi, 4
test eax, eax
je 0x404397
movzx ecx, word [eax]
or ecx, 2
cmp cx, 0x2f
jne 0x404240
xor edx, edx
cmp word [eax + 2], 0x2d
lea edi, [eax + 2]
lea ecx, [eax + 4]
sete dl
cmove edi, ecx
movzx eax, word [eax + edx*2 + 2]
test ax, ax
je 0x404240
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x6c
jne 0x404240
movzx eax, word [edi + 2]
test ax, ax
je 0x404240
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x61
jne 0x404240
movzx eax, word [edi + 4]
test ax, ax
je 0x404240
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x75
jne 0x404240
movzx eax, word [edi + 6]
test ax, ax
je 0x404240
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x6e
jne 0x404240
movzx eax, word [edi + 8]
test ax, ax
je 0x404240
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x63
jne 0x404240
movzx eax, word [edi + 0xa]
test ax, ax
je 0x404240
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x68
jne 0x404240
movzx eax, word [edi + 0xc]
test ax, ax
je 0x404240
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x65
jne 0x404240
movzx eax, word [edi + 0xe]
test ax, ax
je 0x404240
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x72
jne 0x404240
cmp word [edi + 0x10], 0
jne 0x404240
mov eax, dword [esi]
mov dword [esi - 4], eax
add esi, 4
test eax, eax
jne 0x404384
mov eax, dword [ebp + 0xc]
dec dword [eax]
jmp 0x40439b
test bl, bl
je 0x4043b6
mov eax, dword [esp + 0x14]
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov eax, dword [eax]
test eax, eax
je 0x404560
lea esi, [ebx + 8]
jmp 0x40468d
xor eax, eax
mov edi, 1
mov ebx, dword [ebp + 0x10]
lea esi, [esp + 0x580]
lea ecx, [esp + 0x78]
mov edx, esi
push eax
push edi
call fcn.00406aa0
add esp, 8
cmp byte [esp + 0x58c], 1
je 0x404567
cmp dword [esp + 0x580], 0
jne 0x4044e9
mov eax, dword [0x448788]
cmp eax, 0x3839
jae 0x4045b7
mov eax, dword [0x44803c]
cmp eax, 0x383a
jb 0x404499
lea eax, [esp + 0x588]
push 0x94
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov edi, dword [sym.imp.ntdll.dll_VerSetConditionMask]
mov dword [esp + 0x580], 0x9c
mov dword [esp + 0x584], 0xa
mov dword [esp + 0x58c], 0x3839
push 3
push 2
push 0
push 0
call edi
push 3
push 1
push edx
push eax
call edi
push 3
push 4
push edx
push eax
call edi
push 3
push 0x20
push edx
push eax
call edi
push 3
push 0x10
push edx
push eax
call edi
push edx
push eax
push 0x37
push esi
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
jne 0x4045ac
mov eax, 0x3839
xchg dword [0x44803c], eax
call fcn.00405960
test ebx, ebx
je 0x404575
lea ecx, [esp + 0x580]
call fcn.0040a430
mov eax, dword [esp + 0x580]
mov dword [esp + 0x580], 0
test eax, eax
je 0x404575
mov dword [ebx], eax
mov eax, ebx
mov ebx, dword [ebx + 4]
test ebx, ebx
je 0x40556d
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
lea edi, [eax + 0x10]
jmp 0x4048cc
push str.MOZ_DEBUG_BROWSER_PROCESS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
jne 0x4045fb
push str.MOZ_DEBUG_BROWSER_PAUSE
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetenv]
add esp, 4
test eax, eax
jne 0x40460f
lea ecx, [esp + 0x78]
lea edx, [esp + 0x580]
call fcn.00405870
cmp byte [esp + 0x58c], 1
je 0x40459e
mov edi, dword [ebp + 8]
mov dword [edi + 4], 0
mov dword [edi], 0
lea ecx, [esp + 0x78]
call fcn.00402ef0
mov ecx, dword [esp + 0x9a8]
xor ecx, ebp
call fcn.0043c380
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x4043c0
lea ecx, [esp + 0x580]
call fcn.00402bd0
jmp 0x404515
mov byte [esp + 0x58c], 1
mov dword [esp + 0x580], 0x4404dd
mov dword [esp + 0x584], 0x109
mov dword [esp + 0x588], 0x80070507
lea ecx, [esp + 0x580]
call fcn.00402bd0
jmp 0x40452f
mov eax, 0x3839
xchg dword [0x448788], eax
mov ecx, dword [0x4481bc]
mov edx, dword fs:[0x2c]
mov eax, dword [0x448764]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40464e
mov eax, dword [0x448760]
mov ebx, dword [ebp + 0x10]
test eax, eax
je 0x404499
mov dword [esp + 0x580], 4
push 4
push esi
push 0xa
call eax
jmp 0x404499
cmp byte [eax], 0
je 0x4044ff
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x404515
cmp word [eax], 0
je 0x404515
push 0xa
push 0
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoul]
add esp, 0xc
imul esi, eax, 0x3e8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
sub esp, 8
mov dword [esp + 4], eax
call fcn.0040e250
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x404515
push 0x448764
call fcn.0043bc97
add esp, 4
cmp dword [0x448764], 0xffffffff
jne 0x4045d4
call fcn.0040e320
push 0x448764
call fcn.0043bce9
add esp, 4
jmp 0x4045d4
mov eax, dword [esi]
add esi, 4
test eax, eax
je 0x4048b7
movzx ecx, word [eax]
or ecx, 2
cmp cx, 0x2f
jne 0x404680
xor edx, edx
cmp word [eax + 2], 0x2d
lea ebx, [eax + 2]
lea ecx, [eax + 4]
sete dl
cmove ebx, ecx
movzx eax, word [eax + edx*2 + 2]
test ax, ax
je 0x404680
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x66
jne 0x404680
movzx eax, word [ebx + 2]
test ax, ax
je 0x404680
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x6f
jne 0x404680
movzx eax, word [ebx + 4]
test ax, ax
je 0x404680
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x72
jne 0x404680
movzx eax, word [ebx + 6]
test ax, ax
je 0x404680
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x63
jne 0x404680
movzx eax, word [ebx + 8]
test ax, ax
je 0x404680
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x65
jne 0x404680
movzx eax, word [ebx + 0xa]
test ax, ax
je 0x404680
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x2d
jne 0x404680
movzx eax, word [ebx + 0xc]
test ax, ax
je 0x404680
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x6c
jne 0x404680
movzx eax, word [ebx + 0xe]
test ax, ax
je 0x404680
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x61
jne 0x404680
movzx eax, word [ebx + 0x10]
test ax, ax
je 0x404680
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x75
jne 0x404680
movzx eax, word [ebx + 0x12]
test ax, ax
je 0x404680
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x6e
jne 0x404680
movzx eax, word [ebx + 0x14]
test ax, ax
je 0x404680
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x63
jne 0x404680
movzx eax, word [ebx + 0x16]
test ax, ax
je 0x404680
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x68
jne 0x404680
movzx eax, word [ebx + 0x18]
test ax, ax
je 0x404680
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x65
jne 0x404680
movzx eax, word [ebx + 0x1a]
test ax, ax
je 0x404680
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x72
jne 0x404680
cmp word [ebx + 0x1c], 0
jne 0x404680
mov eax, dword [esi]
mov dword [esi - 4], eax
add esi, 4
test eax, eax
jne 0x40489c
mov eax, dword [ebp + 0xc]
dec dword [eax]
mov eax, 1
jmp 0x4043bd
xor eax, eax
jmp 0x4043bd
mov ebx, dword [edi - 8]
add edi, 4
test ebx, ebx
je 0x404fd1
movzx eax, word [ebx]
or eax, 2
cmp ax, 0x2f
jne 0x4048be
cmp word [ebx + 2], 0x2d
jne 0x404fc9
add ebx, 4
movzx eax, word [ebx]
test ax, ax
je 0x4048be
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x77
jne 0x4048be
movzx eax, word [ebx + 2]
test ax, ax
je 0x4048be
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x61
jne 0x4048be
movzx eax, word [ebx + 4]
test ax, ax
je 0x4048be
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x69
jne 0x4048be
movzx eax, word [ebx + 6]
test ax, ax
je 0x4048be
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x74
jne 0x4048be
movzx eax, word [ebx + 8]
test ax, ax
je 0x4048be
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x2d
jne 0x4048be
movzx eax, word [ebx + 0xa]
test ax, ax
je 0x4048be
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x66
jne 0x4048be
movzx eax, word [ebx + 0xc]
test ax, ax
je 0x4048be
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x6f
jne 0x4048be
movzx eax, word [ebx + 0xe]
test ax, ax
je 0x4048be
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x72
jne 0x4048be
movzx eax, word [ebx + 0x10]
test ax, ax
je 0x4048be
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x2d
jne 0x4048be
movzx eax, word [ebx + 0x12]
test ax, ax
je 0x4048be
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x62
jne 0x4048be
movzx eax, word [ebx + 0x14]
test ax, ax
je 0x4048be
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x72
jne 0x4048be
movzx eax, word [ebx + 0x16]
test ax, ax
je 0x4048be
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x6f
jne 0x4048be
movzx eax, word [ebx + 0x18]
test ax, ax
je 0x4048be
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x77
jne 0x4048be
movzx eax, word [ebx + 0x1a]
test ax, ax
je 0x4048be
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x73
jne 0x4048be
movzx eax, word [ebx + 0x1c]
test ax, ax
je 0x4048be
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x65
jne 0x4048be
movzx eax, word [ebx + 0x1e]
test ax, ax
je 0x4048be
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x72
jne 0x4048be
cmp word [ebx + 0x20], 0
jne 0x4048be
mov eax, dword [edi - 8]
test eax, eax
mov dword [edi - 0xc], eax
je 0x404aec
mov eax, dword [edi - 4]
mov dword [edi - 8], eax
test eax, eax
jne 0x404fea
mov eax, dword [ebp + 0xc]
dec dword [eax]
mov ebx, 1
mov eax, dword [esp + 0x14]
mov edi, dword [eax]
test edi, edi
je 0x404ce4
mov eax, dword [ebp + 0x10]
lea esi, [eax + 8]
movzx eax, word [edi]
or eax, 2
cmp ax, 0x2f
je 0x404b24
mov edi, dword [esi]
add esi, 4
test edi, edi
jne 0x404b0a
jmp 0x404ce4
cmp word [edi + 2], 0x2d
je 0x404ffc
add edi, 2
movzx eax, word [edi]
test ax, ax
je 0x404b16
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x6e
jne 0x404b16
movzx eax, word [edi + 2]
test ax, ax
je 0x404b16
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x6f
jne 0x404b16
movzx eax, word [edi + 4]
test ax, ax
je 0x404b16
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x2d
jne 0x404b16
movzx eax, word [edi + 6]
test ax, ax
je 0x404b16
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x64
jne 0x404b16
movzx eax, word [edi + 8]
test ax, ax
je 0x404b16
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x65
jne 0x404b16
movzx eax, word [edi + 0xa]
test ax, ax
je 0x404b16
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x65
jne 0x404b16
movzx eax, word [edi + 0xc]
test ax, ax
je 0x404b16
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x6c
jne 0x404b16
movzx eax, word [edi + 0xe]
test ax, ax
je 0x404b16
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x65
jne 0x404b16
movzx eax, word [edi + 0x10]
test ax, ax
je 0x404b16
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x76
jne 0x404b16
movzx eax, word [edi + 0x12]
test ax, ax
je 0x404b16
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x61
jne 0x404b16
movzx eax, word [edi + 0x14]
test ax, ax
je 0x404b16
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x74
jne 0x404b16
movzx eax, word [edi + 0x16]
test ax, ax
je 0x404b16
movzx eax, ax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 4
cmp ax, 0x65
jne 0x404b16
cmp word [edi + 0x18], 0
jne 0x404b16
mov eax, dword [esi]
mov dword [esi - 4], eax
add esi, 4
test eax, eax
jne 0x404cd0
mov eax, dword [ebp + 0xc]
or ebx, 2
dec dword [eax]
mov esi, dword [ebp + 0x10]
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0
lea ecx, [esp + 0x118]
mov edx, ebx
push eax
call fcn.004037f0
add esp, 4
cmp byte [esp + 0x124], 1
je 0x405004
mov dword [esp + 8], ebx
test ebx, ebx
mov ebx, dword [esp + 0x3c]
jne 0x404d31
cmp dword [esp + 0x118], 1
jne 0x404d31
test ebx, ebx
je 0x40527e
lea ecx, [esp + 0x78]
lea edx, [esp + 0x68]
call fcn.00405870
cmp byte [esp + 0x74], 1
je 0x405019
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x38]
mov edx, dword [eax]
push esi
call fcn.00403190
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
mov dword [esp + 0x14], eax
je 0x405027
lea ecx, [esp + 0x34]
mov edx, esi
mov dword [esp + 0xc], ebx
call fcn.004059d0
cmp byte [esp + 0x35], 0
je 0x405079
lea ecx, [esp + 0x138]
lea eax, [esp + 0x14c]
mov dword [esp + 0x13c], 0
mov dword [esp + 0x138], 0
mov dword [esp + 0x144], 0
mov dword [esp + 0x148], 3
mov dword [esp + 0x140], eax
mov dword [esp + 0x158], 0
call fcn.00405c00
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
call ebx
mov edi, eax
push 0xfffffffffffffff5
call ebx
mov esi, eax
push 0xfffffffffffffff4
call ebx
lea ebx, [esp + 0x138]
mov edx, edi
mov dword [esp + 0x10], edi
mov edi, esi
mov esi, eax
mov ecx, ebx
call fcn.0040e370
mov ecx, ebx
mov edx, edi
call fcn.0040e370
mov ecx, ebx
mov edx, esi
call fcn.0040e370
lea eax, [esp + 0x580]
lea edx, [esp + 0x58]
mov ecx, ebx
push eax
call fcn.00405cf0
add esp, 4
cmp byte [esp + 0x64], 1
je 0x4050d3
xor ecx, ecx
cmp byte [esp + 0x58], 0
je 0x4050e1
cmp dword [esp + 0x144], 0
mov eax, 0x80404
je 0x404e79
mov ecx, dword [esp + 0x10]
or byte [esp + 0x5ad], 1
mov dword [esp + 0x5b8], ecx
mov ecx, 1
mov dword [esp + 0x5bc], edi
mov dword [esp + 0x5c0], esi
mov edx, dword [ebp + 0x10]
pxor xmm0, xmm0
mov ebx, dword [esp + 0xc]
mov edi, dword [ebp + 8]
lea esi, [esp + 0x20]
movdqa xmmword [esp + 0x20], xmm0
mov edx, dword [edx]
test ebx, ebx
jne 0x4050eb
push esi
lea esi, [esp + 0x584]
push esi
push 0
push 0
push eax
push ecx
push 0
push 0
push dword [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405112
mov eax, dword [ebp + 0x10]
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x48]
mov edx, dword [eax]
push 0
push ebx
call fcn.004027a0
add esp, 8
cmp byte [esp + 0x54], 1
je 0x405169
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x40516f
test byte [esp + 8], 1
je 0x4051cf
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x405261
lea eax, [esp + 0x560]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x405261
mov eax, dword [esp + 0x560]
mov dword [edi], eax
mov byte [edi + 4], 1
lea eax, [esi + 1]
cmp eax, 2
jb 0x404f47
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 1]
cmp eax, 2
jb 0x404f56
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x158]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x158], 0
test esi, esi
je 0x404f81
push esi
call dword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [esp + 0x140]
lea ecx, [esp + 0x14c]
cmp eax, ecx
jne 0x40526f
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], 0
test eax, eax
je 0x404fb1
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
lea eax, [ebx + 1]
cmp eax, 2
jb 0x40453f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40453f
add ebx, 2
jmp 0x4048e6
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x40556d
lea edi, [ecx + 8]
jmp 0x4052e2
mov eax, dword [edi]
mov dword [edi - 4], eax
add edi, 4
test eax, eax
je 0x404aec
jmp 0x404fea
add edi, 4
jmp 0x404b32
lea ecx, [esp + 0x118]
call fcn.00402bd0
mov edi, dword [ebp + 8]
mov ebx, dword [esp + 0x3c]
jmp 0x405067
lea ecx, [esp + 0x68]
call fcn.00402bd0
mov edi, dword [ebp + 8]
jmp 0x405067
lea ecx, [esp + 0x580]
mov byte [esp + 0x58c], 1
mov dword [esp + 0x580], 0x4404dd
mov dword [esp + 0x584], 0x134
mov dword [esp + 0x588], 0x80070507
call fcn.00402bd0
mov edi, dword [ebp + 8]
mov dword [esp + 0x38], 0
mov dword [edi + 4], 0
mov dword [edi], 0
jmp 0x404fb1
lea ecx, [esp + 0x580]
mov byte [esp + 0x58c], 1
mov dword [esp + 0x580], 0x4404dd
mov dword [esp + 0x584], 0x13b
mov dword [esp + 0x588], 0x80070057
call fcn.00402bd0
mov edi, dword [ebp + 8]
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], 0
mov dword [edi + 4], 0
mov dword [edi], 0
jmp 0x404fa7
lea ecx, [esp + 0x58]
call fcn.00402bd0
mov edi, dword [ebp + 8]
jmp 0x405157
mov eax, 0x404
jmp 0x404e79
push esi
lea esi, [esp + 0x584]
push esi
push 0
push 0
push eax
push ecx
push 0
push 0
push dword [esp + 0x34]
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x404ec1
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
mov byte [esp + 0x56c], 1
mov dword [esp + 0x560], 0x4404dd
mov dword [esp + 0x564], 0x171
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [esp + 0x568], ecx
lea ecx, [esp + 0x560]
call fcn.00402bd0
mov dword [edi + 4], 0
mov dword [edi], 0
jmp 0x404f56
lea ecx, [esp + 0x48]
jmp 0x4051af
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
mov byte [esp + 0x56c], 1
mov dword [esp + 0x560], 0x4404dd
mov dword [esp + 0x564], 0x181
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [esp + 0x568], ecx
lea ecx, [esp + 0x560]
call fcn.00402bd0
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [edi + 4], 0
mov dword [edi], 0
jmp 0x404f38
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
cmp eax, 1
mov ecx, 0
mov dword [esp + 8], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
sbb ecx, ecx
test eax, eax
not ecx
mov dword [esp + 0x10], ecx
jne 0x405207
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x1c], eax
or dword [esp + 0x10], 0x2710
cmp dword [esp + 0x18], 0
jne 0x405224
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
mov edi, dword [esp + 0x10]
sub edi, dword [esp + 8]
jbe 0x405261
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push ebx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
cmp eax, 0xffffffff
jne 0x405261
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5bf
jne 0x405261
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x18], 0
jne 0x405224
jmp 0x405216
mov edi, dword [ebp + 8]
mov dword [edi], 0
jmp 0x404f34
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x404f97
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x580]
mov edx, dword [eax]
push esi
call fcn.00402f60
add esp, 4
cmp byte [esp + 0x58c], 1
jne 0x4052bd
lea ecx, [esp + 0x580]
call fcn.00402bd0
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
xor eax, eax
jmp 0x4052c8
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov al, 1
mov edi, dword [ebp + 8]
xor ebx, ebx
mov byte [edi + 4], al
jmp 0x404fb1
mov eax, dword [edi]
add edi, 4
test eax, eax
je 0x405436
movzx ecx, word [eax]
or ecx, 2
cmp cx, 0x2f
jne 0x4052d5
xor edx, edx
cmp word [eax + 2], 0x2d
lea ebx, [eax + 2]
lea ecx, [eax + 4]
sete dl
cmove ebx, ecx
movzx eax, word [eax + edx*2 + 2]
test ax, ax
je 0x4052d5
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x6d
jne 0x4052d5
movzx eax, word [ebx + 2]
test ax, ax
je 0x4052d5
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x61
jne 0x4052d5
movzx eax, word [ebx + 4]
test ax, ax
je 0x4052d5
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x72
jne 0x4052d5
movzx eax, word [ebx + 6]
test ax, ax
je 0x4052d5
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x69
jne 0x4052d5
movzx eax, word [ebx + 8]
test ax, ax
je 0x4052d5
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x6f
jne 0x4052d5
movzx eax, word [ebx + 0xa]
test ax, ax
je 0x4052d5
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x6e
jne 0x4052d5
movzx eax, word [ebx + 0xc]
test ax, ax
je 0x4052d5
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x65
jne 0x4052d5
movzx eax, word [ebx + 0xe]
test ax, ax
je 0x4052d5
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x74
jne 0x4052d5
movzx eax, word [ebx + 0x10]
test ax, ax
je 0x4052d5
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x74
jne 0x4052d5
movzx eax, word [ebx + 0x12]
test ax, ax
je 0x4052d5
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x65
jne 0x4052d5
cmp word [ebx + 0x14], 0
jne 0x4052d5
jmp 0x404af1
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x40556d
lea edi, [ecx + 8]
jmp 0x405459
mov eax, dword [edi]
add edi, 4
test eax, eax
je 0x40556d
movzx ecx, word [eax]
or ecx, 2
cmp cx, 0x2f
jne 0x40544c
xor edx, edx
cmp word [eax + 2], 0x2d
lea ebx, [eax + 2]
lea ecx, [eax + 4]
sete dl
cmove ebx, ecx
movzx eax, word [eax + edx*2 + 2]
test ax, ax
je 0x40544c
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x68
jne 0x40544c
movzx eax, word [ebx + 2]
test ax, ax
je 0x40544c
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x65
jne 0x40544c
movzx eax, word [ebx + 4]
test ax, ax
je 0x40544c
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x61
jne 0x40544c
movzx eax, word [ebx + 6]
test ax, ax
je 0x40544c
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x64
jne 0x40544c
movzx eax, word [ebx + 8]
test ax, ax
je 0x40544c
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x6c
jne 0x40544c
movzx eax, word [ebx + 0xa]
test ax, ax
je 0x40544c
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x65
jne 0x40544c
movzx eax, word [ebx + 0xc]
test ax, ax
je 0x40544c
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x73
jne 0x40544c
movzx eax, word [ebx + 0xe]
test ax, ax
je 0x40544c
movzx eax, ax
push eax
call esi
add esp, 4
cmp ax, 0x73
jne 0x40544c
cmp word [ebx + 0x10], 0
jne 0x40544c
jmp 0x404af1
push str.MOZ_AUTOMATION
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x405588
cmp byte [eax], 0
jne 0x404af1
push str.MOZ_HEADLESS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x4055ad
cmp byte [eax], 0
mov ebx, 0
jne 0x404af1
jmp 0x404af6
xor ebx, ebx
jmp 0x404af6