Function at 0x407a80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46c4c6
mov eax, dword fs:[0]
push eax
sub esp, 0x100
push ebx
push esi
push edi
mov eax, dword [0x488e40]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0xb4], 4
jne 0x407ae6
call fcn.004245f0
mov dword [ebx + 0x23c], eax
mov eax, 1
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0xd8]
mov eax, dword [eax - 0xc]
test eax, eax
lea esi, [ebx + 0xd8]
mov dword [esp + 0x14], esi
jne 0x407b3c
mov ecx, dword [ebx + 0xb8]
cmp dword [ecx - 0xc], eax
jne 0x407b3c
cmp byte [ebx + 0xf8], al
jne 0x407b30
cmp dword [ebx + 0x138], eax
jne 0x407b30
cmp dword [ebx + 0x13c], eax
jne 0x407b30
cmp dword [ebx + 0x140], eax
jne 0x407b30
cmp dword [ebx + 0x144], eax
je 0x407b3c
push str.You_must_specify_a_file_to_open_when_using_the___c_____od_____ot_____of___and___oc__options.
mov ecx, esi
call fcn.0040a020
mov edx, dword [esi]
cmp dword [edx - 0xc], 0
jne 0x407b6e
mov eax, dword [ebx + 0xb8]
cmp dword [eax - 0xc], 0
jne 0x407b6e
cmp byte [ebx + 0xf9], 0
jne 0x407b62
cmp dword [ebx + 0x134], 0
je 0x407b6e
push str.You_must_specify_a_module_to_open_when_using_the___pd__and___pb__options.
mov ecx, esi
call fcn.0040a020
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
je 0x407bc3
cmp byte [ebx + 0xdc], 0
jne 0x407ed5
or dword [0x48d518], 0x10000
push 0x3c
push str._r_n_r_nWould_you_like_to_view_help_on_the_command_line_options_
mov ecx, esi
call fcn.00409c60
mov eax, dword [esi]
push 0x14
push str.Dependency_Walker_Command_Line_Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x407f8b
mov byte [ebx + 0xdc], 1
cmp byte [ebx + 0xdc], 0
jne 0x407ed5
mov ecx, dword [ebx + 0x148]
test ecx, ecx
je 0x407c11
lea edx, [ebx + 0x23c]
push edx
call fcn.004249b0
add esp, 4
test al, al
jne 0x407c1c
or dword [0x48d518], 0x10000
xor eax, eax
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004245f0
mov dword [ebx + 0x23c], eax
mov esi, ebx
call fcn.00407140
cmp byte [ebx + 0xf8], 0
je 0x407ac9
lea ecx, [esp + 0x3c]
call fcn.004350bf
mov dword [esp + 0x3c], vtable.CRichEditCtrl.0
mov byte [esp + 0x90], 1
mov byte [esp + 0x91], 0
xor esi, esi
push esi
push esi
mov dword [esp + 0x120], esi
mov eax, 0x64
push esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x2c]
push eax
push 0x804
push 0x4727f1
push 0x475b14
push esi
lea ecx, [esp + 0x5c]
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
call dword [0x46fcd4]
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ecx, dword [esp + 0x5c]
push esi
push eax
push 0x30
push ecx
call edi
mov edx, dword [esp + 0x5c]
push 0x7ffffffe
push esi
push 0x435
push edx
call edi
lea edx, [esp + 0x3c]
mov ecx, 0x408040
lea eax, [esp + 0x94]
call fcn.00426900
push esi
push 0x8000080
push 3
push esi
push 1
mov byte [esp + 0x12c], 1
mov eax, dword [ebx + 0xb8]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], eax
je 0x407d95
push eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407d8e
cmp dword [esp + 0x1c], 4
jne 0x407d86
cmp dword [esp + 0x18], 0x495744
jne 0x407d8e
cmp byte [ebx + 0xf9], 0
je 0x407fa5
mov ecx, dword [esp + 0x14]
push 0x52
push str.The___pb__option_cannot_be_used_when_opening_a_Dependency_Walker_Image__DWI__file.
call fcn.0040a0a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ebx, [esp + 0x94]
mov byte [esp + 0x118], 0
call fcn.00426990
lea ecx, [esp + 0x3c]
mov dword [esp + 0x118], 0xffffffff
call fcn.0043eaa5
mov ebx, dword [ebp + 8]
mov esi, dword [esp + 0x14]
jmp 0x407b74
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0xb8]
mov ecx, dword [ebx + 0x23c]
push eax
call fcn.004246b0
mov edx, dword [ebx + 0xb8]
add esp, 4
lea esi, [esp + 0x94]
mov dword [esp + 0x14], eax
call fcn.00426a90
cmp byte [ebx + 0xf9], 0
je 0x407ea5
mov eax, dword [ebx + 0x128]
mov ecx, dword [ebx + 0x124]
neg eax
sbb eax, eax
mov edx, dword [ebx + 0x120]
and eax, 0x1000
neg ecx
sbb ecx, ecx
and ecx, 0x800
or eax, ecx
mov ecx, dword [ebx + 0x11c]
neg edx
sbb edx, edx
and edx, 0x400
or eax, edx
mov edx, dword [ebx + 0x118]
neg ecx
sbb ecx, ecx
and ecx, 0x200
or eax, ecx
mov ecx, dword [ebx + 0x114]
neg edx
sbb edx, edx
and edx, 0x100
or eax, edx
mov edx, dword [ebx + 0x10c]
neg ecx
sbb ecx, ecx
and ecx, 0x80
or eax, ecx
mov ecx, dword [ebx + 0x110]
neg edx
sbb edx, edx
and edx, 0x40
or eax, edx
mov edx, dword [ebx + 0x108]
neg ecx
sbb ecx, ecx
and ecx, 0x20
or eax, ecx
mov ecx, dword [ebx + 0x104]
neg edx
sbb edx, edx
and edx, 0x10
or eax, edx
mov edx, dword [ebx + 0x100]
neg ecx
sbb ecx, ecx
and ecx, 8
or eax, ecx
mov ecx, dword [ebx + 0xfc]
neg edx
sbb edx, edx
and edx, 4
or eax, edx
mov edx, dword [ebx + 0x130]
neg ecx
sbb ecx, ecx
and ecx, 2
or eax, ecx
mov ecx, dword [ebx + 0x134]
push eax
push edx
mov edi, esi
call fcn.00426b00
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x40]
mov edx, ebx
call fcn.00407690
lea ecx, [esp + 0x14]
push ecx
call fcn.00424df0
add esp, 4
mov dword [esp + 0x104], 0
jmp 0x407fc3
or dword [0x48d518], 0x10000
mov edi, ebx
call fcn.00408090
mov edx, dword [ebx + 0x64]
push 0x2006a
push 0xf
push edx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.0042f7f9
mov esi, eax
test esi, esi
je 0x407f7d
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x407f8b
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
lea ebx, [ebx]
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call edi
test eax, eax
je 0x407f8b
lea ecx, [esp + 0x20]
push ecx
push 0xfd
push 0
push 0
call fcn.0042f7f9
test eax, eax
jne 0x407f5a
lea edx, [esp + 0x20]
push edx
call ebx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x407f20
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xffffffffffffffff
push 0
push 0xf107
call fcn.00441f74
xor eax, eax
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0xb8]
push esi
lea edx, [esp + 0x98]
call fcn.00427fe0
test eax, eax
jne 0x408005
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ebx, [esp + 0x94]
mov byte [esp + 0x118], 0
call fcn.00426990
lea ecx, [esp + 0x3c]
mov dword [esp + 0x118], 0xffffffff
call fcn.0043eaa5
xor eax, eax
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x104]
mov eax, esi
lea edx, [esp + 0x3c]
mov dword [esp + 0x14], ecx
call fcn.004244e0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x94]
push edx
jmp 0x407ead