Function at 0x404179
Capabilities:
Hide graphical window
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a4
push ebx
push esi
push edi
mov eax, str._WalkHeapList_
lea ecx, [ebp - 0x270]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x28], 0x63
jne 0x4041d0
push 0
push 0x40c78c
push str.The_maximum_number_of_snapshots_has_been_reached._Select_the_Update_menu_option_to_reset_the_snapshot_count.
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x404d5d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x288], eax
mov eax, dword [ebp - 0x288]
push eax
push 1
call dword [0x40b450]
mov dword [ebp - 0x290], eax
cmp dword [ebp - 0x290], 0xffffffff
jne 0x404205
xor eax, eax
jmp 0x404d5d
push 5
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x40424b
push 0
push 0
push 0xb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x160], 0x24
mov dword [ebp - 0x28c], 0x10
cmp dword [ebp + 0x10], 0
jne 0x4042b9
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x50]
push eax
call fcn.004058c2
add esp, 4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x50]
push eax
call fcn.00405573
add esp, 4
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x4042b4
push 0
push 0
push 0x1009
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4042ed
mov eax, dword [ebp + 8]
inc dword [eax + 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
push eax
push 0x40c804
push str.__s__Begin_Snapshot__d..._r_n
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x28c]
push eax
mov eax, dword [ebp - 0x290]
push eax
call dword [0x40b75c]
mov dword [ebp - 0x118], eax
cmp dword [0x40b030], 0
je 0x404332
lea eax, [ebp - 0x284]
push eax
push 0x40c828
push 0x40dc50
call fcn.00406170
add esp, 0xc
jmp 0x4043a9
cmp dword [ebp - 0x118], 0
je 0x4043a9
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
cmp dword [ebp - 0x284], eax
jne 0x404356
jmp 0x4043a9
lea eax, [ebp - 0x28c]
push eax
mov eax, dword [ebp - 0x290]
push eax
call dword [0x40b860]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x4043a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x12
je 0x404390
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x404d5d
jmp 0x404332
mov eax, dword [ebp + 8]
cmp dword [eax + 0x28], 1
jne 0x4043d9
mov eax, dword [ebp + 8]
mov dword [eax + 0x38], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x3c], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x40], 0
jmp 0x40440c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x38], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x3c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x40], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x50]
push eax
call fcn.00405845
add esp, 4
movsx eax, byte [0x40db40]
test eax, eax
je 0x404434
push 0x40db40
push str._1_s__r_n
push 0x40b140
push 2
call fcn.00405db6
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [eax + 0x2c], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x30], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x34], 0
mov eax, dword [ebp - 0x284]
push eax
mov eax, dword [ebp - 0x288]
push eax
lea eax, [ebp - 0x160]
push eax
call dword [0x40b554]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x404676
cmp dword [ebp - 0x154], 0
je 0x40463e
mov dword [ebp - 0x278], 0
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x278]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004039b1
add esp, 0xc
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
je 0x4044e2
mov eax, 1
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x28]
dec edx
mov cl, dl
shl eax, cl
mov ecx, dword [ebp - 0x278]
or dword [ecx + 0x10], eax
jmp 0x4045d4
push 0x1c
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 0
je 0x4045d4
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x278]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x158]
mov edx, dword [ebp - 0x278]
mov dword [edx], eax
mov eax, dword [ebp - 0x154]
mov edx, dword [ebp - 0x278]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x150]
mov edx, dword [ebp - 0x278]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x14c]
mov edx, dword [ebp - 0x278]
mov dword [edx + 0xc], eax
mov eax, 1
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x28]
dec edx
mov cl, dl
shl eax, cl
mov ecx, dword [ebp - 0x278]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x28], 1
jbe 0x40459a
mov eax, dword [ebp - 0x278]
mov eax, dword [eax + 8]
push eax
push 1
mov eax, dword [ebp - 0x278]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x278]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
push eax
call fcn.00402e93
add esp, 0x14
mov eax, dword [ebp - 0x278]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x50]
push eax
call fcn.004053bc
add esp, 8
test eax, eax
jne 0x4045d4
mov dword [ebp - 0x118], 0
mov eax, dword [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x404676
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x3a0], eax
jmp 0x404612
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp + 8]
add dword [ecx + 0x2c], eax
mov eax, dword [ebp + 8]
inc dword [eax + 0x30]
jmp 0x40463e
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp + 8]
add dword [ecx + 0x34], eax
jmp 0x40463e
cmp dword [ebp - 0x3a0], 1
je 0x4045e5
cmp dword [ebp - 0x3a0], 2
je 0x4045fc
cmp dword [ebp - 0x3a0], 4
je 0x4045e5
jmp 0x40463e
lea eax, [ebp - 0x160]
push eax
call dword [0x40b658]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x404671
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x12
je 0x404671
jmp 0x404473
cmp dword [0x40b030], 0
jne 0x4049a3
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x4049a3
push 0
push 0
push 0x1009
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x50], 0
je 0x4049a3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x50]
mov eax, dword [eax]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x4049a3
mov eax, dword [ebp - 0x10c]
mov eax, dword [eax]
mov dword [ebp - 0x278], eax
mov eax, dword [ebp - 0x278]
mov eax, dword [eax]
push eax
push 0x40c834
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov byte [ebp - 0x110], al
mov dword [ebp - 0x13c], 5
mov dword [ebp - 0x134], 0
lea eax, [ebp - 0x260]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x13c]
push eax
push 0
push 0x1007
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
jne 0x404776
mov dword [ebp - 0x118], 0
mov eax, dword [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4049a3
mov eax, dword [ebp - 0x278]
mov eax, dword [eax + 4]
push eax
push 0x40c83c
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov byte [ebp - 0x110], al
push 0
lea eax, [ebp - 0x260]
push eax
push 1
mov eax, dword [ebp - 0x114]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
call fcn.00404fb4
add esp, 0x14
mov eax, dword [ebp - 0x278]
mov eax, dword [eax + 8]
mov dword [ebp - 0x3a4], eax
jmp 0x40481a
push str.Alloc
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x404846
push str.Free
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x404846
push str.Moveable
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x404846
cmp dword [ebp - 0x3a4], 1
je 0x4047d0
cmp dword [ebp - 0x3a4], 2
je 0x4047e7
cmp dword [ebp - 0x3a4], 4
je 0x4047fe
jmp 0x404846
push 0
lea eax, [ebp - 0x260]
push eax
push 2
mov eax, dword [ebp - 0x114]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
call fcn.00404fb4
add esp, 0x14
mov eax, dword [ebp - 0x278]
mov eax, dword [eax + 0xc]
push eax
push 0x40c85c
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov byte [ebp - 0x110], al
push 0
lea eax, [ebp - 0x260]
push eax
push 3
mov eax, dword [ebp - 0x114]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
call fcn.00404fb4
add esp, 0x14
mov byte [ebp - 0x260], 0
mov dword [ebp - 0x274], 1
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x27c], eax
jmp 0x4048dc
shl dword [ebp - 0x27c], 1
inc dword [ebp - 0x274]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x274]
cmp dword [eax + 0x28], ecx
jb 0x40493e
mov eax, dword [ebp - 0x278]
mov eax, dword [eax + 0x10]
test dword [ebp - 0x27c], eax
je 0x404939
mov eax, dword [ebp - 0x274]
push eax
push 0x40c860
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov byte [ebp - 0x110], al
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x4048cf
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x394], eax
mov eax, dword [ebp - 0x394]
mov byte [ebp + eax - 0x261], 0
push 0
lea eax, [ebp - 0x260]
push eax
push 4
mov eax, dword [ebp - 0x114]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
call fcn.00404fb4
add esp, 0x14
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x278]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x10c]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10c], eax
jmp 0x4046c1
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x40b030], 0
jne 0x404b89
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x404b89
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
push eax
push str._02d
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov byte [ebp - 0x110], al
mov dword [ebp - 0x13c], 1
mov dword [ebp - 0x134], 0
lea eax, [ebp - 0x260]
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x13c]
push eax
push 0
push 0x1007
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
je 0x404b7f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
push eax
push 0x40c86c
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov byte [ebp - 0x110], al
push 0
lea eax, [ebp - 0x260]
push eax
push 1
mov eax, dword [ebp - 0x114]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call fcn.00404fb4
add esp, 0x14
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
push eax
push 0x40c874
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov byte [ebp - 0x110], al
push 0
lea eax, [ebp - 0x260]
push eax
push 2
mov eax, dword [ebp - 0x114]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call fcn.00404fb4
add esp, 0x14
mov eax, dword [ebp + 8]
cmp dword [eax + 0x28], 1
jbe 0x404b5f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov ecx, dword [ebp + 8]
sub eax, dword [ecx + 0x38]
push eax
push str._11d
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov byte [ebp - 0x110], al
push 0
lea eax, [ebp - 0x260]
push eax
push 3
mov eax, dword [ebp - 0x114]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call fcn.00404fb4
add esp, 0x14
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp + 8]
sub eax, dword [ecx + 0x3c]
push eax
push str._10d
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov byte [ebp - 0x110], al
push 0
lea eax, [ebp - 0x260]
push eax
push 4
mov eax, dword [ebp - 0x114]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call fcn.00404fb4
add esp, 0x14
push 0
mov eax, dword [ebp - 0x114]
push eax
push 0x1013
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x404b89
mov dword [ebp - 0x118], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
push eax
push 0x40c888
push str.__s__Alloc:_d_Objs:_d
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov eax, dword [ebp + 8]
cmp dword [eax + 0x28], 1
jbe 0x404c06
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp + 8]
sub eax, dword [ecx + 0x3c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov ecx, dword [ebp + 8]
sub eax, dword [ecx + 0x38]
push eax
push str.DeltaAlloc:_d_DeltaObjs:_d_r_n
lea eax, [ebp - 0x390]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x390]
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x404c18
push 0x40c8c8
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x28], 1
jbe 0x404c49
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp + 8]
sub eax, dword [ecx + 0x3c]
mov dword [ebp - 0x398], eax
jmp 0x404c53
mov dword [ebp - 0x398], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x28], 1
jbe 0x404c77
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov ecx, dword [ebp + 8]
sub eax, dword [ecx + 0x38]
mov dword [ebp - 0x39c], eax
jmp 0x404c81
mov dword [ebp - 0x39c], 0
mov eax, dword [ebp - 0x398]
push eax
mov eax, dword [ebp - 0x39c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
push eax
push str._1_02d___2_8d___3_6d____4_8d_____5_6d__r_n
push 0x40b140
push 1
call fcn.00405db6
add esp, 0x20
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x404cd8
push 0
push 1
push 0xb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x108], 0
je 0x404cf2
mov eax, dword [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [ebp + 0x10], 0
je 0x404d2a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
push eax
push str.HW32
push str.__s__End_of_Snapshot__d..._r_n
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x40b254], 0
je 0x404d53
push 0
mov eax, dword [0x40b258]
push eax
push 2
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
jne 0x404d53
mov eax, 1
jmp 0x404d5d
pop edi
pop esi
pop ebx
leave
ret