Function at 0x4024d8
Capabilities:
Read file via mapping

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
cmp dword [edi + 4], 0x4a
mov edx, dword [edi + 0xc]
jne 0x402300
cmp dword [edx + 4], 0x30
je 0x402318
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
jmp dword [sym.imp.user32.dll_DefWindowProcW]
mov eax, dword [edx + 8]
mov esi, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0x40], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x3c], ecx
mov ebx, dword [eax + 8]
mov dword [ebp - 0x38], ebx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x34], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x30], ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x28], ecx
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x14], eax
cmp esi, 9
ja case.default.0x40236d
jmp dword [esi*4 + 0x4141ec]
mov esi, 1
mov eax, dword [ebp - 0x3c]
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 0x4027a0
lea eax, [ebp - 0x44]
mov dword [esp + 0x18], 2
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x40]
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 0x4026f0
test byte [0x4130b4], 2
jne 0x402818
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
jmp 0x4022e3
test byte [0x4130b4], 1
jne 0x402928
mov ebx, dword [sym.imp.user32.dll_GetSystemMetrics]
mov dword [ebp - 0x2c], 0
mov esi, 1
mov dword [esp], 0
call ebx
sub esp, 4
mov dword [ebp - 0x24], eax
mov dword [esp], 1
call ebx
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x20], eax
dec eax
sub esp, 4
mov dword [ebp - 0x28], eax
jmp 0x40237d
mov esi, 3
test byte [0x4130b4], 1
je 0x40237d
mov dword [esp + 0xc], str.SHAppBarMessage_ABM_GETSTATE_:_stub_n
mov dword [esp + 8], str.handle_appbarmessage
mov dword [esp + 4], 0x4130b4
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40237d
mov eax, dword [0x413134]
cmp eax, 0x413134
jne 0x4024c5
jmp 0x402994
mov eax, dword [eax]
cmp eax, 0x413134
je 0x402994
cmp ebx, dword [eax + 8]
jne 0x4024b8
xor esi, esi
jmp 0x40237d
mov esi, 1
test byte [0x4130b4], 1
je 0x40237d
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
test eax, eax
je 0x402a0b
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 - 0x30]
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], 0x4130b4
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40237d
mov eax, dword [ebp - 0x30]
cmp eax, 3
jbe 0x402565
test byte [0x4130b4], 4
jne 0x4029da
lea edx, [ebp - 0x2c]
mov eax, ebx
mov esi, 1
call sym._appbar_cliprect
jmp 0x40237d
test byte [0x4130b4], 1
je 0x4024ca
mov eax, dword [ebp - 0x30]
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], 0x4130b4
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40237d
mov eax, dword [ebp - 0x30]
cmp eax, 3
ja 0x4028e5
mov esi, dword [0x413134]
cmp esi, 0x413134
jne 0x4025fe
jmp 0x402955
mov esi, dword [esi]
cmp esi, 0x413134
je 0x402955
cmp ebx, dword [esi + 8]
jne 0x4025f0
mov eax, ebx
lea edx, [ebp - 0x2c]
call sym._appbar_cliprect
mov eax, dword [esi + 0x14]
cmp dword [ebp - 0x2c], eax
je 0x402a20
mov edi, dword [0x413134]
cmp edi, 0x413134
je 0x402664
lea esi, cs:[esi]
nop
mov eax, dword [edi + 8]
cmp ebx, eax
je 0x40265a
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, 0x413134
jne 0x402630
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x24], 1
mov dword [esi + 0x20], eax
mov esi, 1
jmp 0x40237d
mov eax, dword [0x413134]
jmp 0x4026af
mov edx, dword [eax + 8]
mov edi, eax
mov eax, dword [eax]
cmp ebx, edx
je 0x40287d
cmp eax, 0x413134
jne 0x4026a0
test byte [0x4130b4], 4
je 0x40237d
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], 0x4130b4
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x40237d
mov dword [esp], ebx
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
call ebx
mov eax, dword [ebp - 0x44]
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 0x4027e0
mov dword [eax], esi
mov dword [eax + 4], 0
mov edx, dword [ebp - 0x38]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x34]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x30]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x2c]
mov dword [eax + 0x14], edx
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x1c], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x24], edx
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x28], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x2c], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
sub esp, 4
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call ebx
sub esp, 4
jmp 0x4022e3
test byte [0x4130b4], 2
je 0x4022e3
mov dword [esp + 0xc], str.couldnt_open_calling_process_n
mov dword [esp + 8], str.appbar_wndproc
mov dword [esp + 4], 0x4130b4
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4022e3
test byte [0x4130b4], 2
je 0x402786
mov dword [esp + 0xc], str.couldnt_map_view_of_file_n
mov dword [esp + 8], str.appbar_wndproc
mov dword [esp + 4], 0x4130b4
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x402786
mov dword [esp + 0xc], str.couldnt_duplicate_handle_n
mov dword [esp + 8], str.appbar_wndproc
mov dword [esp + 4], 0x4130b4
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4023f5
test byte [0x4130b4], 1
je 0x4024ca
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], 0x4130b4
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40237d
mov edx, dword [edi + 4]
mov dword [eax + 4], edx
mov eax, dword [edi]
mov dword [edx], eax
mov edx, dword [0x413134]
cmp edx, 0x413134
je 0x4028d7
mov dword [ebp - 0x48], esi
mov esi, edx
lea esi, [esi]
mov eax, dword [esi + 8]
cmp ebx, eax
je 0x4028ca
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, 0x413134
jne 0x4028a0
mov esi, dword [ebp - 0x48]
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x40237d
mov esi, 1
test byte [0x4130b4], 4
je 0x40237d
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], 0x4130b4
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x40237d
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], 0x4130b4
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40241d
test byte [0x4130b4], 4
je case.0x40236d.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], 0x4130b4
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x40237d
mov dword [esp + 4], 0x28
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
test eax, eax
je 0x402a49
mov edx, dword [ebp - 0x34]
mov dword [eax + 8], ebx
mov esi, 1
mov dword [eax], 0x413134
mov dword [eax + 0xc], edx
mov edx, dword [0x413138]
mov dword [eax + 4], edx
mov dword [edx], eax
mov dword [0x413138], eax
jmp 0x40237d
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], 0x4130b4
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x402565
mov dword [esp + 4], edx
mov dword [esp], 0x414122
call sym._wine_dbg_sprintf
jmp 0x40250c
mov eax, dword [esi + 0x1c]
cmp dword [ebp - 0x24], eax
jne 0x402619
mov eax, dword [esi + 0x18]
cmp dword [ebp - 0x28], eax
jne 0x402619
mov eax, dword [esi + 0x20]
cmp dword [ebp - 0x20], eax
jne 0x402619
jmp 0x402664
test byte [0x4130b4], 2
je 0x4024ca
mov dword [esp + 0xc], section..rdata
mov dword [esp + 8], str.handle_appbarmessage
mov dword [esp + 4], 0x4130b4
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x40237d