Function at 0x404720
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a493
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x4382c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
dec eax
cmp eax, 0xe
ja case.default.0x404758
jmp dword [eax*4 + 0x4056f0]
test byte [ebp + 0x18], 3
je case.default.0x404758
mov esi, dword [ebp + 0x20]
test esi, esi
je case.default.0x404758
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
mov ecx, dword [ecx + 8]
push eax
call fcn.00403240
mov edx, eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
call fcn.00407580
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00405730
push esi
lea ecx, [ebp - 0x70]
call fcn.00402890
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp case.default.0x404758
test byte [ebp + 0x18], 1
je case.default.0x404758
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x48]
call fcn.0040e1e0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov edx, ecx
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 3
call fcn.0040e3a0
push dword [ebp - 0x58]
lea ecx, [ebp + 0x20]
call fcn.00405860
mov byte [ebp - 4], 4
cmp dword [0x43aa3c], 1
jl 0x40481f
mov eax, dword [ebp + 0x20]
mov dword [ebp + 0x18], str.Ping
cmp dword [eax - 0xc], 0
je 0x404817
mov dword [ebp + 0x18], eax
lea ecx, [ebp + 0x18]
call fcn.004075d0
lea ecx, [ebp + 0x20]
call fcn.004012e0
lea ecx, [ebp - 0x58]
call fcn.004028e0
jmp case.default.0x404758
test byte [ebp + 0x18], 3
je case.default.0x404758
mov esi, dword [ebp + 0x20]
test esi, esi
je case.default.0x404758
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x2c]
sub ecx, dword [eax + 0x28]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, 0x13
mov word [ebp - 0x60], cx
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 5
push esi
lea ecx, [ebp - 0x60]
call fcn.00402890
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp case.default.0x404758
test byte [ebp + 0x18], 1
je case.default.0x404758
mov edi, dword [ebp + 0x20]
test edi, edi
je case.default.0x404758
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x58]
call fcn.0040e1e0
mov edx, ecx
lea ecx, [ebp + 0x18]
call fcn.0040e360
test al, al
jne 0x4048e9
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 0xc]
cmp dword [ebp - 0x54], ecx
sbb eax, eax
and eax, 0xfffffffa
add eax, 0x8002000e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov esi, dword [ebp + 0x18]
test esi, esi
js 0x404ded
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 8]
mov eax, 0x66666667
mov ecx, dword [ebx + 0x2c]
sub ecx, dword [ebx + 0x28]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, esi
jbe 0x404ded
mov eax, dword [ebx + 0x28]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esi + esi*4]
mov esi, dword [eax + ecx*4 + 0xc]
xor eax, eax
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x50]
push eax
call ebx
test eax, eax
jns 0x40493f
push eax
call fcn.00401010
mov eax, 8
push esi
mov word [ebp - 0x50], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x404974
test esi, esi
je 0x404974
mov eax, 0xa
push 0x8007000e
mov word [ebp - 0x50], ax
mov dword [ebp - 0x48], 0x8007000e
call fcn.00401010
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 6
call fcn.00402890
lea eax, [ebp - 0x50]
push eax
call ebx
jmp case.default.0x404758
test byte [ebp + 0x18], 1
je case.default.0x404758
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x48]
call fcn.0040e1e0
mov edx, ecx
lea ecx, [ebp + 0x20]
call fcn.0040e360
test al, al
jne 0x4049dc
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 0xc]
cmp dword [ebp - 0x44], ecx
sbb eax, eax
and eax, 0xfffffffa
add eax, 0x8002000e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov esi, dword [ebp + 0x20]
test esi, esi
js 0x404ded
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x2c]
sub ecx, dword [eax + 0x28]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, esi
jbe 0x404ded
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 7
call fcn.0040e3a0
test al, al
jne 0x404a63
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 0xc]
cmp dword [ebp - 0x44], ecx
lea ecx, [ebp - 0x38]
sbb esi, esi
and esi, 0xfffffffa
call fcn.004028e0
lea eax, [esi - 0x7ffdfff2]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
push dword [ebp - 0x38]
lea ecx, [ebp + 0x18]
call fcn.00405860
mov byte [ebp - 4], 8
mov ecx, dword [ebp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.00402410
add eax, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xffffffff
mov byte [ebp - 4], 9
mov edx, dword [edi + 8]
lea esi, [esi + esi*4]
mov eax, dword [edx + 0x28]
add edx, 0x20
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x54], 0
call fcn.00405b40
mov eax, dword [edi + 8]
add esp, 4
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x54], 0
mov eax, dword [eax + esi*4 + 4]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0xa
mov eax, dword [edi + 8]
add eax, 0xc
push eax
call fcn.0040fac0
lea ecx, [ebp - 0x30]
call fcn.004104f0
lea ecx, [ebp + 0x18]
call fcn.004012e0
lea ecx, [ebp - 0x38]
call fcn.004028e0
jmp case.default.0x404758
test byte [ebp + 0x18], 1
je case.default.0x404758
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x58]
call fcn.0040e1e0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov edx, ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xc
call fcn.0040e3a0
test al, al
je 0x404d20
push dword [ebp - 0x48]
lea ecx, [ebp + 0x1c]
call fcn.00405860
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402410
add eax, 0x10
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0xffffffff
mov byte [ebp - 4], 0xe
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x18], eax
push 0x54
mov byte [ebp - 4], 0xf
call fcn.0041725d
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0x10
test eax, eax
je 0x404c0c
mov ecx, eax
call fcn.0040c520
jmp 0x404c0e
xor eax, eax
mov dword [ebp + 8], eax
test eax, eax
je 0x404c1c
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [ebp + 8]
push eax
lea edx, [ebp + 0x18]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x11
call fcn.0040f0f0
add esp, 4
test al, al
lea ecx, [ebp + 8]
sete bl
mov byte [ebp - 4], 0xf
call fcn.00405cf0
test bl, bl
je 0x404c8d
mov esi, dword [ebp - 0x54]
test esi, esi
jle 0x404c57
movzx esi, si
or esi, 0x80070000
lea ecx, [ebp + 0x18]
call fcn.004012e0
lea ecx, [ebp - 0x5c]
call fcn.004104f0
lea ecx, [ebp + 0x1c]
call fcn.004012e0
lea ecx, [ebp - 0x48]
call fcn.004028e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov edi, dword [ebp + 0x20]
test edi, edi
je 0x404cfb
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor eax, eax
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x40]
push eax
call ebx
test eax, eax
jns 0x404cb0
push eax
call fcn.00401010
mov esi, dword [ebp + 0x18]
mov eax, 8
push esi
mov word [ebp - 0x40], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x404ce8
test esi, esi
je 0x404ce8
mov eax, 0xa
push 0x8007000e
mov word [ebp - 0x40], ax
mov dword [ebp - 0x38], 0x8007000e
call fcn.00401010
push edi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x12
call fcn.00402890
lea eax, [ebp - 0x40]
push eax
call ebx
lea ecx, [ebp + 0x18]
call fcn.004012e0
lea ecx, [ebp - 0x5c]
call fcn.004104f0
lea ecx, [ebp + 0x1c]
call fcn.004012e0
lea ecx, [ebp - 0x48]
call fcn.004028e0
jmp case.default.0x404758
lea edx, [ebp - 0x58]
lea ecx, [ebp + 0x18]
call fcn.0040e360
test al, al
je 0x404e06
mov esi, dword [ebp + 0x18]
test esi, esi
js 0x404de5
mov eax, dword [ebp + 8]
mov edi, dword [eax + 8]
mov eax, 0x66666667
mov ecx, dword [edi + 0x2c]
sub ecx, dword [edi + 0x28]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, esi
jbe 0x404de5
mov eax, dword [edi + 0x28]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esi + esi*4]
mov esi, dword [eax + ecx*4 + 0x10]
xor eax, eax
mov word [ebp - 0x60], ax
lea eax, [ebp - 0x60]
push eax
call edi
test eax, eax
jns 0x404d89
push eax
call fcn.00401010
mov eax, 8
push esi
mov word [ebp - 0x60], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x404dbe
test esi, esi
je 0x404dbe
mov eax, 0xa
push 0x8007000e
mov word [ebp - 0x60], ax
mov dword [ebp - 0x58], 0x8007000e
call fcn.00401010
mov byte [ebp - 4], 0x13
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x404dd2
push eax
lea ecx, [ebp - 0x60]
call fcn.00402890
lea eax, [ebp - 0x60]
push eax
call edi
lea ecx, [ebp - 0x48]
call fcn.004028e0
jmp case.default.0x404758
lea ecx, [ebp - 0x48]
call fcn.004028e0
mov eax, 0x8002000b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 0xc]
cmp dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x48]
sbb esi, esi
and esi, 6
call fcn.004028e0
lea eax, [esi - 0x7ffdfff8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
test byte [ebp + 0x18], 1
je case.default.0x404758
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x58]
call fcn.0040e1e0
mov edx, ecx
lea ecx, [ebp + 0x18]
call fcn.0040e360
test al, al
je 0x4048bf
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.default.0x404758
test byte [ebp + 0x18], 1
je case.default.0x404758
mov esi, dword [ebp + 0x20]
test esi, esi
je case.default.0x404758
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x58]
call fcn.0040e1e0
mov edx, ecx
lea ecx, [ebp + 0x18]
call fcn.0040e360
test al, al
je 0x4048bf
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
lea eax, [ebp + 0x1c]
mov dword [ebp - 4], 0x14
mov edx, dword [ebp + 0x18]
push eax
lea ecx, [ebp + 0x20]
call fcn.0040e5d0
add esp, 4
lea edx, [ebp - 0x5c]
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 0x15
call fcn.0040e8c0
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x58]
je 0x404f24
mov eax, dword [eax + 0x10]
test eax, eax
je 0x404f24
mov ecx, 0x13
mov word [ebp - 0x50], cx
mov dword [ebp - 0x48], eax
push esi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x17
call fcn.00402890
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp + 0x20]
call fcn.004012e0
lea ecx, [ebp - 0x5c]
call fcn.00405f20
jmp case.default.0x404758
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x18], eax
push str._Error_getting_windows_handle_from_process_id___possibly_invalid_process_id
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0x16
call fcn.004031f0
mov ecx, dword [ebp + 0x24]
lea eax, [ebp + 0x18]
push eax
mov edx, 0x80070578
call fcn.00410020
add esp, 4
lea ecx, [ebp + 0x18]
call fcn.004012e0
lea ecx, [ebp + 0x20]
call fcn.004012e0
lea ecx, [ebp - 0x5c]
call fcn.00405f20
mov eax, 0x80020009
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
test byte [ebp + 0x18], 1
je case.default.0x404758
mov esi, dword [ebp + 0x20]
test esi, esi
je case.default.0x404758
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x58]
call fcn.0040e1e0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov edx, ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0x18
call fcn.0040e3a0
test al, al
jne 0x405003
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 0xc]
cmp dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x48]
sbb esi, esi
and esi, 0xfffffffa
call fcn.004028e0
lea eax, [esi - 0x7ffdfff2]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
push dword [ebp - 0x48]
lea ecx, [ebp + 0x20]
call fcn.00405860
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
lea edx, [ebp - 0x5c]
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 0x1a
call fcn.0040e8c0
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x58]
je 0x405081
mov eax, dword [eax + 0x10]
test eax, eax
je 0x405081
mov ecx, 0x13
mov word [ebp - 0x40], cx
mov dword [ebp - 0x38], eax
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x1c
call fcn.00402890
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x5c]
call fcn.00405f20
lea ecx, [ebp + 0x20]
call fcn.004012e0
lea ecx, [ebp - 0x48]
call fcn.004028e0
jmp case.default.0x404758
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x18], eax
push str._Error_getting_windows_handle_from_process_name___possibly_invalid_process_name
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0x1b
call fcn.004031f0
mov ecx, dword [ebp + 0x24]
lea eax, [ebp + 0x18]
push eax
mov edx, 0x80070578
call fcn.00410020
add esp, 4
lea ecx, [ebp + 0x18]
call fcn.004012e0
lea ecx, [ebp - 0x5c]
call fcn.00405f20
lea ecx, [ebp + 0x20]
call fcn.004012e0
lea ecx, [ebp - 0x48]
call fcn.004028e0
mov eax, 0x80020009
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
test byte [ebp + 0x18], 1
je case.default.0x404758
mov esi, dword [ebp + 0x20]
test esi, esi
je case.default.0x404758
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
jne 0x40516d
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x18], eax
push str._Error_getting_active_window
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0x1d
call fcn.004031f0
mov edx, 0x80070578
mov ecx, dword [ebp + 0x24]
lea eax, [ebp + 0x18]
push eax
call fcn.00410020
add esp, 4
lea ecx, [ebp + 0x18]
call fcn.004012e0
mov eax, 0x80020009
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov ecx, 0x13
mov word [ebp - 0x60], cx
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 0x1e
jmp 0x404879
test byte [ebp + 0x18], 1
je case.default.0x404758
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x58]
call fcn.0040e1e0
mov edx, ecx
lea ecx, [ebp + 0x18]
call fcn.0040e360
test al, al
je 0x4048bf
mov edi, dword [ebp + 0x18]
mov esi, dword [sym.imp.USER32.dll_ShowWindowAsync]
push 1
push edi
call esi
push 9
push edi
call esi
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne case.default.0x404758
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x18], eax
push str._Error_settting_window_as_top_most
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0x1f
call fcn.004031f0
mov edx, 0x80070057
jmp 0x40513d
test byte [ebp + 0x18], 1
je case.default.0x404758
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x58]
call fcn.0040e1e0
mov edx, ecx
lea ecx, [ebp + 0x18]
call fcn.0040e360
test al, al
je 0x4048bf
mov ecx, dword [ebp + 0x18]
call fcn.0040e550
test eax, eax
jne 0x405263
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x18], eax
push str._Error_getting_process_id_given_handle
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0x20
call fcn.004031f0
mov edx, 0x80070057
jmp 0x40513d
mov ecx, 3
mov word [ebp - 0x50], cx
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 0x21
push dword [ebp + 0x20]
lea ecx, [ebp - 0x50]
call fcn.00402890
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp case.default.0x404758
test byte [ebp + 0x18], 1
je case.default.0x404758
cmp dword [ebp + 0x20], 0
je case.default.0x404758
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x58]
call fcn.0040e1e0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0x22
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov edx, ecx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x24
call fcn.0040e3a0
test al, al
jne 0x405335
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 0xc]
cmp dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x2c]
sbb esi, esi
and esi, 0xfffffffa
call fcn.004028e0
lea ecx, [ebp - 0x38]
call fcn.004028e0
lea ecx, [ebp - 0x48]
call fcn.004028e0
lea eax, [esi - 0x7ffdfff2]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x38]
xor esi, esi
xor edi, edi
call fcn.0040e3a0
test al, al
je 0x40555b
push dword [ebp - 0x38]
lea ecx, [ebp + 8]
call fcn.00405860
mov byte [ebp - 4], 0x25
mov eax, dword [section..data]
mov ecx, section..data
mov dword [ebp + 0x1c], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x18], eax
lea eax, [ebp + 0x1c]
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x26
call fcn.00403130
push eax
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0x27
call fcn.00401440
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
cmp dword [eax - 0xc], edi
mov byte [ebp - 4], 0x26
setne bl
call fcn.004012e0
test bl, bl
je 0x405451
nop
push str.read
lea ecx, [ebp + 0x18]
call fcn.004031c0
test eax, eax
jne 0x4053c9
or esi, 0x80000000
jmp 0x405416
push str.write
lea ecx, [ebp + 0x18]
call fcn.004031c0
test eax, eax
jne 0x4053e2
or esi, 0x40000000
jmp 0x405416
push str.execute
lea ecx, [ebp + 0x18]
call fcn.004031c0
test eax, eax
jne 0x4053fb
or esi, 0x20000000
jmp 0x405416
push 0x433120
lea ecx, [ebp + 0x18]
call fcn.004031c0
test eax, eax
jne 0x4055df
or esi, 0x10000000
lea eax, [ebp + 0x1c]
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.00403130
push eax
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0x27
call fcn.00401440
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 0x26
setne bl
call fcn.004012e0
test bl, bl
jne 0x4053b0
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x2c]
call fcn.0040e3a0
test al, al
je 0x405543
push dword [ebp - 0x2c]
lea ecx, [ebp + 0xc]
call fcn.00405860
lea eax, [ebp + 0x1c]
push eax
push ecx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x28
push eax
lea ecx, [ebp + 0xc]
mov dword [ebp + 0x1c], 0
call fcn.00403130
push eax
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0x29
call fcn.00401440
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 0x28
setne bl
call fcn.004012e0
test bl, bl
je 0x40553b
jmp 0x4054c0
push str.shareread
lea ecx, [ebp + 0x18]
call fcn.004031c0
test eax, eax
jne 0x4054d6
or edi, 1
jmp 0x405504
push str.sharewrite
lea ecx, [ebp + 0x18]
call fcn.004031c0
test eax, eax
jne 0x4054ec
or edi, 2
jmp 0x405504
push str.sharedelete
lea ecx, [ebp + 0x18]
call fcn.004031c0
test eax, eax
jne 0x4055d7
or edi, 4
lea eax, [ebp + 0x1c]
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 0xc]
call fcn.00403130
push eax
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0x29
call fcn.00401440
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 0x28
setne bl
call fcn.004012e0
test bl, bl
jne 0x4054c0
lea ecx, [ebp + 0xc]
call fcn.004012e0
lea ecx, [ebp + 0x18]
call fcn.004012e0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x24
call fcn.004012e0
test esi, esi
jne 0x405560
mov esi, 0xc0000000
push 0
push 0x80
push 3
push 0
push edi
push esi
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x405620
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edx, esi
lea ecx, [ebp - 0x24]
call fcn.00410d70
mov ecx, eax
mov byte [ebp - 4], 0x2a
test esi, esi
jle 0x4055a4
movzx esi, si
or esi, 0x80070000
push ecx
mov ecx, dword [ebp + 0x24]
mov edx, esi
call fcn.00410020
add esp, 4
lea ecx, [ebp - 0x24]
call fcn.004012e0
lea ecx, [ebp - 0x2c]
call fcn.004028e0
lea ecx, [ebp - 0x38]
call fcn.004028e0
lea ecx, [ebp - 0x48]
call fcn.004028e0
jmp 0x405154
lea ecx, [ebp + 0xc]
call fcn.004012e0
lea ecx, [ebp + 0x18]
call fcn.004012e0
lea ecx, [ebp + 8]
call fcn.004012e0
lea ecx, [ebp - 0x2c]
call fcn.004028e0
lea ecx, [ebp - 0x38]
call fcn.004028e0
lea ecx, [ebp - 0x48]
call fcn.004028e0
mov eax, 0x80020008
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xb
mov word [ebp - 0x70], ax
or eax, 0xffffffff
mov word [ebp - 0x68], ax
mov byte [ebp - 4], 0x2b
push dword [ebp + 0x20]
lea ecx, [ebp - 0x70]
call fcn.00402890
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x2c]
call fcn.004028e0
lea ecx, [ebp - 0x38]
call fcn.004028e0
lea ecx, [ebp - 0x48]
call fcn.004028e0
jmp case.default.0x404758
test byte [ebp + 0x18], 3
je case.default.0x404758
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je case.default.0x404758
mov eax, dword [ebp + 8]
mov edx, 3
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x18]
mov word [ebp - 0x70], dx
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 0x2c
push ecx
jmp 0x4047a1
test byte [ebp + 0x18], 1
je case.default.0x404758
mov eax, dword [ebp + 0x1c]
cmp dword [eax + 8], 1
je 0x4056c1
mov eax, 0x8002000e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov edx, dword [eax]
cmp word [edx], 3
jne 0x405607
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov eax, dword [edx + 8]
mov dword [ecx + 0x18], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24