Function at 0x401300
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
cmp dword [ebp + 0xc], 0x4a
mov edx, dword [ebp + 0x14]
jne 0x4011e0
cmp dword [edx + 4], 0x30
je 0x4011f0
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp dword [sym.imp.user32.dll_DefWindowProcW]
mov eax, dword [edx + 8]
mov ecx, dword [eax]
mov ebx, dword [eax + 8]
mov dword [ebp - 0x48], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ecx
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 eax, dword [eax + 0x2c]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [edx]
cmp eax, 9
ja case.default.0x401245
jmp dword [eax*4 + 0x4121ec]
mov eax, dword [ebp - 0x38]
cmp eax, 3
jbe 0x401265
test byte [global___dbch.2], 4
jne 0x40189b
lea edx, [ebp - 0x34]
mov eax, ebx
call dbg.appbar_cliprect
nop
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 0x401660
lea eax, [ebp - 0x4c]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xffffffff
mov eax, dword [ebp - 0x48]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
jne 0x4015b0
test byte [global___dbch.2], 2
jne 0x4016d8
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
jmp 0x4011c8
test byte [global___dbch.2], 1
jne 0x4017b5
mov dword [ebp - 0x34], 0
mov ebx, dword [sym.imp.user32.dll_GetSystemMetrics]
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
sub eax, 1
sub esp, 4
mov dword [ebp - 0x30], eax
jmp case.0x401245.6
test byte [global___dbch.2], 1
jne 0x4017e2
mov esi, 3
jmp 0x401275
mov eax, dword [section..data]
cmp eax, section..data
jne 0x401395
jmp 0x401845
mov eax, dword [eax]
cmp eax, section..data
je 0x401845
cmp ebx, dword [eax + 8]
jne 0x401388
xor esi, esi
jmp 0x401275
mov esi, dword [section..data]
cmp esi, section..data
jne 0x4013ce
jmp 0x40173d
mov esi, dword [esi]
cmp esi, section..data
je 0x40173d
cmp ebx, dword [esi + 8]
jne 0x4013c0
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov edx, dword [esi]
mov dword [eax], edx
mov edi, dword [section..data]
cmp edi, section..data
je 0x401424
lea esi, [esi]
mov eax, dword [edi + 8]
cmp ebx, eax
je 0x40141a
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 0x4013f0
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
jmp case.0x401245.6
test byte [global___dbch.2], 1
je 0x40139a
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], global___dbch.2
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x401275
mov ecx, dword [ebp - 0x38]
cmp ecx, 3
ja 0x401777
mov edi, dword [section..data]
cmp edi, section..data
je 0x40180b
mov esi, edi
jmp 0x4014b6
mov esi, dword [esi]
cmp esi, section..data
je 0x40180b
cmp ebx, dword [esi + 8]
jne 0x4014a8
mov eax, ebx
lea edx, [ebp - 0x34]
mov dword [ebp - 0x5c], ecx
call dbg.appbar_cliprect
mov eax, dword [esi + 0x14]
cmp dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x5c]
je 0x4018cc
mov dword [ebp - 0x5c], ecx
mov eax, dword [edi + 8]
cmp ebx, eax
je 0x401504
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov ecx, dword [edi + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [sym.imp.user32.dll_PostMessageW]
sub esp, 0x10
mov edi, dword [edi]
cmp edi, section..data
jne 0x4014da
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x24], 1
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 + 0x20], eax
jmp case.0x401245.6
test byte [global___dbch.2], 1
je case.0x401245.6
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
test eax, eax
je 0x401886
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], 0x412119
call sym._wine_dbg_sprintf
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x38]
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], global___dbch.2
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp case.0x401245.6
mov dword [esp], ebx
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
call ebx
sub esp, 4
mov dword [esp + 0x10], 0x30
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
sub esp, 0x14
test eax, eax
je 0x4016a0
mov edx, dword [ebp - 0x40]
mov dword [eax], esi
mov dword [eax + 4], 0
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 0x4011c8
test byte [global___dbch.2], 2
je 0x4011c8
mov dword [esp + 0xc], str.couldnt_open_calling_process_n
mov dword [esp + 8], str.appbar_wndproc
mov dword [esp + 4], global___dbch.2
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4011c8
test byte [global___dbch.2], 2
je 0x401646
mov dword [esp + 0xc], str.couldnt_map_view_of_file_n
mov dword [esp + 8], str.appbar_wndproc
mov dword [esp + 4], global___dbch.2
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401646
mov dword [esp + 0xc], str.couldnt_duplicate_handle_n
mov dword [esp + 8], str.appbar_wndproc
mov dword [esp + 4], global___dbch.2
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4012ed
test byte [global___dbch.2], 1
je 0x40139a
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [esp + 0xc], str.SHAppBarMessage__lx__unimplemented_n
mov dword [esp + 8], str.handle_appbarmessage
mov dword [esp + 4], global___dbch.2
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x401275
test byte [global___dbch.2], 4
je case.0x401245.6
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], global___dbch.2
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp case.0x401245.6
test byte [global___dbch.2], 4
je case.0x401245.6
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.invalid_edge__i_for__p_n
mov dword [esp + 8], str.handle_appbarmessage
mov dword [esp + 4], global___dbch.2
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp case.0x401245.6
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], global___dbch.2
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40130d
mov dword [esp + 0xc], str.SHAppBarMessage_ABM_GETSTATE_:_stub_n
mov dword [esp + 8], str.handle_appbarmessage
mov dword [esp + 4], global___dbch.2
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40135d
test byte [global___dbch.2], 4
je case.0x401245.6
mov dword [esp + 0x10], ebx
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], global___dbch.2
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp case.0x401245.6
mov dword [esp + 4], 0x28
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
test eax, eax
je 0x4018f5
mov edx, dword [ebp - 0x3c]
mov dword [eax + 8], ebx
mov dword [eax], section..data
mov dword [eax + 0xc], edx
mov edx, dword [0x411004]
mov dword [eax + 4], edx
mov dword [edx], eax
mov dword [0x411004], eax
jmp case.0x401245.6
mov dword [esp + 4], ecx
mov dword [esp], 0x412122
call sym._wine_dbg_sprintf
jmp 0x40156f
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], global___dbch.2
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x401265
mov eax, dword [esi + 0x1c]
cmp dword [ebp - 0x2c], eax
jne 0x4014d7
mov eax, dword [esi + 0x18]
cmp dword [ebp - 0x30], eax
jne 0x4014d7
mov eax, dword [esi + 0x20]
cmp dword [ebp - 0x28], eax
jne 0x4014d7
jmp 0x401511
test byte [global___dbch.2], 2
je 0x40139a
mov dword [esp + 0xc], section..rdata
xor esi, esi
mov dword [esp + 8], str.handle_appbarmessage
mov dword [esp + 4], global___dbch.2
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401275