Function at 0x40ba50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xd4
mov dword [ebp - 0xe0], edx
mov dword [ebp - 0xd4], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x450010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
mov dword [ebp - 0xd8], eax
xor ebx, ebx
lea edi, [ebp - 0xd0]
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], ebx
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
mov dword [ebp - 0xdc], eax
call esi
mov ecx, 0x438
push ebx
push ebx
push ecx
push edi
push dword [ebp - 0xdc]
push dword [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov dword [edi + 0x18], ebx
mov byte [edi + 0x1c], bl
mov byte [edi + 0x20], bl
lea edi, [ebp - 0xac]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], ebx
call esi
mov ecx, esi
mov esi, eax
call ecx
push ebx
push ebx
mov ecx, 0x438
push ecx
push edi
push esi
push dword [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
movaps xmm0, xmmword [0x445260]
movups xmmword [edi + 0x18], xmm0
push 0x44a434
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x24], eax
lea esi, [ebp - 0x84]
lea ecx, [ebp - 0xd0]
mov edx, 0x447ebc
push esi
push 0x4125f0
call fcn.0040c2b0
add esp, 8
test al, al
je 0x40c075
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x74], eax
lea edi, [ebp - 0x64]
mov ecx, dword [ebp + 8]
push edi
call fcn.0040b510
cmp byte [edi + 0xc], 0
jne 0x40c075
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov eax, 0x4508d4
test ecx, ecx
je 0x40bb81
mov edx, dword [ebp + 8]
cmp dword [edx + 8], 0x4508d4
ja 0x40bb81
cmp dword [edx + 0x10], 0x4508d4
jb 0x40bb81
sub eax, dword [edx + 4]
add ecx, eax
mov eax, ecx
lea ecx, [ebp - 0x74]
push 0
push 4
push ecx
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40c06f
lea ecx, [ebp - 0xd0]
mov edx, str.LdrLoadDll
push esi
push 0x4114d0
call fcn.0040c2b0
add esp, 8
test al, al
je 0x40c094
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x74], eax
mov edi, dword [ebp + 8]
mov ecx, edi
lea eax, [ebp - 0x64]
push eax
call fcn.0040b510
cmp byte [ebp - 0x58], 0
jne 0x40c094
mov ecx, dword [edi + 0x18]
mov eax, 0x4508d0
test ecx, ecx
je 0x40bc04
cmp dword [edi + 8], 0x4508d0
ja 0x40bc04
cmp dword [edi + 0x10], 0x4508d0
jb 0x40bc04
sub eax, dword [edi + 4]
add ecx, eax
mov eax, ecx
push 0
push 4
lea ecx, [ebp - 0x74]
push ecx
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40c08e
mov ecx, esi
mov edx, dword [ebp - 0xe0]
push edi
call fcn.0040e990
add esp, 4
cmp byte [esi + 0xc], 0
jne 0x40c0b7
push 0x44a434
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
and eax, 0xfffffffc
je 0x40bf2f
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x40bf2f
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x40bf2f
movzx edx, word [eax + ecx + 0x18]
cmp edx, 0x10b
jne 0x40bf2f
mov edx, dword [eax + ecx + 0x50]
cmp edx, 0x138
jb 0x40bf2f
mov ecx, dword [ebp + 8]
add ecx, 8
cmp dword [ebp + 0xc], 0
je 0x40bf15
lea esi, [ebp - 0x64]
mov edx, esi
push 0
call fcn.00406830
add esp, 4
mov edi, dword [esi]
mov ebx, dword [esi + 4]
mov al, byte [esi + 8]
test al, al
je 0x40c0d8
shl edi, 2
mov esi, dword [ebp + 8]
mov ecx, esi
lea eax, [ebp - 0x64]
push eax
call fcn.0040b510
mov eax, dword [esi]
mov edx, dword [esi + 0x18]
test edx, edx
je 0x40bf52
cmp dword [esi + 8], ebx
ja 0x40bf52
mov ecx, ebx
cmp dword [esi + 0x10], ebx
jb 0x40bcf2
mov ecx, ebx
sub ecx, dword [esi + 4]
add edx, ecx
mov ecx, edx
lea esi, [ebp - 0x58]
mov dword [esi - 0xc], ecx
mov dword [esi - 8], edi
mov dword [esi - 4], eax
xor edx, edx
mov dword [esi], edx
mov dword [esi + 4], edx
push esi
push 4
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x40c0fb
mov ecx, dword [ebp - 0x54]
test ecx, ecx
js 0x40c117
mov eax, dword [ebp + 0xc]
test eax, eax
cmove eax, ebx
mov dword [ebp - 0xd8], eax
mov esi, dword [ebp + 8]
mov ecx, esi
lea eax, [ebp - 0x74]
push eax
call fcn.0040b510
cmp byte [ebp - 0x68], 0
jne 0x40c133
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40bd60
cmp dword [esi + 8], ebx
ja 0x40bd60
cmp dword [esi + 0x10], ebx
jb 0x40bd60
sub ebx, dword [esi + 4]
add ebx, eax
push 0
push edi
push dword [ebp - 0xd8]
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40c149
mov bl, 1
cmp dword [ebp - 0x54], 0
js 0x40bd98
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
push dword [ebp - 0x60]
push dword [ebp - 0x64]
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test bl, bl
je 0x40be2e
mov eax, dword [0x450638]
and eax, 2
cmp eax, 1
mov eax, 3
sbb eax, 0
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x74], eax
add ecx, 0xfffffffc
cmp ecx, 7
ja case.0x40bdc1.6
jmp dword [ecx*4 + 0x4456d0]
or eax, 4
mov dword [ebp - 0x74], eax
mov esi, dword [ebp + 8]
mov ecx, esi
lea eax, [ebp - 0x64]
push eax
call fcn.0040b510
cmp byte [ebp - 0x58], 0
jne 0x40c13e
mov ecx, dword [esi + 0x18]
mov eax, 0x450638
test ecx, ecx
je 0x40be0b
cmp dword [esi + 8], 0x450638
ja 0x40be0b
cmp dword [esi + 0x10], 0x450638
jb 0x40be0b
sub eax, dword [esi + 4]
add ecx, eax
mov eax, ecx
push 0
push 4
lea ecx, [ebp - 0x74]
push ecx
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40c180
mov eax, dword [ebp - 0xd4]
mov byte [eax + 0xc], 0
cmp dword [ebp - 0x88], 0
mov ebx, dword [ebp - 0x94]
mov esi, dword [ebp - 0x90]
je 0x40bf59
test esi, esi
jne 0x40bfef
mov dword [ebp - 0x90], 0
cmp ebx, 4
jne 0x40bfe0
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x40be7d
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x40be98
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x40beb3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xac], 0
mov eax, dword [ebp - 0xc8]
test eax, eax
je 0x40bece
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0xc8], 0
mov eax, dword [ebp - 0xcc]
test eax, eax
je 0x40bee9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xcc], 0
mov eax, dword [ebp - 0xd0]
test eax, eax
je 0x40befa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004230e0
mov eax, dword [ebp - 0xd4]
add esp, 0xd4
pop esi
pop edi
pop ebx
pop ebp
ret
add edx, eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
mov byte [ebp - 0x5c], 1
lea esi, [ebp - 0x74]
mov edx, esi
lea eax, [ebp - 0x64]
push eax
jmp 0x40bca3
mov eax, dword [ebp - 0xd4]
mov byte [eax + 0xc], 1
mov dword [eax], str._builds_worker_checkouts_gecko_browser_app_winlauncher_DllBlocklistInit.cpp
mov dword [eax + 4], 0x60
mov dword [eax + 8], 0x800700c1
jmp 0x40be2e
mov ecx, ebx
jmp 0x40bcf2
test esi, esi
je 0x40be4f
shl esi, 2
xor edi, edi
mov eax, dword [ebx + edi]
mov dword [ebp - 0xd8], eax
lea edx, [ebp - 0xac]
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], eax
mov ecx, 2
mov dword [ebp - 0x5c], ecx
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], 0x10
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 0x34], 1
lea ecx, [ebp - 0x30]
mov eax, 2
push eax
push dword [ebp - 0xd8]
call fcn.0040e600
add esp, 8
xor eax, eax
cmp dword [ebp - 0x28], eax
je 0x40bfcb
cmp byte [ebp - 0x34], 0
je 0x40bfcb
lea ecx, [ebp - 0x64]
call fcn.004277a0
lea ecx, [ebp - 0x64]
call fcn.00425360
add edi, 4
cmp esi, edi
je 0x40c064
jmp 0x40bf66
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x40be62
shl esi, 2
xor edi, edi
mov eax, dword [ebx + edi]
mov dword [ebp - 0xd8], eax
lea edx, [ebp - 0xac]
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], eax
mov ecx, 2
mov dword [ebp - 0x5c], ecx
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], 0x10
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 0x34], 1
lea ecx, [ebp - 0x30]
mov eax, 2
push eax
push dword [ebp - 0xd8]
call fcn.0040e600
add esp, 8
xor eax, eax
cmp dword [ebp - 0x28], eax
je 0x40c055
cmp byte [ebp - 0x34], 0
jne 0x40c1cd
lea ecx, [ebp - 0x64]
call fcn.00425360
add edi, 4
cmp esi, edi
jne 0x40bff4
mov ebx, dword [ebp - 0x94]
jmp 0x40be4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0xd4]
mov byte [eax + 0xc], 1
mov dword [eax], str._builds_worker_checkouts_gecko_browser_app_winlauncher_DllBlocklistInit.cpp
mov dword [eax + 4], 0x40
jmp 0x40c0ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0xd4]
mov byte [eax + 0xc], 1
mov dword [eax], str._builds_worker_checkouts_gecko_browser_app_winlauncher_DllBlocklistInit.cpp
mov dword [eax + 4], 0x46
mov dword [eax + 8], 0x80070507
jmp 0x40be2e
mov ecx, dword [ebp - 0xd4]
mov byte [ecx + 0xc], 1
movsd xmm0, qword [ebp - 0x84]
movsd qword [ecx], xmm0
mov eax, dword [ebp - 0x7c]
mov dword [ecx + 8], eax
jmp 0x40be2e
mov eax, dword [ebp - 0xd4]
mov byte [eax + 0xc], 1
mov dword [eax], str._builds_worker_checkouts_gecko_browser_app_winlauncher_DllBlocklistInit.cpp
mov dword [eax + 4], pe_nt_image_headers32
mov dword [eax + 8], 0x8007000d
jmp 0x40be2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [ebp - 0x54], ecx
jmp 0x40bd1c
mov eax, dword [ebp - 0xd4]
mov byte [eax + 0xc], 1
mov dword [eax], str._builds_worker_checkouts_gecko_browser_app_winlauncher_DllBlocklistInit.cpp
mov dword [eax + 4], 0x84
mov dword [eax + 8], ecx
jmp 0x40c179
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
jmp 0x40c167
mov eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
jmp 0x40c19e
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, str._builds_worker_workspace_obj_build_dist_include_mozilla_NativeNt.h
mov edx, 0x5f3
mov edi, dword [ebp - 0xd4]
mov byte [edi + 0xc], 1
mov dword [edi], eax
mov dword [edi + 4], edx
mov dword [edi + 8], ecx
xor ebx, ebx
jmp 0x40bd7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, str._builds_worker_workspace_obj_build_dist_include_mozilla_NativeNt.h
mov edx, 0x5f3
mov esi, dword [ebp - 0xd4]
mov byte [esi + 0xc], 1
mov dword [esi], eax
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
jmp 0x40be2e
or eax, 8
jmp 0x40bdcb
or eax, 0x10
jmp 0x40bdcb
or eax, 0x20
jmp 0x40bdcb
lea ecx, [ebp - 0x64]
call fcn.004277a0
jmp 0x40c055