Function at 0x405b26
Capabilities:
Create process on windows
Get file attributes

Disassembly:
push 0x148
mov eax, 0x40b846
call fcn.0040a285
mov esi, ecx
xor ebx, ebx
inc ebx
cmp dword [ebp + 8], 4
jne 0x405ce7
mov edi, dword [ebp + 0xc]
cmp edi, 0x200
je 0x405f00
cmp edi, 0x201
je 0x405e75
push 5
pop ecx
cmp edi, 0x203
je 0x405bd9
cmp edi, 0x204
je 0x405c88
cmp edi, 0x402
je 0x405c7f
lea eax, [edi - 0x403]
cmp eax, 2
ja 0x405ce7
mov eax, dword [esi + 0x24a4]
cmp eax, ecx
mov dword [esi + 0x24a4], ecx
mov ecx, esi
mov dword [esi + 0x24a0], eax
je 0x405bbf
push eax
call fcn.00403fc2
test al, al
jne 0x405bcd
mov dword [esi + 0x24a0], 5
jmp 0x405bcd
mov eax, dword [esi + 0x2494]
push ebx
push eax
push eax
call fcn.00405226
cmp edi, 0x405
jne 0x405ce7
xor ebx, ebx
cmp byte [esi + 0x2508], bl
je 0x405bf7
push 0x93
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_KillTimer]
mov byte [esi + 0x2508], bl
push ebx
mov ecx, esi
call fcn.004020a4
mov ecx, 0x102
mov byte [ebp - 0x125], bl
cmp dword [esi + 0x2514], ebx
je 0x405dd7
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x124], 0x410354
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], ecx
xor edi, edi
lea ecx, [ebp - 0x124]
push edi
mov dword [ebp - 4], edi
call fcn.004060ed
mov ecx, dword [esi + 0x2514]
lea edx, [ebp - 0x124]
xor eax, eax
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x12c]
push edx
call dword [eax + 0xa8]
cmp dword [ebp - 0x12c], 0xffffffff
jne 0x405c9a
xor eax, eax
inc eax
mov byte [ebp - 0x125], al
jmp 0x405caa
mov ecx, esi
call fcn.00403cdc
jmp 0x405ce7
push 0
mov ecx, esi
call fcn.004020a4
mov ecx, esi
call fcn.004042e5
jmp 0x405ce7
cmp dword [ebp - 0x12c], 0
push 1
movzx ebx, bl
pop eax
cmovg ebx, eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x120], eax
je 0x405cc7
push dword [ebp - 0x120]
call fcn.00405288
cmp byte [ebp - 0x125], 0
je 0x405cf1
mov ecx, dword [esi + 0x2514]
test ecx, ecx
je 0x405ce4
mov eax, dword [ecx]
push edi
push edi
call dword [eax + 0xac]
xor ebx, ebx
inc ebx
mov al, bl
call fcn.0040a244
ret 8
test bl, bl
je 0x405dd2
cmp dword [esi + 0x2514], 0
je 0x405ce4
mov ecx, 0x102
mov dword [ebp - 0x124], 0x410354
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], ecx
xor ebx, ebx
mov dword [ebp - 4], 2
push ebx
lea ecx, [ebp - 0x124]
call fcn.004060ed
mov ecx, dword [esi + 0x2514]
lea edx, [ebp - 0x124]
mov dword [ebp - 0x12c], ebx
push edx
lea edx, [ebp - 0x12c]
mov dword [ebp - 4], 3
mov eax, dword [ecx]
push edx
call dword [eax + 0xa8]
push dword [ebp - 0x120]
call fcn.004058e9
test eax, eax
je 0x405da0
push dword [ebp - 0x120]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x405da0
xor eax, eax
inc eax
push eax
push ebx
push ebx
push dword [ebp - 0x120]
push str.open
push dword [esi + 0xc]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esi + 0x2514]
push ebx
push ebx
mov eax, dword [ecx]
call dword [eax + 0xac]
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x120], eax
je 0x405ce4
push dword [ebp - 0x120]
call fcn.00405288
jmp 0x405ce4
mov ecx, 0x102
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x124], 0x410354
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], ecx
xor ebx, ebx
mov dword [ebp - 4], 4
push ebx
lea ecx, [ebp - 0x124]
call fcn.004060ed
lea eax, [ebp - 0x124]
mov dword [ebp - 4], 5
push ebx
push eax
cmp byte [esi + 0x248d], bl
je 0x405e4b
cmp byte [esi + 0x248f], bl
je 0x405e34
push str._repairdb
jmp 0x405e60
cmp byte [esi + 0x2490], 0
je 0x405e44
push str._repairdbsize
jmp 0x405e60
push str._repair
jmp 0x405e60
cmp byte [esi + 0x248e], 0
je 0x405e5b
push str._update
jmp 0x405e60
push 0x40c7fc
call fcn.00409e9c
push dword [ebp - 0x120]
call fcn.00403328
jmp 0x405db0
cmp byte [esi + 0x2508], 0
jne 0x405ce7
lea eax, [ebp - 0x140]
mov dword [ebp - 0x140], 0x14
push eax
call dword [sym.imp.USER32.dll_GetCursorInfo]
test eax, eax
jne 0x405ebd
push str.System_Error:_GetCursorInfo_failed
push 0x32
push 0x4b8
push 0x63386b72
call sub.Mso20Win32Client.dll_Ordinal_730
add esp, 0x10
xor al, al
jmp 0x405ce9
mov eax, dword [ebp - 0x134]
mov ecx, esi
mov dword [esi + 0x3e8], eax
mov eax, dword [ebp - 0x130]
push 0
mov dword [esi + 0x3ec], eax
call fcn.004020a4
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
push 0x93
push eax
mov ecx, esi
call fcn.004038fa
test al, al
je 0x405eb6
mov byte [esi + 0x2508], bl
jmp 0x405ce7
lea eax, [ebp - 0x154]
mov dword [ebp - 0x154], 0x14
push eax
call dword [sym.imp.USER32.dll_GetCursorInfo]
test eax, eax
je 0x405eb6
cmp dword [esi + 0x3e4], 0
mov eax, dword [ebp - 0x148]
mov dword [esi + 0x3e8], eax
mov eax, dword [ebp - 0x144]
mov dword [esi + 0x3ec], eax
jne 0x405ce7
cmp byte [esi + 0x24fd], 0
jne 0x405ce7
cmp byte [esi + 0x24fe], 0
jne 0x405ce7
cmp byte [esi + 0x24ff], 0
jne 0x405ce7
push 0x90
push 0xffffffffffffffff
mov ecx, esi
call fcn.004038fa
test al, al
je 0x405ce7
mov ecx, esi
call fcn.00402b7d
mov byte [esi + 0x24fd], bl
jmp 0x405ce7