Function at 0x401220
Capabilities:
Get process heap flags
Read file via mapping

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov esi, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
cmp eax, 0x4a
jne 0x401270
cmp dword [edx + 4], 0x30
je 0x401290
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._DefWindowProcW_16
sub esp, 0x10
jmp 0x401257
mov ebx, dword [edx + 8]
xor eax, eax
mov ecx, dword [ebx + eax]
mov dword [ebp + eax - 0x48], ecx
add eax, 4
cmp eax, 0x30
jb 0x401295
mov esi, dword [edx]
mov ebx, dword [ebp - 0x40]
cmp esi, 9
ja case.default.0x4012b2
jmp dword [esi*4 + 0x4141ec]
mov esi, 1
mov dword [esp], 0x40
mov eax, dword [ebp - 0x44]
xor edi, edi
mov dword [esp + 4], edi
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_OpenProcess]
sub esp, 0xc
test eax, eax
mov ebx, eax
je 0x401650
mov dword [esp], ebx
mov eax, 2
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x4c]
mov dword [esp + 0xc], eax
mov eax, 0xffffffff
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
jne 0x4015d0
test byte [0x413008], 2
jne 0x4016c8
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
jmp 0x401252
test byte [0x413008], 1
jne 0x4017b1
mov dword [esp], 0
mov esi, 1
mov dword [ebp - 0x34], 0
call sym._GetSystemMetrics_4
mov dword [ebp - 0x2c], eax
sub esp, 4
mov dword [esp], 1
call sym._GetSystemMetrics_4
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x28], eax
dec eax
sub esp, 4
mov dword [ebp - 0x30], eax
jmp 0x4012c5
test byte [0x413008], 1
mov esi, 3
je 0x4012c5
mov dword [esp], 0
mov eax, str.SHAppBarMessage_ABM_GETSTATE_:_stub_n
mov dword [esp + 0xc], eax
mov eax, str.handle_appbarmessage
mov dword [esp + 8], eax
mov eax, 0x413008
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x4012c5
mov eax, dword [section..data]
cmp eax, section..data
jne 0x4013fd
jmp 0x401823
mov eax, dword [eax]
cmp eax, section..data
je 0x401823
cmp ebx, dword [eax + 8]
jne 0x4013f0
xor esi, esi
jmp 0x4012c5
test byte [0x413008], 1
mov esi, 1
je 0x4012c5
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
test eax, eax
je 0x40187e
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 0x414119
call sym._wine_dbg_sprintf
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x38]
mov edx, 0x413008
mov dword [esp + 0x10], ebx
mov esi, 1
mov dword [esp + 4], edx
mov dword [esp], 0
mov dword [esp + 0x14], eax
mov eax, str.SHAppBarMessage_ABM_SETAUTOHIDEBAR__hwnd_p__edge_x__lparam_s_:_stub_n
mov dword [esp + 0xc], eax
mov eax, str.handle_appbarmessage
mov dword [esp + 8], eax
call sym._wine_dbg_log.constprop.0
jmp 0x4012c5
test byte [0x413008], 1
je 0x401402
mov eax, dword [ebp - 0x38]
mov ecx, str.SHAppBarMessage_ABM_GETAUTOHIDEBAR__hwnd_p__edge_x_:_stub_n
mov esi, 0x413008
mov dword [esp + 0x10], ebx
mov ebx, str.handle_appbarmessage
mov dword [esp + 4], esi
xor esi, esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 8], ebx
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x4012c5
mov eax, dword [ebp - 0x38]
cmp eax, 3
jbe 0x4014d8
test byte [0x413008], 4
jne 0x401893
lea edx, [ebp - 0x34]
mov eax, ebx
call sym._appbar_cliprect
mov esi, 1
jmp 0x4012c5
mov eax, dword [section..data]
jmp 0x401507
mov edx, dword [eax + 8]
mov edi, eax
mov eax, dword [eax]
cmp ebx, edx
je 0x401733
cmp eax, section..data
jne 0x4014f8
test byte [0x413008], 4
je 0x4012c5
mov dword [esp + 0x10], ebx
mov edx, str.removing_hwnd__p_not_on_the_list_n
mov ecx, str.handle_appbarmessage
mov dword [esp + 0xc], edx
mov ebx, 0x413008
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x4012c5
mov eax, dword [ebp - 0x38]
cmp eax, 3
ja 0x40176b
mov esi, dword [section..data]
cmp esi, section..data
jne 0x40157e
jmp 0x4017e1
mov esi, dword [esi]
cmp esi, section..data
je 0x4017e1
cmp ebx, dword [esi + 8]
jne 0x401570
lea edx, [ebp - 0x34]
mov eax, ebx
call sym._appbar_cliprect
mov eax, dword [esi + 0x14]
cmp dword [ebp - 0x34], eax
je 0x4018c7
mov eax, ebx
call sym._send_poschanged
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x24], 1
mov dword [esi + 0x20], eax
mov esi, 1
jmp 0x4012c5
mov dword [esp], ebx
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
call ebx
mov eax, 0x30
xor edx, edx
mov ecx, 2
sub esp, 4
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
sub esp, 0x14
test eax, eax
je 0x401690
mov dword [eax], esi
xor edx, edx
mov dword [eax + 4], 0
mov ecx, dword [ebp + edx - 0x40]
mov dword [eax + edx + 8], ecx
add edx, 4
cmp edx, 0x28
jb 0x40161e
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
sub esp, 4
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call ebx
sub esp, 4
jmp 0x401252
test byte [0x413008], 2
je 0x401252
mov edx, str.couldnt_open_calling_process_n
mov ecx, str.appbar_wndproc
mov dword [esp + 0xc], edx
mov ebx, 0x413008
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401252
test byte [0x413008], 2
je 0x40163a
mov dword [esp], 1
mov eax, str.couldnt_map_view_of_file_n
mov dword [esp + 0xc], eax
mov eax, str.appbar_wndproc
mov dword [esp + 8], eax
mov eax, 0x413008
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x40163a
mov esi, str.couldnt_duplicate_handle_n
mov edi, str.appbar_wndproc
mov dword [esp + 0xc], esi
mov eax, 0x413008
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401339
test byte [0x413008], 1
je 0x401402
mov dword [esp + 0x10], esi
mov eax, str.SHAppBarMessage__lx__unimplemented_n
xor esi, esi
mov dword [esp + 0xc], eax
mov eax, str.handle_appbarmessage
mov dword [esp + 8], eax
mov eax, 0x413008
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x4012c5
mov edx, dword [edi + 4]
mov dword [eax + 4], edx
mov eax, dword [edi]
mov dword [edx], eax
mov eax, ebx
call sym._send_poschanged
xor edx, edx
mov dword [esp + 8], edi
mov dword [esp + 4], edx
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
jmp 0x4012c5
test byte [0x413008], 4
mov esi, 1
je 0x4012c5
mov dword [esp + 0x10], eax
mov eax, str.handle_appbarmessage
mov edi, str.invalid_edge__i_for__p_n
mov dword [esp + 8], eax
mov eax, 0x413008
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x4012c5
mov dword [esp + 0x10], ebx
mov eax, str.handle_appbarmessage
mov edi, str.SHAppBarMessage_ABM_GETTASKBARPOS__hwnd_p_:_stub_n
mov dword [esp + 8], eax
mov eax, 0x413008
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x401357
test byte [0x413008], 4
je case.0x4012b2.6
mov dword [esp + 0x10], ebx
mov edx, str.app_sent_ABM_SETPOS_message_for__p_without_ABM_ADD_n
mov ecx, str.handle_appbarmessage
mov dword [esp + 0xc], edx
mov ebx, 0x413008
mov esi, 1
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x4012c5
mov ecx, 0x28
mov edi, 8
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
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_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x4018f0
mov dword [eax + 8], ebx
mov esi, 1
mov edx, dword [ebp - 0x3c]
mov dword [eax], section..data
mov dword [eax + 0xc], edx
mov edx, dword [0x413004]
mov dword [eax + 4], edx
mov dword [edx], eax
mov dword [0x413004], eax
jmp 0x4012c5
mov dword [esp + 4], edx
mov dword [esp], 0x414122
call sym._wine_dbg_sprintf
jmp 0x40143d
mov dword [esp + 0x10], eax
mov eax, str.invalid_edge__i_for__p_n
mov dword [esp + 0xc], eax
mov eax, str.handle_appbarmessage
mov dword [esp + 8], eax
mov eax, 0x413008
mov dword [esp + 0x14], ebx
mov dword [esp + 4], eax
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x4014d8
mov eax, dword [esi + 0x1c]
cmp dword [ebp - 0x2c], eax
jne 0x401599
mov eax, dword [esi + 0x18]
cmp dword [ebp - 0x30], eax
jne 0x401599
mov eax, dword [esi + 0x20]
cmp dword [ebp - 0x28], eax
jne 0x401599
jmp 0x4015a0
test byte [0x413008], 2
je 0x401402
mov dword [esp + 0xc], section..rdata
mov dword [esp + 8], str.handle_appbarmessage
mov dword [esp + 4], 0x413008
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4012c5