Function at 0x401480
Capabilities:
Read file via mapping

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov esi, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
cmp eax, 0x4a
jne 0x4011f0
cmp dword [edx + 4], 0x30
je 0x401220
lea esp, [ebp - 0x10]
mov eax, 1
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call dword [sym.imp.user32.dll_DefWindowProcW]
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, dword [edx + 8]
mov esi, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0x48], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x44], ecx
mov ebx, dword [eax + 8]
mov dword [ebp - 0x40], ebx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x38], ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x34], ecx
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x30], ecx
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x28], ecx
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x1c], eax
cmp esi, 9
ja case.default.0x401275
jmp dword [esi*4 + 0x4131ec]
mov esi, 1
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], 0
mov dword [esp], 0x40
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_OpenProcess]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x4016a0
lea eax, [ebp - 0x4c]
mov dword [esp + 0x18], 2
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
jne 0x4015f0
test byte [0x412008], 2
jne 0x401718
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
jmp 0x4011da
test byte [0x412008], 1
jne 0x401843
mov ebx, dword [sym.imp.user32.dll_GetSystemMetrics]
mov dword [ebp - 0x34], 0
mov esi, 1
mov dword [esp], 0
call ebx
sub esp, 4
mov dword [ebp - 0x2c], eax
mov dword [esp], 1
call ebx
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x28], eax
dec eax
sub esp, 4
mov dword [ebp - 0x30], eax
jmp 0x401285
mov esi, 3
test byte [0x412008], 1
je 0x401285
mov dword [esp + 0xc], str.SHAppBarMessage_ABM_GETSTATE_:_stub_n
mov dword [esp + 8], str.handle_appbarmessage
mov dword [esp + 4], 0x412008
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x401285
mov eax, dword [section..data]
cmp eax, section..data
jne 0x4013c5
jmp 0x4018af
mov eax, dword [eax]
cmp eax, section..data
je 0x4018af
cmp ebx, dword [eax + 8]
jne 0x4013b8
xor esi, esi
jmp 0x401285
mov esi, 1
test byte [0x412008], 1
je 0x401285
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
test eax, eax
je 0x401939
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 0x413119
call sym._wine_dbg_sprintf
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x38]
mov esi, 1
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.SHAppBarMessage_ABM_SETAUTOHIDEBAR__hwnd_p__edge_x__lparam_s_:_stub_n
mov dword [esp + 8], str.handle_appbarmessage
mov dword [esp + 4], 0x412008
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x401285
mov eax, dword [ebp - 0x38]
cmp eax, 3
jbe 0x401465
test byte [0x412008], 4
jne 0x401908
lea edx, [ebp - 0x34]
mov eax, ebx
mov esi, 1
call sym._appbar_cliprect
jmp 0x401285
test byte [0x412008], 1
je 0x4013ca
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x10], ebx
xor esi, esi
mov dword [esp + 0xc], str.SHAppBarMessage_ABM_GETAUTOHIDEBAR__hwnd_p__edge_x_:_stub_n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.handle_appbarmessage
mov dword [esp + 4], 0x412008
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x401285
mov eax, dword [ebp - 0x38]
cmp eax, 3
ja 0x401800
mov esi, dword [section..data]
cmp esi, section..data
jne 0x4014fe
jmp 0x401870
mov esi, dword [esi]
cmp esi, section..data
je 0x401870
cmp ebx, dword [esi + 8]
jne 0x4014f0
mov eax, ebx
lea edx, [ebp - 0x34]
call sym._appbar_cliprect
mov eax, dword [esi + 0x14]
cmp dword [ebp - 0x34], eax
je 0x40194e
mov edi, dword [section..data]
cmp edi, section..data
je 0x401564
lea esi, [esi]
nop
mov eax, dword [edi + 8]
cmp ebx, eax
je 0x40155a
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov edx, dword [edi + 0xc]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.user32.dll_PostMessageW]
sub esp, 0x10
mov edi, dword [edi]
cmp edi, section..data
jne 0x401530
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 0x401285
mov eax, dword [section..data]
jmp 0x4015af
mov edx, dword [eax + 8]
mov edi, eax
mov eax, dword [eax]
cmp ebx, edx
je 0x40177d
cmp eax, section..data
jne 0x4015a0
test byte [0x412008], 4
je 0x401285
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.removing_hwnd__p_not_on_the_list_n
mov dword [esp + 8], str.handle_appbarmessage
mov dword [esp + 4], 0x412008
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x401285
mov dword [esp], ebx
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
call ebx
mov eax, dword [ebp - 0x4c]
sub esp, 4
mov dword [esp + 0x10], 0x30
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
sub esp, 0x14
test eax, eax
je 0x4016e0
mov dword [eax], esi
mov dword [eax + 4], 0
mov edx, dword [ebp - 0x40]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x3c]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x38]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x34]
mov dword [eax + 0x14], edx
mov edx, dword [ebp - 0x30]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 0x2c]
mov dword [eax + 0x1c], edx
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x24], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x28], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x2c], edx
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 0x4011da
test byte [0x412008], 2
je 0x4011da
mov dword [esp + 0xc], str.couldnt_open_calling_process_n
mov dword [esp + 8], str.appbar_wndproc
mov dword [esp + 4], 0x412008
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4011da
test byte [0x412008], 2
je 0x401686
mov dword [esp + 0xc], str.couldnt_map_view_of_file_n
mov dword [esp + 8], str.appbar_wndproc
mov dword [esp + 4], 0x412008
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401686
mov dword [esp + 0xc], str.couldnt_duplicate_handle_n
mov dword [esp + 8], str.appbar_wndproc
mov dword [esp + 4], 0x412008
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4012fd
test byte [0x412008], 1
je 0x4013ca
mov dword [esp + 0x10], esi
xor esi, esi
mov dword [esp + 0xc], str.SHAppBarMessage__lx__unimplemented_n
mov dword [esp + 8], str.handle_appbarmessage
mov dword [esp + 4], 0x412008
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x401285
mov edx, dword [edi + 4]
mov dword [eax + 4], edx
mov eax, dword [edi]
mov dword [edx], eax
mov edx, dword [section..data]
cmp edx, section..data
je 0x4017d7
mov dword [ebp - 0x5c], esi
mov esi, edx
lea esi, [esi]
mov eax, dword [esi + 8]
cmp ebx, eax
je 0x4017ca
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov ecx, dword [esi + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [sym.imp.user32.dll_PostMessageW]
sub esp, 0x10
mov esi, dword [esi]
cmp esi, section..data
jne 0x4017a0
mov esi, dword [ebp - 0x5c]
mov dword [esp + 8], edi
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
jmp 0x401285
mov esi, 1
test byte [0x412008], 4
je 0x401285
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.invalid_edge__i_for__p_n
mov dword [esp + 8], str.handle_appbarmessage
mov dword [esp + 4], 0x412008
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x401285
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.SHAppBarMessage_ABM_GETTASKBARPOS__hwnd_p_:_stub_n
mov dword [esp + 8], str.handle_appbarmessage
mov dword [esp + 4], 0x412008
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40131d
test byte [0x412008], 4
je case.0x401275.6
mov dword [esp + 0x10], ebx
mov esi, 1
mov dword [esp + 0xc], str.app_sent_ABM_SETPOS_message_for__p_without_ABM_ADD_n
mov dword [esp + 8], str.handle_appbarmessage
mov dword [esp + 4], 0x412008
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x401285
mov dword [esp + 8], 0x28
mov dword [esp + 4], 8
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 0x401977
mov edx, dword [ebp - 0x3c]
mov dword [eax + 8], ebx
mov esi, 1
mov dword [eax], section..data
mov dword [eax + 0xc], edx
mov edx, dword [0x412004]
mov dword [eax + 4], edx
mov dword [edx], eax
mov dword [0x412004], eax
jmp 0x401285
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.invalid_edge__i_for__p_n
mov dword [esp + 8], str.handle_appbarmessage
mov dword [esp + 4], 0x412008
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x401465
mov dword [esp + 4], edx
mov dword [esp], 0x413122
call sym._wine_dbg_sprintf
jmp 0x40140c
mov eax, dword [esi + 0x1c]
cmp dword [ebp - 0x2c], eax
jne 0x401519
mov eax, dword [esi + 0x18]
cmp dword [ebp - 0x30], eax
jne 0x401519
mov eax, dword [esi + 0x20]
cmp dword [ebp - 0x28], eax
jne 0x401519
jmp 0x401564
test byte [0x412008], 2
je 0x4013ca
mov dword [esp + 0xc], section..rdata
mov dword [esp + 8], str.handle_appbarmessage
mov dword [esp + 4], 0x412008
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401285