Function at 0x408e70
Capabilities:
Get process heap flags

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edi
mov edi, ecx
sub esp, 0x90
mov dword [ebp - 0x70], edx
mov edx, dword [ecx + 4]
mov ecx, 0x58
mov dword [ebp - 0x74], eax
mov esi, dword [ebx]
test edx, edx
je 0x408ebe
cmp word [edx], 0
je 0x4095d0
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x408eb0
sub eax, edx
lea ecx, [eax + 0x5a]
mov edx, dword [edi + 8]
test edx, edx
je 0x408ee7
cmp word [edx], 0
je 0x4095c0
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x408ed8
sub eax, edx
lea ecx, [ecx + eax + 2]
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x6c], 0xdeadbeef
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x68]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x70]
mov dword [esp + 0x14], 0x58
mov dword [esp + 0xc], 3
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x74]
mov dword [esp], 0
mov dword [esp + 4], eax
mov eax, dword [sym.imp.kernel32.dll_QueryActCtxW]
mov dword [ebp - 0x80], eax
call eax
sub esp, 0x1c
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x58109f
mov dword [eax + 4], esi
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 4], str.QueryActCtx_succeeded_n
mov dword [esp], eax
call fcn.00401dd0
call fcn.0057d110
mov dword [eax], 0x58109f
mov edx, dword fs:[0x18]
mov dword [eax + 4], esi
mov eax, dword [edx + 0x34]
mov dword [esp + 4], 0x582472
mov dword [esp + 8], eax
cmp dword [edx + 0x34], 0x7a
sete al
mov dword [ebp - 0x7c], edx
movzx eax, al
mov dword [esp], eax
call fcn.00401dd0
call fcn.0057d110
mov ecx, dword [ebp - 0x78]
mov dword [eax], 0x58109f
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x6c]
mov dword [esp + 0xc], ecx
cmp eax, ecx
mov dword [esp + 8], eax
setae al
mov dword [esp + 4], str.size_Iu__expected__Iu_n
movzx eax, al
mov dword [esp], eax
call fcn.00401dd0
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x7c]
cmp eax, 0xdeadbeef
je 0x409538
mov dword [ebp - 0x7c], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x78], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ebx, eax
mov eax, dword [ebp - 0x6c]
sub esp, 0xc
mov dword [esp + 4], 0xfe
mov dword [esp + 8], eax
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_memset]
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0xdeadbeef
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x70]
mov dword [esp + 0x14], 0xdeadbeef
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 3
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x74]
mov dword [esp], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x80]
call eax
sub esp, 0x1c
mov dword [ebp - 0x74], eax
mov eax, esi
call fcn.004012e0
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x34]
mov dword [esp + 4], str.QueryActCtx_failed:__lu_n
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x74]
mov dword [esp], eax
call fcn.00401dd0
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x7c]
test eax, eax
je 0x409528
mov eax, dword [edi + 8]
test eax, eax
je 0x4094f0
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x4094a8
mov eax, esi
mov dword [ebp - 0x74], ecx
call fcn.004012e0
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x74]
mov dword [esp + 4], str.size_Iu__expected__Iu_n
cmp eax, ecx
mov dword [esp + 8], eax
sete al
mov dword [esp + 0xc], ecx
movzx eax, al
mov dword [esp], eax
call fcn.00401dd0
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x409560
cmp word [ecx], 0
je 0x4095f0
mov eax, ecx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x4090f0
sub eax, ecx
mov edx, eax
mov eax, esi
mov dword [ebp - 0x74], edx
call fcn.004012e0
mov eax, dword [ebx + 4]
mov edx, dword [ebp - 0x74]
mov dword [esp + 4], str.info__ulEncodedAssemblyIdentityLength___lu__expected__lu_n
cmp eax, edx
mov dword [esp + 8], eax
sete al
mov dword [esp + 0xc], edx
movzx eax, al
mov dword [esp], eax
call fcn.00401dd0
mov eax, esi
call fcn.004012e0
mov eax, dword [ebx + 8]
mov dword [esp + 4], str.info__ulManifestPathType___lx_n
cmp eax, 2
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401dd0
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x409590
cmp word [ecx], 0
je 0x4095e0
mov eax, ecx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x409170
sub eax, ecx
mov edx, eax
mov eax, esi
mov dword [ebp - 0x74], edx
call fcn.004012e0
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp - 0x74]
mov dword [esp + 4], str.info__ulManifestPathLength___lu__expected__lu_n
cmp eax, edx
mov dword [esp + 8], eax
sete al
mov dword [esp + 0xc], edx
movzx eax, al
mov dword [esp], eax
call fcn.00401dd0
mov eax, esi
call fcn.004012e0
mov eax, dword [ebx + 0x18]
mov dword [esp + 4], str.info__ulPolicyPathType___lx_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401dd0
mov eax, esi
call fcn.004012e0
mov eax, dword [ebx + 0x1c]
mov dword [esp + 4], str.info__ulPolicyPathLength___lu__expected_0_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401dd0
mov eax, esi
call fcn.004012e0
mov eax, dword [ebx + 0x28]
mov dword [esp + 4], str.info__ulMetadataSatelliteRosterIndex___lx_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401dd0
mov eax, esi
call fcn.004012e0
mov eax, dword [ebx + 0x2c]
mov dword [esp + 4], str.info__ulManifestVersionMajor___lx_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401dd0
mov eax, esi
call fcn.004012e0
mov eax, dword [ebx + 0x30]
mov dword [esp + 4], str.info__ulManifestVersionMinor___lx_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401dd0
mov eax, esi
call fcn.004012e0
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.info__ulPolicyVersionMajor___lx_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401dd0
mov eax, esi
call fcn.004012e0
mov eax, dword [ebx + 0x38]
mov dword [esp + 4], str.info__ulPolicyVersionMinor___lx_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401dd0
mov edx, dword [edi + 0xc]
mov eax, esi
test edx, edx
jne 0x409480
call fcn.004012e0
mov dword [esp + 4], str.info__ulAssemblyDirectoryNameLength___0_n
mov edx, dword [ebx + 0x3c]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.00401dd0
mov eax, esi
call fcn.004012e0
mov dword [esp + 4], str.info__lpAssemblyEncodedAssemblyIdentity__NULL_n
mov edx, dword [ebx + 0x40]
xor eax, eax
test edx, edx
setne al
mov dword [esp], eax
call fcn.00401dd0
mov ecx, dword [ebx + 0x40]
test ecx, ecx
je 0x40936d
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x40936d
mov eax, esi
call fcn.004012e0
mov eax, dword [edi + 8]
call fcn.004014e0
mov dword [ebp - 0x78], eax
mov eax, dword [ebx + 0x40]
call fcn.004014e0
mov dword [ebp - 0x74], eax
mov eax, dword [edi + 8]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x40]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
mov ecx, dword [ebp - 0x78]
sub esp, 8
test eax, eax
mov dword [esp + 0xc], ecx
sete al
mov edx, dword [ebp - 0x74]
movzx eax, al
mov dword [esp + 4], str.unexpected_info__lpAssemblyEncodedAssemblyIdentity__s____s_n
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.00401dd0
mov edx, dword [edi + 4]
mov eax, esi
test edx, edx
je 0x409500
call fcn.004012e0
mov dword [esp + 4], str.info__lpAssemblyManifestPath__NULL_n
mov ecx, dword [ebx + 0x44]
xor eax, eax
test ecx, ecx
setne al
mov dword [esp], eax
call fcn.00401dd0
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x4093d5
mov eax, esi
call fcn.004012e0
mov eax, dword [edi + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x44]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
sete al
mov dword [esp + 4], str.unexpected_info__lpAssemblyManifestPath_n
movzx eax, al
mov dword [esp], eax
call fcn.00401dd0
mov eax, esi
call fcn.004012e0
mov dword [esp + 4], str.info__lpAssemblyPolicyPath___NULL_n
mov edx, dword [ebx + 0x48]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.00401dd0
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x409421
mov eax, esi
call fcn.004012e0
mov dword [esp + 4], str.info__lpAssemblyPolicyPath_is_not_empty_n
mov eax, dword [ebx + 0x48]
cmp word [eax], 0
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401dd0
mov eax, esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x4094b8
call fcn.004012e0
mov dword [esp + 4], str.info__lpAssemblyDirectoryName__NULL_n
mov ecx, dword [ebx + 0x4c]
xor eax, eax
test ecx, ecx
setne al
mov dword [esp], eax
call fcn.00401dd0
mov dword [esp + 8], ebx
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 dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
call fcn.004012e0
mov dword [esp + 4], str.info__ulAssemblyDirectoryNameLength__0_n
mov ecx, dword [ebx + 0x3c]
xor eax, eax
test ecx, ecx
setne al
mov dword [esp], eax
call fcn.00401dd0
jmp 0x4092e5
mov eax, dword [ebx + 0x3c]
lea ecx, [ecx + eax + 2]
jmp 0x4090a1
call fcn.004012e0
mov eax, dword [ebx + 0x4c]
call fcn.004014e0
mov dword [esp + 4], str.info__lpAssemblyDirectoryName___s_n
mov dword [esp + 8], eax
mov edx, dword [ebx + 0x4c]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.00401dd0
jmp 0x40944d
mov eax, dword [ebx + 4]
lea ecx, [ecx + eax + 2]
jmp 0x409096
call fcn.004012e0
mov dword [esp + 4], str.info__lpAssemblyManifestPath__NULL_n
mov edx, dword [ebx + 0x44]
xor eax, eax
test edx, edx
setne al
mov dword [esp], eax
call fcn.00401dd0
jmp 0x4093d5
mov eax, dword [ebx + 0xc]
lea ecx, [ecx + eax + 2]
jmp 0x40908b
mov eax, 0x371
call fcn.004012e0
mov dword [esp], str.bad_size_n
call fcn.00401860
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov eax, esi
call fcn.004012e0
mov dword [esp + 4], str.info__ulEncodedAssemblyIdentityLength__0_n
mov edx, dword [ebx + 4]
xor eax, eax
test edx, edx
setne al
mov dword [esp], eax
call fcn.00401dd0
jmp 0x40912d
mov eax, esi
call fcn.004012e0
mov dword [esp + 4], str.info__ulManifestPathLength__0_n
mov ecx, dword [ebx + 0xc]
xor eax, eax
test ecx, ecx
setne al
mov dword [esp], eax
call fcn.00401dd0
jmp 0x4091ad
xor eax, eax
jmp 0x408ee3
mov ecx, 0x5a
jmp 0x408ebe
xor edx, edx
jmp 0x40917d
xor edx, edx
jmp 0x4090fd