Function at 0x402410
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 0x402450
cmp dword [edx + 4], 0x30
je 0x402480
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.0x4024d5
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 0x402900
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 0x402850
test byte [0x4120b4], 2
jne 0x402978
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
jmp 0x40243a
test byte [0x4120b4], 1
jne 0x402aa3
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 0x4024e5
mov esi, 3
test byte [0x4120b4], 1
je 0x4024e5
mov dword [esp + 0xc], str.SHAppBarMessage_ABM_GETSTATE_:_stub_n
mov dword [esp + 8], str.handle_appbarmessage
mov dword [esp + 4], 0x4120b4
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x4024e5
mov eax, dword [0x412138]
cmp eax, 0x412138
jne 0x402625
jmp 0x402b0f
mov eax, dword [eax]
cmp eax, 0x412138
je 0x402b0f
cmp ebx, dword [eax + 8]
jne 0x402618
xor esi, esi
jmp 0x4024e5
mov esi, 1
test byte [0x4120b4], 1
je 0x4024e5
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
test eax, eax
je 0x402b99
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], 0x4120b4
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x4024e5
mov eax, dword [ebp - 0x38]
cmp eax, 3
jbe 0x4026c5
test byte [0x4120b4], 4
jne 0x402b68
lea edx, [ebp - 0x34]
mov eax, ebx
mov esi, 1
call sym._appbar_cliprect
jmp 0x4024e5
test byte [0x4120b4], 1
je 0x40262a
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], 0x4120b4
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x4024e5
mov eax, dword [ebp - 0x38]
cmp eax, 3
ja 0x402a60
mov esi, dword [0x412138]
cmp esi, 0x412138
jne 0x40275e
jmp 0x402ad0
mov esi, dword [esi]
cmp esi, 0x412138
je 0x402ad0
cmp ebx, dword [esi + 8]
jne 0x402750
mov eax, ebx
lea edx, [ebp - 0x34]
call sym._appbar_cliprect
mov eax, dword [esi + 0x14]
cmp dword [ebp - 0x34], eax
je 0x402bae
mov edi, dword [0x412138]
cmp edi, 0x412138
je 0x4027c4
lea esi, [esi]
nop
mov eax, dword [edi + 8]
cmp ebx, eax
je 0x4027ba
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, 0x412138
jne 0x402790
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 0x4024e5
mov eax, dword [0x412138]
jmp 0x40280f
mov edx, dword [eax + 8]
mov edi, eax
mov eax, dword [eax]
cmp ebx, edx
je 0x4029dd
cmp eax, 0x412138
jne 0x402800
test byte [0x4120b4], 4
je 0x4024e5
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], 0x4120b4
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x4024e5
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 0x402940
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 0x40243a
test byte [0x4120b4], 2
je 0x40243a
mov dword [esp + 0xc], str.couldnt_open_calling_process_n
mov dword [esp + 8], str.appbar_wndproc
mov dword [esp + 4], 0x4120b4
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x40243a
test byte [0x4120b4], 2
je 0x4028e6
mov dword [esp + 0xc], str.couldnt_map_view_of_file_n
mov dword [esp + 8], str.appbar_wndproc
mov dword [esp + 4], 0x4120b4
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4028e6
mov dword [esp + 0xc], str.couldnt_duplicate_handle_n
mov dword [esp + 8], str.appbar_wndproc
mov dword [esp + 4], 0x4120b4
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x40255d
test byte [0x4120b4], 1
je 0x40262a
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], 0x4120b4
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x4024e5
mov edx, dword [edi + 4]
mov dword [eax + 4], edx
mov eax, dword [edi]
mov dword [edx], eax
mov edx, dword [0x412138]
cmp edx, 0x412138
je 0x402a37
mov dword [ebp - 0x5c], esi
mov esi, edx
lea esi, [esi]
mov eax, dword [esi + 8]
cmp ebx, eax
je 0x402a2a
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, 0x412138
jne 0x402a00
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 0x4024e5
mov esi, 1
test byte [0x4120b4], 4
je 0x4024e5
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], 0x4120b4
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x4024e5
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], 0x4120b4
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40257d
test byte [0x4120b4], 4
je case.0x4024d5.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], 0x4120b4
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x4024e5
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 0x402bd7
mov edx, dword [ebp - 0x3c]
mov dword [eax + 8], ebx
mov esi, 1
mov dword [eax], 0x412138
mov dword [eax + 0xc], edx
mov edx, dword [0x41213c]
mov dword [eax + 4], edx
mov dword [edx], eax
mov dword [0x41213c], eax
jmp 0x4024e5
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], 0x4120b4
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x4026c5
mov dword [esp + 4], edx
mov dword [esp], 0x413122
call sym._wine_dbg_sprintf
jmp 0x40266c
mov eax, dword [esi + 0x1c]
cmp dword [ebp - 0x2c], eax
jne 0x402779
mov eax, dword [esi + 0x18]
cmp dword [ebp - 0x30], eax
jne 0x402779
mov eax, dword [esi + 0x20]
cmp dword [ebp - 0x28], eax
jne 0x402779
jmp 0x4027c4
test byte [0x4120b4], 2
je 0x40262a
mov dword [esp + 0xc], section..rdata
mov dword [esp + 8], str.handle_appbarmessage
mov dword [esp + 4], 0x4120b4
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4024e5