Function at 0x40435b
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x42d210]
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.0x4039b8
jmp dword [eax*4 + 0x404794]
test byte [ebp + 0x18], 3
je case.default.0x4039b8
mov ebx, dword [ebp + 0x20]
test ebx, ebx
je case.default.0x4039b8
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
lea eax, [ebp - 0x2c]
call fcn.00401dd0
mov esi, eax
lea edi, [ebp - 0x74]
mov dword [ebp - 4], 0
call fcn.00406860
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00404dc0
mov esi, ebx
lea edi, [ebp - 0x74]
call fcn.004016d0
mov edx, edi
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp case.default.0x4039b8
test byte [ebp + 0x18], 1
je case.default.0x4039b8
mov ecx, dword [ebp + 0x1c]
lea eax, [ebp - 0x4c]
call fcn.0040ddb0
xor esi, esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov edi, eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 3
call fcn.0040de30
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp + 0x20]
push eax
call fcn.004047f0
mov byte [ebp - 4], 4
cmp dword [0x42e25c], 1
jl 0x403a7c
mov eax, dword [ebp + 0x20]
mov dword [ebp + 0x18], str.Ping
cmp dword [eax - 0xc], esi
je 0x403a70
mov dword [ebp + 0x18], eax
lea ecx, [ebp + 0x18]
push ecx
call fcn.004068d0
add esp, 4
lea eax, [ebp + 0x20]
call fcn.004047d0
lea esi, [ebp - 0x5c]
call fcn.00401810
jmp case.default.0x4039b8
test byte [ebp + 0x18], 3
je case.default.0x4039b8
mov esi, dword [ebp + 0x20]
test esi, esi
je case.default.0x4039b8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 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 - 0x64], cx
mov dword [ebp - 0x5c], eax
lea edi, [ebp - 0x64]
mov dword [ebp - 4], 5
call fcn.004016d0
mov edx, edi
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp case.default.0x4039b8
test byte [ebp + 0x18], 1
je case.default.0x4039b8
mov ebx, dword [ebp + 0x20]
test ebx, ebx
je case.default.0x4039b8
mov ecx, dword [ebp + 0x1c]
lea eax, [ebp - 0x5c]
call fcn.0040ddb0
lea eax, [ebp + 0x18]
push eax
lea edx, [ebp - 0x5c]
call fcn.0040ddf0
add esp, 4
test al, al
jne 0x403b49
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 0xc]
cmp dword [ebp - 0x58], 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 0x403eff
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 8]
mov edx, dword [ecx + 0x2c]
sub edx, dword [ecx + 0x28]
mov eax, 0x66666667
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, esi
jbe 0x403eff
mov eax, dword [ecx + 0x28]
lea edx, [esi + esi*4]
mov edi, dword [eax + edx*4 + 0xc]
lea eax, [eax + edx*4]
lea esi, [ebp - 0x54]
call fcn.00401680
mov esi, ebx
lea edi, [ebp - 0x54]
mov dword [ebp - 4], 6
call fcn.004016d0
mov ecx, edi
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp case.default.0x4039b8
test byte [ebp + 0x18], 1
je case.default.0x4039b8
mov ecx, dword [ebp + 0x1c]
lea eax, [ebp - 0x5c]
call fcn.0040ddb0
lea edx, [ebp + 0x20]
push edx
mov edx, eax
call fcn.0040ddf0
add esp, 4
test al, al
je 0x403b1f
mov ebx, dword [ebp + 0x20]
xor edi, edi
cmp ebx, edi
jl 0x403eff
mov esi, dword [ebp + 8]
mov eax, dword [esi + 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, ebx
jbe 0x403eff
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
lea edi, [ebp - 0x5c]
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 7
call fcn.0040de30
test al, al
jne 0x403c59
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 0xc]
lea esi, [ebp - 0x4c]
cmp dword [ebp - 0x58], ecx
sbb edi, edi
and edi, 0xfffffffa
call fcn.00401810
lea eax, [edi - 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
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp + 0x18]
push edx
call fcn.004047f0
mov byte [ebp - 4], 8
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
call fcn.00401560
add eax, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0xffffffff
mov byte [ebp - 4], 9
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 0x28]
lea edi, [ebx + ebx*4]
add edi, edi
add edi, edi
mov eax, dword [eax + edi]
mov dword [ebp - 0x5c], eax
add ecx, 0x20
lea ebx, [ebp - 0x5c]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x58], 0
call fcn.00404cf0
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + edi + 4]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0xa
mov eax, dword [esi + 8]
add eax, 0xc
push eax
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x5c]
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x58], 0
call fcn.00409120
lea eax, [ebp - 0x20]
call fcn.00407850
lea eax, [ebp + 0x18]
call fcn.004047d0
lea esi, [ebp - 0x4c]
call fcn.00401810
jmp case.default.0x4039b8
test byte [ebp + 0x18], 1
je case.default.0x4039b8
mov ecx, dword [ebp + 0x1c]
lea eax, [ebp - 0x4c]
call fcn.0040ddb0
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov edi, eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 0xc
call fcn.0040de30
test al, al
je 0x403e79
lea ecx, [ebp + 0x1c]
push ecx
mov ecx, dword [ebp - 0x5c]
call fcn.004047f0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp + 0x1c]
add eax, 0xfffffff0
call fcn.00401560
add eax, 0x10
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0xffffffff
lea esi, [ebp + 0x18]
call fcn.00401850
mov edx, esi
push edx
lea esi, [ebp - 0x50]
mov byte [ebp - 4], 0xf
call fcn.00407bd0
test al, al
jne 0x403e2b
mov eax, dword [ebp - 0x48]
cmp eax, ebx
jle 0x403df3
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
lea eax, [ebp + 0x18]
call fcn.004047d0
lea eax, [ebp - 0x50]
call fcn.00407850
lea eax, [ebp + 0x1c]
call fcn.004047d0
lea esi, [ebp - 0x5c]
call fcn.00401810
mov eax, edi
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 ebx, dword [ebp + 0x20]
test ebx, ebx
je 0x403e54
mov edi, dword [ebp + 0x18]
lea esi, [ebp - 0x74]
call fcn.00401680
mov esi, ebx
lea edi, [ebp - 0x74]
mov byte [ebp - 4], 0x10
call fcn.004016d0
mov eax, edi
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp + 0x18]
call fcn.004047d0
lea eax, [ebp - 0x50]
call fcn.00407850
lea eax, [ebp + 0x1c]
call fcn.004047d0
lea esi, [ebp - 0x5c]
call fcn.00401810
jmp case.default.0x4039b8
lea ecx, [ebp + 0x18]
push ecx
lea edx, [ebp - 0x4c]
call fcn.0040ddf0
add esp, 4
test al, al
je 0x403f18
mov esi, dword [ebp + 0x18]
cmp esi, ebx
jl 0x403ef7
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 8]
mov edx, dword [ecx + 0x2c]
sub edx, dword [ecx + 0x28]
mov eax, 0x66666667
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, esi
jbe 0x403ef7
mov eax, dword [ecx + 0x28]
lea edx, [esi + esi*4]
mov edi, dword [eax + edx*4 + 0x10]
lea eax, [eax + edx*4]
lea esi, [ebp - 0x74]
call fcn.00401680
mov byte [ebp - 4], 0x11
mov esi, dword [ebp + 0x20]
cmp esi, ebx
je 0x403ee0
lea edi, [ebp - 0x74]
call fcn.004016d0
lea ecx, [ebp - 0x74]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea esi, [ebp - 0x5c]
call fcn.00401810
jmp case.default.0x4039b8
lea esi, [ebp - 0x5c]
call fcn.00401810
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 - 0x4c]
mov edx, dword [eax + 8]
sub edx, dword [eax + 0xc]
lea esi, [ebp - 0x5c]
cmp dword [ebp - 0x48], edx
sbb edi, edi
and edi, 6
call fcn.00401810
lea eax, [edi - 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.0x4039b8
mov ecx, dword [ebp + 0x1c]
lea eax, [ebp - 0x5c]
call fcn.0040ddb0
lea eax, [ebp + 0x18]
push eax
lea edx, [ebp - 0x5c]
call fcn.0040ddf0
add esp, 4
test al, al
je 0x403b1f
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.default.0x4039b8
test byte [ebp + 0x18], 1
je case.default.0x4039b8
mov esi, dword [ebp + 0x20]
xor edi, edi
cmp esi, edi
je case.default.0x4039b8
mov ecx, dword [ebp + 0x1c]
lea eax, [ebp - 0x5c]
call fcn.0040ddb0
lea eax, [ebp + 0x18]
push eax
lea edx, [ebp - 0x5c]
call fcn.0040ddf0
add esp, 4
test al, al
je 0x403b1f
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 4], 0x12
mov edx, dword [ebp + 0x18]
push edx
lea edi, [ebp + 0x18]
lea ebx, [ebp + 0x20]
call fcn.00409b50
mov eax, ebx
push eax
lea ebx, [ebp - 0x64]
mov byte [ebp - 4], 0x13
call fcn.00409e90
mov eax, dword [ebp - 0x64]
add esp, 8
cmp eax, dword [ebp - 0x60]
je 0x404032
mov eax, dword [eax + 0x10]
test eax, eax
je 0x404032
mov ecx, 0x13
mov word [ebp - 0x54], cx
mov dword [ebp - 0x4c], eax
lea edi, [ebp - 0x54]
mov byte [ebp - 4], 0x15
call fcn.004016d0
mov edx, edi
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp + 0x20]
call fcn.004047d0
call fcn.00405050
jmp case.default.0x4039b8
lea esi, [ebp + 0x18]
call fcn.00401850
mov edx, str._Error_getting_windows_handle_from_process_id___possibly_invalid_process_id
mov eax, esi
mov byte [ebp - 4], 0x14
call fcn.00401930
mov eax, esi
mov esi, dword [ebp + 0x24]
push eax
push 0x80070578
call fcn.0040dfd0
add esp, 8
lea eax, [ebp + 0x18]
call fcn.004047d0
lea eax, [ebp + 0x20]
call fcn.004047d0
lea ebx, [ebp - 0x64]
call fcn.00405050
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.0x4039b8
mov esi, dword [ebp + 0x20]
xor ebx, ebx
cmp esi, ebx
je case.default.0x4039b8
mov ecx, dword [ebp + 0x1c]
lea eax, [ebp - 0x4c]
call fcn.0040ddb0
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov edi, eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 0x16
call fcn.0040de30
test al, al
jne 0x4040fe
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 0xc]
lea esi, [ebp - 0x5c]
cmp dword [ebp - 0x48], ecx
sbb edi, edi
and edi, 0xfffffffa
call fcn.00401810
lea eax, [edi - 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
mov ecx, dword [ebp - 0x5c]
lea edx, [ebp + 0x20]
push edx
call fcn.004047f0
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
lea eax, [ebp + 0x20]
push eax
lea ebx, [ebp - 0x54]
mov byte [ebp - 4], 0x18
call fcn.00409e90
mov eax, dword [ebp - 0x54]
add esp, 4
cmp eax, dword [ebp - 0x50]
je 0x404160
mov eax, dword [eax + 0x10]
test eax, eax
je 0x404160
mov ecx, 0x13
mov word [ebp - 0x44], cx
mov dword [ebp - 0x3c], eax
lea edi, [ebp - 0x44]
mov byte [ebp - 4], 0x1a
call fcn.004016d0
mov edx, edi
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
call fcn.00405050
jmp 0x403a7c
lea esi, [ebp + 0x18]
call fcn.00401850
mov edx, str._Error_getting_windows_handle_from_process_name___possibly_invalid_process_name
mov eax, esi
mov byte [ebp - 4], 0x19
call fcn.00401930
mov eax, esi
mov esi, dword [ebp + 0x24]
push eax
push 0x80070578
call fcn.0040dfd0
add esp, 8
lea eax, [ebp + 0x18]
call fcn.004047d0
lea ebx, [ebp - 0x54]
call fcn.00405050
lea eax, [ebp + 0x20]
call fcn.004047d0
lea esi, [ebp - 0x5c]
call fcn.00401810
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.0x4039b8
mov esi, dword [ebp + 0x20]
test esi, esi
je case.default.0x4039b8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
jne 0x404232
lea esi, [ebp + 0x18]
call fcn.00401850
mov edx, str._Error_getting_active_window
mov eax, esi
mov dword [ebp - 4], 0x1b
call fcn.00401930
mov ecx, esi
push ecx
push 0x80070578
mov esi, dword [ebp + 0x24]
call fcn.0040dfd0
add esp, 8
lea eax, [ebp + 0x18]
call fcn.004047d0
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 edx, 0x13
mov word [ebp - 0x64], dx
mov dword [ebp - 0x5c], eax
lea edi, [ebp - 0x64]
mov dword [ebp - 4], 0x1c
call fcn.004016d0
mov eax, edi
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp case.default.0x4039b8
test byte [ebp + 0x18], 1
je case.default.0x4039b8
mov ecx, dword [ebp + 0x1c]
lea eax, [ebp - 0x5c]
call fcn.0040ddb0
lea ecx, [ebp + 0x18]
push ecx
mov edx, eax
call fcn.0040ddf0
add esp, 4
test al, al
je 0x403b1f
mov esi, dword [ebp + 0x18]
mov edi, dword [sym.imp.USER32.dll_ShowWindowAsync]
push 1
push esi
call edi
push 9
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne case.default.0x4039b8
lea esi, [ebp + 0x18]
call fcn.00401850
mov edx, str._Error_settting_window_as_top_most
mov eax, esi
mov dword [ebp - 4], 0x1d
call fcn.00401930
mov edx, esi
push edx
push 0x80070057
jmp 0x404206
test byte [ebp + 0x18], 1
je case.default.0x4039b8
mov ecx, dword [ebp + 0x1c]
lea eax, [ebp - 0x5c]
call fcn.0040ddb0
lea edx, [ebp + 0x18]
push edx
mov edx, eax
call fcn.0040ddf0
add esp, 4
test al, al
je 0x403b1f
mov ecx, dword [ebp + 0x18]
call fcn.00409ad0
test eax, eax
jne 0x40432f
lea esi, [ebp + 0x18]
call fcn.00401850
mov edx, str._Error_getting_process_id_given_handle
mov eax, esi
mov dword [ebp - 4], 0x1e
call fcn.00401930
mov eax, esi
push eax
push 0x80070057
jmp 0x404206
mov ecx, 3
mov word [ebp - 0x54], cx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 0x1f
mov esi, dword [ebp + 0x20]
lea edi, [ebp - 0x54]
call fcn.004016d0
mov edx, edi
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp case.default.0x4039b8
test byte [ebp + 0x18], 1
je case.default.0x4039b8
xor esi, esi
cmp dword [ebp + 0x20], esi
je case.default.0x4039b8
mov ecx, dword [ebp + 0x1c]
lea eax, [ebp - 0x1c]
call fcn.0040ddb0
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 4], 0x20
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov edi, eax
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0x22
call fcn.0040de30
test al, al
jne 0x4043e9
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 8]
sub edx, dword [eax + 0xc]
lea esi, [ebp - 0x3c]
cmp dword [ebp - 0x18], edx
sbb edi, edi
and edi, 0xfffffffa
call fcn.00401810
lea esi, [ebp - 0x4c]
call fcn.00401810
lea esi, [ebp - 0x5c]
call fcn.00401810
lea eax, [edi - 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 edi, [ebp - 0x1c]
lea eax, [ebp - 0x4c]
mov dword [ebp + 0x1c], esi
mov dword [ebp + 8], esi
call fcn.0040de30
test al, al
je 0x4045f5
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x14]
push eax
call fcn.004047f0
lea esi, [ebp + 0x18]
mov dword [ebp + 0xc], 0
call fcn.00401850
lea edi, [ebp + 0xc]
lea esi, [ebp - 0x24]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x24
call fcn.00401870
lea edi, [ebp + 0x18]
mov byte [ebp - 4], 0x25
call fcn.004048a0
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
mov eax, esi
setne bl
mov byte [ebp - 4], 0x24
call fcn.004047d0
test bl, bl
je 0x4044fb
lea edx, [ebp + 0x18]
push edx
mov ecx, str.read
call fcn.00401900
test eax, eax
jne 0x404472
or dword [ebp + 0x1c], 0x80000000
jmp 0x4044c5
lea eax, [ebp + 0x18]
push eax
mov ecx, str.write
call fcn.00401900
test eax, eax
jne 0x40448d
or dword [ebp + 0x1c], 0x40000000
jmp 0x4044c5
lea ecx, [ebp + 0x18]
push ecx
mov ecx, str.execute
call fcn.00401900
test eax, eax
jne 0x4044a8
or dword [ebp + 0x1c], 0x20000000
jmp 0x4044c5
lea edx, [ebp + 0x18]
push edx
mov ecx, 0x426bc0
call fcn.00401900
test eax, eax
jne 0x404686
or dword [ebp + 0x1c], 0x10000000
lea edi, [ebp + 0xc]
lea esi, [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.00401870
lea edi, [ebp + 0x18]
mov byte [ebp - 4], 0x25
call fcn.004048a0
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
mov eax, esi
setne bl
mov byte [ebp - 4], 0x24
call fcn.004047d0
test bl, bl
jne 0x404457
lea edi, [ebp - 0x1c]
lea eax, [ebp - 0x3c]
call fcn.0040de30
test al, al
je 0x4045db
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.004047f0
mov byte [ebp - 4], 0x26
lea edi, [ebp + 0xc]
lea esi, [ebp - 0x28]
lea ecx, [ebp - 0x18]
mov dword [ebp + 0xc], 0
call fcn.00401870
lea edi, [ebp + 0x18]
mov byte [ebp - 4], 0x27
call fcn.004048a0
mov edx, dword [eax]
cmp dword [edx - 0xc], 0
mov eax, esi
setne bl
mov byte [ebp - 4], 0x26
call fcn.004047d0
test bl, bl
je 0x4045d3
lea eax, [ebp + 0x18]
push eax
mov ecx, str.shareread
call fcn.00401900
test eax, eax
jne 0x40456f
or dword [ebp + 8], 1
jmp 0x4045a1
lea ecx, [ebp + 0x18]
push ecx
mov ecx, str.sharewrite
call fcn.00401900
test eax, eax
jne 0x404587
or dword [ebp + 8], 2
jmp 0x4045a1
lea edx, [ebp + 0x18]
push edx
mov ecx, str.sharedelete
call fcn.00401900
test eax, eax
jne 0x40467e
or dword [ebp + 8], 4
lea edi, [ebp + 0xc]
lea esi, [ebp - 0x28]
lea ecx, [ebp - 0x18]
call fcn.00401870
lea edi, [ebp + 0x18]
mov byte [ebp - 4], 0x27
call fcn.004048a0
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
mov eax, esi
setne bl
mov byte [ebp - 4], 0x26
call fcn.004047d0
test bl, bl
jne 0x404557
lea eax, [ebp - 0x18]
call fcn.004047d0
lea eax, [ebp + 0x18]
call fcn.004047d0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0x22
call fcn.004047d0
cmp dword [ebp + 0x1c], 0
jne 0x4045fc
mov dword [ebp + 0x1c], 0xc0000000
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x5c]
push 0
push 0x80
push 3
push 0
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4046c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x34]
mov esi, eax
push ecx
mov ecx, esi
call fcn.00409500
add esp, 4
mov byte [ebp - 4], 0x28
test esi, esi
jle 0x40464c
and esi, 0xffff
or esi, 0x80070000
push eax
push esi
mov esi, dword [ebp + 0x24]
call fcn.0040dfd0
add esp, 8
lea eax, [ebp - 0x34]
call fcn.004047d0
lea esi, [ebp - 0x3c]
call fcn.00401810
lea esi, [ebp - 0x4c]
call fcn.00401810
lea esi, [ebp - 0x5c]
call fcn.00401810
jmp 0x404219
lea eax, [ebp - 0x18]
call fcn.004047d0
lea eax, [ebp + 0x18]
call fcn.004047d0
lea eax, [ebp - 0x14]
call fcn.004047d0
lea esi, [ebp - 0x3c]
call fcn.00401810
lea esi, [ebp - 0x4c]
call fcn.00401810
lea esi, [ebp - 0x5c]
call fcn.00401810
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 edx, 0xb
or eax, 0xffffffff
mov word [ebp - 0x74], dx
mov word [ebp - 0x6c], ax
mov byte [ebp - 4], 0x29
mov esi, dword [ebp + 0x20]
lea edi, [ebp - 0x74]
call fcn.004016d0
mov ecx, edi
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea esi, [ebp - 0x3c]
call fcn.00401810
lea esi, [ebp - 0x4c]
call fcn.00401810
lea esi, [ebp - 0x5c]
call fcn.00401810
jmp case.default.0x4039b8
test byte [ebp + 0x18], 3
je case.default.0x4039b8
mov esi, dword [ebp + 0x20]
test esi, esi
je case.default.0x4039b8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov eax, dword [eax + 0x18]
mov ecx, 3
mov word [ebp - 0x74], cx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 0x2a
jmp 0x403a01
test byte [ebp + 0x18], 1
je case.default.0x4039b8
mov eax, dword [ebp + 0x1c]
cmp dword [eax + 8], 1
je 0x404766
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 eax, dword [eax]
cmp word [eax], 3
jne 0x4046ae
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [eax + 8]
mov dword [edx + 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