Function at 0x407420
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov eax, dword fs:[0x18]
sub esp, 0x84c
mov dword [ebp - 0x830], ecx
mov dword [esp + 8], 0xe3c
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x834], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ebx, eax
add eax, 0x578
sub esp, 0xc
lea edi, [ebx + 4]
mov ecx, ebx
mov dword [ebp - 0x82c], eax
xor eax, eax
and edi, 0xfffffffc
mov dword [ebx], 0
mov dword [ebx + 0xe38], 0
sub ecx, edi
add ecx, 0xe3c
shr ecx, 2
rep stosd dword es:[edi], eax
mov dword [ebx + 0x88], 1
mov dword [ebx + 0x120], 0x6f
mov dword [ebx + 0x130], 0x2c
mov dword [ebx + 0x138], 1
mov dword [ebx + 0x14c], 0x80000000
mov dword [ebx + 0x150], 0x80000000
mov dword [ebx + 0x154], 0x80000000
mov dword [ebx + 0x158], 0x80000000
mov dword [ebx + 0x15c], 0x12c
test esi, esi
je 0x407718
movzx ecx, word [esi]
mov edx, esi
test cx, cx
je 0x407729
lea esi, [esi]
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x407510
mov eax, edx
sub eax, esi
sar eax, 1
cmp cx, 0x22
je 0x4076c0
add eax, 1
lea edx, [ebx + 0x164]
cmp eax, 1
jbe 0x4076d3
mov ecx, edx
jmp 0x407552
sub eax, 1
add ecx, 2
add esi, 2
mov word [ecx - 2], di
cmp eax, 1
je 0x40755a
movzx edi, word [esi]
test di, di
jne 0x407540
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x420]
lea edi, [ebp - 0x820]
mov dword [esp], edx
mov dword [esp + 0x10], eax
lea esi, [ebp - 0x828]
lea eax, [ebp - 0x620]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
call dword [sym.imp.ucrtbase.dll__wsplitpath]
xor eax, eax
mov edx, 0x2a
jmp 0x4075a7
movzx edx, word [eax + 0x40d2c8]
mov word [ebx + eax + 0x36c], dx
add eax, 2
test dx, dx
jne 0x4075a0
mov dword [ebx + 0x574], 0x1f
xor eax, eax
mov dword [ebx + 0x58c], 0
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ebp + eax - 0x220], dx
add eax, 2
test dx, dx
jne 0x4075d0
cmp word [ebp - 0x220], 0
lea edx, [ebp - 0x220]
je 0x407601
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x4075f8
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [edi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x407608
mov eax, dword [ebp - 0x830]
mov dword [esp], esi
lea edx, [ebp - 0x220]
mov ecx, dword [ebp - 0x834]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0xe38]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x82c]
call dbg.read_tree
cmp dword [ebx + 0x818], 1
mov edi, eax
lea eax, [ebx + 0x5bc]
je 0x4076e8
lea edx, [ebx + 0xc30]
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
mov dword [esp + 4], global_sTitleFmt
mov dword [esp], eax
call dword [sym.imp.user32.dll_wsprintfW]
mov eax, dword [ebp - 0x82c]
mov edx, edi
xor ecx, ecx
mov dword [ebx + 0x590], 0x10
mov dword [ebx + 0x124], 0
mov dword [ebx + 0x90], eax
mov eax, dword [ebp - 0x830]
mov dword [esp], eax
mov eax, ebx
call dbg.set_curdir
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [edx - 2], 0x22
jne 0x407529
add esi, 2
jmp 0x40752c
test eax, eax
je 0x40755f
mov ecx, edx
jmp 0x40755a
mov dword [esp + 8], eax
mov eax, dword [0x417020]
mov dword [esp + 0xc], 0x104
mov dword [esp + 4], 0x4b4
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
sub esp, 0x10
jmp 0x40767a
lea edi, [ebp - 0x820]
lea esi, [ebp - 0x828]
jmp 0x407590
lea ecx, [ebx + 0x164]
mov edx, ecx
jmp 0x40755a