Function at 0x4051f6
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429be0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x4392c0]
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.0x404708
jmp dword [eax*4 + 0x405660]
test byte [ebp + 0x18], 3
je case.default.0x404708
mov esi, dword [ebp + 0x20]
test esi, esi
je case.default.0x404708
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
mov ecx, dword [ecx + 8]
push eax
call fcn.00403210
mov edx, eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
call fcn.004074b0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004056a0
push esi
lea ecx, [ebp - 0x70]
call fcn.00402860
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp case.default.0x404708
test byte [ebp + 0x18], 1
je case.default.0x404708
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x48]
call fcn.0040db60
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov edx, ecx
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 3
call fcn.0040dd20
push dword [ebp - 0x58]
lea ecx, [ebp + 0x20]
call fcn.004057d0
mov byte [ebp - 4], 4
cmp dword [0x43bb1c], 1
jl 0x4047cf
mov eax, dword [ebp + 0x20]
mov dword [ebp + 0x18], str.Ping
cmp dword [eax - 0xc], 0
je 0x4047c7
mov dword [ebp + 0x18], eax
lea ecx, [ebp + 0x18]
call fcn.00407500
lea ecx, [ebp + 0x20]
call fcn.004012e0
lea ecx, [ebp - 0x58]
call fcn.004028b0
jmp case.default.0x404708
test byte [ebp + 0x18], 3
je case.default.0x404708
mov esi, dword [ebp + 0x20]
test esi, esi
je case.default.0x404708
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.00402860
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp case.default.0x404708
test byte [ebp + 0x18], 1
je case.default.0x404708
mov edi, dword [ebp + 0x20]
test edi, edi
je case.default.0x404708
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x58]
call fcn.0040db60
mov edx, ecx
lea ecx, [ebp + 0x18]
call fcn.0040dce0
test al, al
jne 0x404899
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 0x404d53
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 0x404d53
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 0x4048ef
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 0x404924
test esi, esi
je 0x404924
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.00402860
lea eax, [ebp - 0x50]
push eax
call ebx
jmp case.default.0x404708
test byte [ebp + 0x18], 1
je case.default.0x404708
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x48]
call fcn.0040db60
mov edx, ecx
lea ecx, [ebp + 0x20]
call fcn.0040dce0
test al, al
jne 0x40498c
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 0x404d53
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 0x404d53
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.0040dd20
test al, al
jne 0x404a13
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.004028b0
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.004057d0
mov byte [ebp - 4], 8
mov ecx, dword [ebp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.004023e0
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.00405ab0
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.0040f410
lea ecx, [ebp - 0x30]
call fcn.0040fe40
lea ecx, [ebp + 0x18]
call fcn.004012e0
lea ecx, [ebp - 0x38]
call fcn.004028b0
jmp case.default.0x404708
test byte [ebp + 0x18], 1
je case.default.0x404708
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x58]
call fcn.0040db60
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov edx, ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xc
call fcn.0040dd20
test al, al
je 0x404c86
push dword [ebp - 0x48]
lea ecx, [ebp + 0x1c]
call fcn.004057d0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.004023e0
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
lea edx, [ebp + 0x18]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xf
call fcn.0040ea70
test al, al
jne 0x404bf3
mov esi, dword [ebp - 0x54]
test esi, esi
jle 0x404bbd
movzx esi, si
or esi, 0x80070000
lea ecx, [ebp + 0x18]
call fcn.004012e0
lea ecx, [ebp - 0x5c]
call fcn.0040fe40
lea ecx, [ebp + 0x1c]
call fcn.004012e0
lea ecx, [ebp - 0x48]
call fcn.004028b0
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 0x404c61
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 0x404c16
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 0x404c4e
test esi, esi
je 0x404c4e
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], 0x10
call fcn.00402860
lea eax, [ebp - 0x40]
push eax
call ebx
lea ecx, [ebp + 0x18]
call fcn.004012e0
lea ecx, [ebp - 0x5c]
call fcn.0040fe40
lea ecx, [ebp + 0x1c]
call fcn.004012e0
lea ecx, [ebp - 0x48]
call fcn.004028b0
jmp case.default.0x404708
lea edx, [ebp - 0x58]
lea ecx, [ebp + 0x18]
call fcn.0040dce0
test al, al
je 0x404d6c
mov esi, dword [ebp + 0x18]
test esi, esi
js 0x404d4b
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 0x404d4b
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 0x404cef
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 0x404d24
test esi, esi
je 0x404d24
mov eax, 0xa
push 0x8007000e
mov word [ebp - 0x60], ax
mov dword [ebp - 0x58], 0x8007000e
call fcn.00401010
mov byte [ebp - 4], 0x11
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x404d38
push eax
lea ecx, [ebp - 0x60]
call fcn.00402860
lea eax, [ebp - 0x60]
push eax
call edi
lea ecx, [ebp - 0x48]
call fcn.004028b0
jmp case.default.0x404708
lea ecx, [ebp - 0x48]
call fcn.004028b0
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.004028b0
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.0x404708
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x58]
call fcn.0040db60
mov edx, ecx
lea ecx, [ebp + 0x18]
call fcn.0040dce0
test al, al
je 0x40486f
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.default.0x404708
test byte [ebp + 0x18], 1
je case.default.0x404708
mov esi, dword [ebp + 0x20]
test esi, esi
je case.default.0x404708
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x58]
call fcn.0040db60
mov edx, ecx
lea ecx, [ebp + 0x18]
call fcn.0040dce0
test al, al
je 0x40486f
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
lea eax, [ebp + 0x1c]
mov dword [ebp - 4], 0x12
mov edx, dword [ebp + 0x18]
push eax
lea ecx, [ebp + 0x20]
call fcn.0040df50
add esp, 4
lea edx, [ebp - 0x5c]
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 0x13
call fcn.0040e240
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x58]
je 0x404e8a
mov eax, dword [eax + 0x10]
test eax, eax
je 0x404e8a
mov ecx, 0x13
mov word [ebp - 0x50], cx
mov dword [ebp - 0x48], eax
push esi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x15
call fcn.00402860
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.00405e50
jmp case.default.0x404708
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], 0x14
call fcn.004031c0
mov ecx, dword [ebp + 0x24]
lea eax, [ebp + 0x18]
push eax
mov edx, 0x80070578
call fcn.0040f970
add esp, 4
lea ecx, [ebp + 0x18]
call fcn.004012e0
lea ecx, [ebp + 0x20]
call fcn.004012e0
lea ecx, [ebp - 0x5c]
call fcn.00405e50
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.0x404708
mov esi, dword [ebp + 0x20]
test esi, esi
je case.default.0x404708
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x58]
call fcn.0040db60
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov edx, ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0x16
call fcn.0040dd20
test al, al
jne 0x404f69
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.004028b0
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.004057d0
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], 0x18
call fcn.0040e240
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x58]
je 0x404fe7
mov eax, dword [eax + 0x10]
test eax, eax
je 0x404fe7
mov ecx, 0x13
mov word [ebp - 0x40], cx
mov dword [ebp - 0x38], eax
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x1a
call fcn.00402860
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x5c]
call fcn.00405e50
lea ecx, [ebp + 0x20]
call fcn.004012e0
lea ecx, [ebp - 0x48]
call fcn.004028b0
jmp case.default.0x404708
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], 0x19
call fcn.004031c0
mov ecx, dword [ebp + 0x24]
lea eax, [ebp + 0x18]
push eax
mov edx, 0x80070578
call fcn.0040f970
add esp, 4
lea ecx, [ebp + 0x18]
call fcn.004012e0
lea ecx, [ebp - 0x5c]
call fcn.00405e50
lea ecx, [ebp + 0x20]
call fcn.004012e0
lea ecx, [ebp - 0x48]
call fcn.004028b0
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.0x404708
mov esi, dword [ebp + 0x20]
test esi, esi
je case.default.0x404708
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
jne 0x4050d3
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], 0x1b
call fcn.004031c0
mov edx, 0x80070578
mov ecx, dword [ebp + 0x24]
lea eax, [ebp + 0x18]
push eax
call fcn.0040f970
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], 0x1c
jmp 0x404829
test byte [ebp + 0x18], 1
je case.default.0x404708
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x58]
call fcn.0040db60
mov edx, ecx
lea ecx, [ebp + 0x18]
call fcn.0040dce0
test al, al
je 0x40486f
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.0x404708
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], 0x1d
call fcn.004031c0
mov edx, 0x80070057
jmp 0x4050a3
test byte [ebp + 0x18], 1
je case.default.0x404708
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x58]
call fcn.0040db60
mov edx, ecx
lea ecx, [ebp + 0x18]
call fcn.0040dce0
test al, al
je 0x40486f
mov ecx, dword [ebp + 0x18]
call fcn.0040ded0
test eax, eax
jne 0x4051c9
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], 0x1e
call fcn.004031c0
mov edx, 0x80070057
jmp 0x4050a3
mov ecx, 3
mov word [ebp - 0x50], cx
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 0x1f
push dword [ebp + 0x20]
lea ecx, [ebp - 0x50]
call fcn.00402860
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp case.default.0x404708
test byte [ebp + 0x18], 1
je case.default.0x404708
cmp dword [ebp + 0x20], 0
je case.default.0x404708
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x58]
call fcn.0040db60
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0x20
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], 0x22
call fcn.0040dd20
test al, al
jne 0x40529b
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.004028b0
lea ecx, [ebp - 0x38]
call fcn.004028b0
lea ecx, [ebp - 0x48]
call fcn.004028b0
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.0040dd20
test al, al
je 0x4054cb
push dword [ebp - 0x38]
lea ecx, [ebp + 8]
call fcn.004057d0
mov byte [ebp - 4], 0x23
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], 0x24
call fcn.00403100
push eax
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0x25
call fcn.00401440
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
cmp dword [eax - 0xc], edi
mov byte [ebp - 4], 0x24
setne bl
call fcn.004012e0
test bl, bl
je 0x4053c1
jmp 0x405320
push str.read
lea ecx, [ebp + 0x18]
call fcn.00403190
test eax, eax
jne 0x405339
or esi, 0x80000000
jmp 0x405386
push str.write
lea ecx, [ebp + 0x18]
call fcn.00403190
test eax, eax
jne 0x405352
or esi, 0x40000000
jmp 0x405386
push str.execute
lea ecx, [ebp + 0x18]
call fcn.00403190
test eax, eax
jne 0x40536b
or esi, 0x20000000
jmp 0x405386
push 0x4343c0
lea ecx, [ebp + 0x18]
call fcn.00403190
test eax, eax
jne 0x40554f
or esi, 0x10000000
lea eax, [ebp + 0x1c]
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.00403100
push eax
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0x25
call fcn.00401440
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 0x24
setne bl
call fcn.004012e0
test bl, bl
jne 0x405320
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x2c]
call fcn.0040dd20
test al, al
je 0x4054b3
push dword [ebp - 0x2c]
lea ecx, [ebp + 0xc]
call fcn.004057d0
lea eax, [ebp + 0x1c]
push eax
push ecx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x26
push eax
lea ecx, [ebp + 0xc]
mov dword [ebp + 0x1c], 0
call fcn.00403100
push eax
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0x27
call fcn.00401440
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 0x26
setne bl
call fcn.004012e0
test bl, bl
je 0x4054ab
jmp 0x405430
push str.shareread
lea ecx, [ebp + 0x18]
call fcn.00403190
test eax, eax
jne 0x405446
or edi, 1
jmp 0x405474
push str.sharewrite
lea ecx, [ebp + 0x18]
call fcn.00403190
test eax, eax
jne 0x40545c
or edi, 2
jmp 0x405474
push str.sharedelete
lea ecx, [ebp + 0x18]
call fcn.00403190
test eax, eax
jne 0x405547
or edi, 4
lea eax, [ebp + 0x1c]
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 0xc]
call fcn.00403100
push eax
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0x27
call fcn.00401440
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 0x26
setne bl
call fcn.004012e0
test bl, bl
jne 0x405430
lea ecx, [ebp + 0xc]
call fcn.004012e0
lea ecx, [ebp + 0x18]
call fcn.004012e0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x22
call fcn.004012e0
test esi, esi
jne 0x4054d0
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 0x405590
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edx, esi
lea ecx, [ebp - 0x24]
call fcn.004106c0
mov ecx, eax
mov byte [ebp - 4], 0x28
test esi, esi
jle 0x405514
movzx esi, si
or esi, 0x80070000
push ecx
mov ecx, dword [ebp + 0x24]
mov edx, esi
call fcn.0040f970
add esp, 4
lea ecx, [ebp - 0x24]
call fcn.004012e0
lea ecx, [ebp - 0x2c]
call fcn.004028b0
lea ecx, [ebp - 0x38]
call fcn.004028b0
lea ecx, [ebp - 0x48]
call fcn.004028b0
jmp 0x4050ba
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.004028b0
lea ecx, [ebp - 0x38]
call fcn.004028b0
lea ecx, [ebp - 0x48]
call fcn.004028b0
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], 0x29
push dword [ebp + 0x20]
lea ecx, [ebp - 0x70]
call fcn.00402860
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x2c]
call fcn.004028b0
lea ecx, [ebp - 0x38]
call fcn.004028b0
lea ecx, [ebp - 0x48]
call fcn.004028b0
jmp case.default.0x404708
test byte [ebp + 0x18], 3
je case.default.0x404708
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je case.default.0x404708
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], 0x2a
push ecx
jmp 0x404751
test byte [ebp + 0x18], 1
je case.default.0x404708
mov eax, dword [ebp + 0x1c]
cmp dword [eax + 8], 1
je 0x405631
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 0x405577
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