Function at 0x40f1c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x44a398
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x466910]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x44], edi
xor ebp, ebp
mov dword [esp + 0x28], vtable.CRegistry.0
mov dword [esp + 0x38], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov byte [esp + 0x44], 1
call fcn.004163a8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40f222
push 0x80004005
call fcn.004017a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push SysReAllocStringLen
lea ecx, [esp + 0x18]
push ecx
push ecx
mov bl, 2
mov byte [esp + 0x50], bl
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x455c0c
call fcn.004014b0
push ecx
mov byte [esp + 0x54], 3
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.httpShellopencommand
call fcn.004014b0
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x58], bl
call fcn.0040ec00
mov edx, dword [esp + 0x14]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x40f29d
push esi
lea ecx, [esp + 0x18]
call fcn.00401720
mov edx, dword [esp + 0x14]
lea eax, [esi + 1]
push eax
push edx
call fcn.00434b93
add esp, 8
cmp esi, edi
jl 0x40f53a
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x40f53a
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov word [edx + esi*2], cx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
cmp eax, edi
jge 0x40f2dc
or eax, 0xffffffff
jmp 0x40f2f9
push str..exe
push ecx
call fcn.0043343c
add esp, 8
cmp eax, edi
jne 0x40f2f3
or eax, 0xffffffff
jmp 0x40f2f9
sub eax, dword [esp + 0x14]
sar eax, 1
add eax, 5
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040ba90
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 4
call fcn.00404340
mov byte [esp + 0x44], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f33e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [esp + 0x14]
call fcn.0040bcf0
mov ebx, eax
call fcn.0040bd70
push 0x455c0c
push 0x45892c
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403f80
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40f455
push SysReAllocStringLen
lea eax, [esp + 0x18]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x455c0c
call fcn.004014b0
push ecx
mov byte [esp + 0x54], 5
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x458930
call fcn.004014b0
lea ecx, [esp + 0x38]
mov bl, 2
push ecx
mov byte [esp + 0x58], bl
call fcn.0040ec00
lea edi, [esp + 0x14]
call fcn.0040ba30
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jge 0x40f3cf
or eax, 0xffffffff
jmp 0x40f3ec
push str..exe
push eax
call fcn.0043343c
add esp, 8
test eax, eax
jne 0x40f3e6
or eax, 0xffffffff
jmp 0x40f3ec
sub eax, dword [esp + 0x14]
sar eax, 1
add eax, 5
push eax
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
call fcn.0040ba90
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 6
call fcn.00404340
mov byte [esp + 0x44], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f431
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [esp + 0x14]
call fcn.0040bcf0
mov ebx, eax
call fcn.0040bd70
push 0x455c0c
push 0x45892c
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403f80
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], 0
jne 0x40f46d
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x18]
call fcn.00404340
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x455c0c
call fcn.004014b0
mov byte [esp + 0x48], 7
mov eax, dword [esp + 0x50]
push 0
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
push eax
call fcn.00404770
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x54], 8
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov esi, esp
push eax
call fcn.00404770
add eax, 0x10
mov dword [esi], eax
mov esi, dword [esp + 0x64]
add esp, 4
mov byte [esp + 0x54], 2
call fcn.0040f0c0
test al, al
je 0x40f4d5
mov ebp, 1
mov byte [esp + 0x44], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f4fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f522
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 8
push 0x80070057
call fcn.004017a0
int3