Function at 0x41fbf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e60f
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x48d814]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x6c], eax
jb 0x41fc3d
mov eax, dword [esi + 4]
jmp 0x41fc40
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0xffffffffffffffff
push ebx
push esi
test eax, eax
je 0x41fc77
xor ecx, ecx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
mov word [edi + 4], cx
mov ecx, edi
call fcn.00402a00
mov dword [ebp - 4], ebx
mov dword [ebp - 0x5c], 1
mov eax, edi
jmp 0x42010f
xor edx, edx
mov edi, 7
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x49], bl
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x44], dx
call fcn.00402a00
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x14]
cmp eax, 0xe
jbe 0x41fd32
push 0xe
push ebx
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00408740
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x41fcc4
lea eax, [ebp - 0x28]
push str.Ques:__File:__
push eax
call fcn.00450d36
add esp, 8
test eax, eax
jne 0x41fd0b
push 0xffffffffffffffff
push 0xe
lea ecx, [ebp - 0x88]
push ecx
mov ecx, esi
call fcn.00408740
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x48]
call fcn.00402a00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call fcn.00402020
mov byte [ebp - 0x49], 1
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
jb 0x41fd21
mov edx, dword [ebp - 0x28]
push edx
call fcn.00450138
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
cmp byte [ebp - 0x49], bl
jne 0x41fda1
cmp dword [esi + 0x14], edi
jbe 0x41fda1
push edi
push ebx
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
call fcn.00408740
mov byte [ebp - 4], 4
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x41fd54
lea eax, [ebp - 0x28]
push str.http:__
push eax
call fcn.00450d36
add esp, 8
test eax, eax
jne 0x41fd95
lea edx, [ebp - 0x88]
push esi
push edx
call fcn.00426f70
add esp, 8
mov byte [ebp - 4], 5
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x48]
call fcn.00402a00
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x88]
call fcn.00402020
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00402020
mov esi, dword [ebp - 0x58]
lea eax, [esi + 0x40]
push eax
mov dword [ebp - 0x64], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x68], 1
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x54]
add esi, 0x20
push ecx
mov ecx, esi
call fcn.0041c6d0
mov ecx, dword [ebp - 0x54]
mov edi, dword [esi + 0x18]
mov eax, dword [esi]
cmp ecx, ebx
je 0x41fddb
cmp ecx, eax
je 0x41fde0
call fcn.00450ac2
cmp dword [ebp - 0x50], edi
je 0x41fea1
mov edx, dword [ebp - 0x6c]
push edx
mov ecx, esi
call fcn.0041f430
mov esi, eax
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor edi, edi
add eax, edx
je 0x41fea1
mov dword [ebp - 0x50], ebx
cmp edi, eax
jb 0x41fe23
call fcn.00450ac2
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x48]
push ecx
push eax
lea edx, [ebp - 0x2c]
push edx
call fcn.0041c7b0
add esp, 0xc
mov byte [ebp - 4], 7
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x41fe4a
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41ff73
mov byte [ebp - 4], 6
cmp dword [ebp - 0x14], 8
jb 0x41fe6f
mov eax, dword [ebp - 0x28]
push eax
call fcn.00450138
add esp, 4
add dword [ebp - 0x50], 0x1c
xor ecx, ecx
mov word [ebp - 0x28], cx
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
cmp edi, eax
jb 0x41fe23
mov eax, dword [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x58]
call fcn.0041c6d0
mov edi, dword [eax]
mov ecx, dword [ebp - 0x58]
mov esi, dword [eax + 4]
mov edx, dword [ecx + 0x18]
mov eax, dword [ecx]
mov dword [ebp - 0x50], edx
cmp edi, ebx
je 0x41fec9
cmp edi, eax
je 0x41fed1
call fcn.00450ac2
mov ecx, dword [ebp - 0x58]
cmp esi, dword [ebp - 0x50]
jne 0x41ffef
mov esi, dword [ebp - 0x6c]
push esi
call fcn.0041f530
mov ecx, dword [ebp - 0x58]
push esi
lea eax, [ebp - 0x54]
push eax
call fcn.0041c6d0
mov edi, dword [eax]
mov esi, dword [eax + 4]
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x50], ecx
cmp edi, ebx
je 0x41ff08
cmp edi, eax
je 0x41ff0d
call fcn.00450ac2
cmp esi, dword [ebp - 0x50]
jne 0x41ffef
mov esi, dword [ebp - 0x60]
push ebx
mov edi, 7
xor edx, edx
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push 0x474080
mov ecx, esi
mov word [esi + 4], dx
call fcn.00402fe0
mov dword [ebp - 0x5c], 1
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x68], bl
mov byte [ebp - 4], bl
cmp dword [ebp - 0x30], 8
jb 0x41ffe4
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.00450138
add esp, 4
xor edx, edx
mov word [ebp - 0x44], dx
jmp 0x420107
mov esi, dword [ebp - 0x60]
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c]
mov edi, 7
xor edx, edx
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.00402a00
mov dword [ebp - 0x5c], 1
mov byte [ebp - 4], 6
cmp dword [ebp - 0x14], 8
jb 0x41ffb2
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00450138
add esp, 4
xor edx, edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], dx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x68], bl
mov byte [ebp - 4], bl
cmp dword [ebp - 0x30], 8
jb 0x41ffe4
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.00450138
add esp, 4
xor edx, edx
mov word [ebp - 0x44], dx
jmp 0x420107
cmp edi, ebx
jne 0x42012d
call fcn.00450ac2
xor edi, edi
cmp esi, dword [edi + 0x18]
jne 0x420008
call fcn.00450ac2
mov ecx, dword [esi + 0x38]
sub ecx, dword [esi + 0x34]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor edi, edi
add eax, edx
je 0x4200b3
mov dword [ebp - 0x50], ebx
cmp edi, eax
jb 0x420035
call fcn.00450ac2
mov eax, dword [esi + 0x34]
add eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x48]
push ecx
push eax
lea edx, [ebp - 0x2c]
push edx
call fcn.0041c7b0
add esp, 0xc
mov byte [ebp - 4], 8
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x42005c
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x420134
mov byte [ebp - 4], 6
cmp dword [ebp - 0x14], 8
jb 0x420081
mov eax, dword [ebp - 0x28]
push eax
call fcn.00450138
add esp, 4
add dword [ebp - 0x50], 0x1c
xor ecx, ecx
mov word [ebp - 0x28], cx
mov ecx, dword [esi + 0x38]
sub ecx, dword [esi + 0x34]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
cmp edi, eax
jb 0x420035
mov esi, dword [ebp - 0x60]
push ebx
mov edi, 7
xor eax, eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push 0x474080
mov ecx, esi
mov word [esi + 4], ax
call fcn.00402fe0
mov dword [ebp - 0x5c], 1
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x68], bl
mov byte [ebp - 4], bl
cmp dword [ebp - 0x30], 8
jb 0x420101
mov edx, dword [ebp - 0x44]
push edx
call fcn.00450138
add esp, 4
xor eax, eax
mov word [ebp - 0x44], ax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045075f
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [edi]
jmp 0x41fffe
mov esi, dword [ebp - 0x60]
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c]
mov edi, 7
xor edx, edx
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.00402a00
mov dword [ebp - 0x5c], 1
mov byte [ebp - 4], 6
cmp dword [ebp - 0x14], 8
jb 0x420173
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00450138
add esp, 4
xor edx, edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], dx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x68], bl
mov byte [ebp - 4], bl
cmp dword [ebp - 0x30], 8
jb 0x41ffe4
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.00450138
add esp, 4
xor edx, edx
mov word [ebp - 0x44], dx
jmp 0x420107