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

Disassembly:
push 0x30c
mov eax, 0x43e687
call fcn.0041a2c0
mov ebx, ecx
mov dword [ebp - 0x2fc], ebx
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x300], ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0x44]
mov byte [ebp - 4], al
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0xc]
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x44]
and dword [ebp - 0x40], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
push dword [ebp - 0x40]
lea ecx, [ebp - 0x60]
call fcn.004028b0
lea edx, [ebp - 0x60]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10c]
call fcn.0040ebb7
lea ecx, [ebp - 0x60]
call fcn.004020b7
and dword [ebp - 0x3c], 0
lea edx, [ebp - 0x3c]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x44]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
push 0xffffffffffffffff
push dword [ebx + 0x64]
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x10c]
call fcn.0040ffe7
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xdc]
call fcn.0040f2ff
lea ecx, [ebp - 0x60]
call fcn.00402417
xor eax, eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
xor ecx, ecx
mov dword [ebp - 0x2d8], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], cl
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xc
push str.Cache_Control:_no_store
lea ecx, [ebp - 0x7c]
call fcn.00402161
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x7c]
mov eax, dword [ebp - 0x18]
push ecx
cmp eax, dword [ebp - 0x14]
je 0x410d69
mov ecx, eax
call fcn.00402020
add dword [ebp - 0x18], 0x18
jmp 0x410d72
push eax
lea ecx, [ebp - 0x1c]
call fcn.00416a3b
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xc
call fcn.00402417
push 0x447f70
lea ecx, [ebp - 0x2f8]
call fcn.00402161
push 0x44afbc
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xe
call fcn.00402161
lea eax, [ebp - 0x2f8]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x60]
push eax
lea edx, [ebp - 0xdc]
lea ecx, [ebp - 0x318]
call fcn.0040f4c6
mov esi, eax
lea ecx, [ebx + 0x24]
mov byte [ebp - 4], 0x10
push ecx
lea edx, [ebx + 0xc]
lea ecx, [ebp - 0x7c]
call fcn.004041ac
add esp, 0xc
push esi
push eax
push dword [ebp - 0x300]
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x11
call fcn.004163cb
lea ecx, [ebp - 0x7c]
call fcn.00402417
lea ecx, [ebp - 0x318]
call fcn.00402417
lea ecx, [ebp - 0x60]
call fcn.00402417
lea ecx, [ebp - 0x2f8]
mov byte [ebp - 4], 0x16
call fcn.00402417
lea edx, [ebp - 0x94]
lea ecx, [ebp - 0xf4]
call fcn.0040eaa7
lea edx, [ebp - 0x94]
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x318]
call fcn.0040eaa7
mov edx, eax
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x7c]
call fcn.0040eccd
lea ecx, [ebp - 0x318]
mov byte [ebp - 4], 0x17
call fcn.004020b7
cmp dword [ebp - 0x68], 8
lea eax, [ebp - 0x7c]
cmovae eax, dword [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x7c]
mov esi, eax
call fcn.004020b7
cmp esi, 0xffffffff
je 0x411409
lea edx, [ebp - 0xdc]
lea ecx, [ebp - 0x7c]
call fcn.00404276
push str.Content_Type:
lea ecx, [ebp - 0x318]
mov byte [ebp - 4], 0x19
call fcn.00402161
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x7c]
cmp dword [ebp - 0x68], 0x10
push dword [ebp - 0x6c]
cmovae ecx, dword [ebp - 0x7c]
push ecx
mov ecx, eax
call fcn.004034d9
push eax
lea ecx, [ebp - 0x2f8]
call fcn.00402020
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x2f8]
mov eax, dword [ebp - 0x18]
push ecx
cmp eax, dword [ebp - 0x14]
je 0x410ee8
mov ecx, eax
call fcn.00402020
add dword [ebp - 0x18], 0x18
jmp 0x410ef1
push eax
lea ecx, [ebp - 0x1c]
call fcn.00416a3b
lea ecx, [ebp - 0x2f8]
call fcn.00402417
lea ecx, [ebp - 0x318]
mov byte [ebp - 4], 0x19
call fcn.00402417
push str.Accept_Ranges:_bytes
lea ecx, [ebp - 0x2f8]
call fcn.00402161
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x2f8]
mov eax, dword [ebp - 0x18]
push ecx
cmp eax, dword [ebp - 0x14]
je 0x410f3b
mov ecx, eax
call fcn.00402020
add dword [ebp - 0x18], 0x18
jmp 0x410f44
push eax
lea ecx, [ebp - 0x1c]
call fcn.00416a3b
lea ecx, [ebp - 0x2f8]
mov byte [ebp - 4], 0x19
call fcn.00402417
cmp dword [ebp - 0x80], 0x10
lea eax, [ebp - 0x94]
lea ecx, [ebp - 0x60]
cmovae eax, dword [ebp - 0x94]
push eax
call fcn.00402161
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x1d
call fcn.0040eeb8
mov ebx, eax
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x2e0], ebx
call fcn.00402417
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x64]
and dword [ebp - 0x64], 0
push eax
push str.Range
mov edx, dword [ecx]
push ecx
call dword [edx + 0x14]
cmp dword [ebp - 0x64], 0
je 0x4112f5
and dword [ebp - 0x38], 0
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
mov edi, dword [esi]
call fcn.00418c18
push eax
push str.Range
push esi
call dword [edi + 0xc]
push dword [ebp - 0x38]
lea ecx, [ebp - 0x2f8]
call fcn.004028b0
lea edx, [ebp - 0x2f8]
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x60]
call fcn.0040ebb7
lea ecx, [ebp - 0x2f8]
mov byte [ebp - 4], 0x21
call fcn.004020b7
lea ecx, [ebp - 0x60]
call fcn.0040f483
mov edx, ebx
lea ecx, [ebp - 0x60]
call fcn.0040f575
mov esi, eax
mov edi, edx
mov dword [ebp - 0x2dc], esi
test esi, esi
jne 0x411072
test edi, edi
jne 0x411072
push 0x15
pop eax
mov edi, 0x1a0
cmp dword [ebp - 0x20], eax
jb 0x411052
cmp dword [ebp - 0x20], 0x10
lea esi, [ebp - 0x34]
push eax
cmovae esi, dword [ebp - 0x34]
push str.Range_Not_Satisfiable
push esi
mov dword [ebp - 0x24], eax
call fcn.0041b0b0
add esp, 0xc
mov byte [esi + 0x15], 0
jmp 0x4112d5
push str.Range_Not_Satisfiable
mov byte [ebp - 0x2e0], 0
lea ecx, [ebp - 0x34]
push dword [ebp - 0x2e0]
push eax
call fcn.00401cfc
jmp 0x4112d5
push 0x98
mov ebx, edi
lea eax, [ebp - 0x1a4]
push 0
sub ebx, esi
push eax
inc ebx
call fcn.0041b630
pop ecx
pop ecx
lea ecx, [ebp - 0x1a4]
call fcn.00412f0a
push dword [ebp - 0x2e0]
mov edx, str.Content_Range:_bytes
mov byte [ebp - 4], 0x22
push edi
push esi
lea ecx, [ebp - 0x1a4]
call fcn.004159d7
mov ecx, eax
call fcn.004136e6
mov edx, 0x449e28
mov ecx, eax
call fcn.004159d7
mov ecx, eax
call fcn.004136e6
mov edx, 0x44afbc
mov ecx, eax
call fcn.004159d7
mov ecx, eax
call fcn.004136e6
push 0x98
lea eax, [ebp - 0x2d4]
push 0
push eax
call fcn.0041b630
pop ecx
pop ecx
lea ecx, [ebp - 0x2d4]
call fcn.00412f0a
push ebx
mov edx, str.Content_Length:
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x2d4]
call fcn.004159d7
mov ecx, eax
call fcn.004136e6
lea eax, [ebp - 0x2f8]
push eax
lea ecx, [ebp - 0x1a0]
call fcn.004146d3
mov byte [ebp - 4], 0x24
lea ecx, [ebp - 0x2f8]
mov eax, dword [ebp - 0x18]
push ecx
cmp eax, dword [ebp - 0x14]
je 0x41114e
mov ecx, eax
call fcn.00402020
add dword [ebp - 0x18], 0x18
jmp 0x411157
push eax
lea ecx, [ebp - 0x1c]
call fcn.00416a3b
lea ecx, [ebp - 0x2f8]
mov byte [ebp - 4], 0x23
call fcn.00402417
lea eax, [ebp - 0x2f8]
push eax
lea ecx, [ebp - 0x2d0]
call fcn.004146d3
mov byte [ebp - 4], 0x25
lea ecx, [ebp - 0x2f8]
mov eax, dword [ebp - 0x18]
push ecx
cmp eax, dword [ebp - 0x14]
je 0x411198
mov ecx, eax
call fcn.00402020
add dword [ebp - 0x18], 0x18
jmp 0x4111a1
push eax
lea ecx, [ebp - 0x1c]
call fcn.00416a3b
lea ecx, [ebp - 0x2f8]
mov byte [ebp - 4], 0x23
call fcn.00402417
push 0xf
pop eax
mov edi, 0xce
cmp dword [ebp - 0x20], eax
jb 0x4111e6
cmp dword [ebp - 0x20], 0x10
lea esi, [ebp - 0x34]
push eax
cmovae esi, dword [ebp - 0x34]
push str.Partial_Content
push esi
mov dword [ebp - 0x24], eax
call fcn.0041b0b0
mov byte [esi + 0xf], 0
add esp, 0xc
mov esi, dword [ebp - 0x2dc]
jmp 0x411201
push str.Partial_Content
mov byte [ebp - 0x2dc], 0
lea ecx, [ebp - 0x34]
push dword [ebp - 0x2dc]
push eax
call fcn.00401cfc
cmp ebx, dword [ebp - 0x2e0]
jne 0x411245
lea edx, [ebp - 0xf4]
lea ecx, [ebp - 0x318]
call fcn.0040eccd
cmp dword [eax + 0x14], 8
jb 0x411222
mov eax, dword [eax]
lea ecx, [ebp - 0x2d8]
push ecx
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.SHLWAPI.dll_SHCreateStreamOnFileEx]
lea ecx, [ebp - 0x318]
call fcn.004020b7
jmp 0x4112bf
mov ecx, dword [ebp - 0x2fc]
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.0041166a
test eax, eax
jne 0x4112af
push 0x15
pop eax
mov edi, 0x1f4
cmp dword [ebp - 0x20], eax
jb 0x411292
cmp dword [ebp - 0x20], 0x10
lea esi, [ebp - 0x34]
push eax
cmovae esi, dword [ebp - 0x34]
push str.Internal_Server_Error
push esi
mov dword [ebp - 0x24], eax
call fcn.0041b0b0
add esp, 0xc
mov byte [esi + 0x15], 0
jmp 0x4112bf
push str.Internal_Server_Error
mov byte [ebp - 0x2dc], 0
lea ecx, [ebp - 0x34]
push dword [ebp - 0x2dc]
push eax
call fcn.00401cfc
jmp 0x4112bf
push ebx
add eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
mov dword [ebp - 0x2d8], eax
lea ecx, [ebp - 0x2d4]
call fcn.00411619
lea ecx, [ebp - 0x1a4]
call fcn.00411619
lea ecx, [ebp - 0x60]
call fcn.00402417
cmp dword [ebp - 0x38], 0
je 0x4113fb
push dword [ebp - 0x38]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x4113fb
push 0x98
lea eax, [ebp - 0x1a4]
push 0
push eax
call fcn.0041b630
pop ecx
pop ecx
lea ecx, [ebp - 0x1a4]
call fcn.00412f0a
push ebx
mov edx, str.Content_Length:
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0x1a4]
call fcn.004159d7
mov ecx, eax
call fcn.004136e6
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x1a0]
call fcn.004146d3
mov byte [ebp - 4], 0x27
lea ecx, [ebp - 0x60]
mov eax, dword [ebp - 0x18]
push ecx
cmp eax, dword [ebp - 0x14]
je 0x41135d
mov ecx, eax
call fcn.00402020
add dword [ebp - 0x18], 0x18
jmp 0x411366
push eax
lea ecx, [ebp - 0x1c]
call fcn.00416a3b
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x26
call fcn.00402417
lea edx, [ebp - 0xf4]
lea ecx, [ebp - 0x318]
call fcn.0040eccd
cmp dword [eax + 0x14], 8
jb 0x41138b
mov eax, dword [eax]
lea ecx, [ebp - 0x2d8]
push ecx
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.SHLWAPI.dll_SHCreateStreamOnFileEx]
lea ecx, [ebp - 0x318]
call fcn.004020b7
push 2
pop ecx
mov edi, 0xc8
cmp dword [ebp - 0x20], ecx
jb 0x4113d5
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
mov dword [ebp - 0x24], ecx
mov ecx, 0x4b4f
cmovae eax, dword [ebp - 0x34]
mov word [eax], cx
mov byte [eax + 2], 0
jmp 0x4113f0
push 0x449f74
mov byte [ebp - 0x2dc], 0
push dword [ebp - 0x2dc]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00401cfc
lea ecx, [ebp - 0x1a4]
call fcn.00411619
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0x17
call fcn.00402417
jmp 0x411475
mov esi, str.File_not_found
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411413
sub ecx, edx
push ecx
push esi
call dword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
push 9
mov dword [ebp - 0x2d8], eax
mov edi, 0x194
pop eax
cmp dword [ebp - 0x20], eax
jb 0x41145a
cmp dword [ebp - 0x20], 0x10
lea esi, [ebp - 0x34]
push eax
cmovae esi, dword [ebp - 0x34]
push str.Not_Found
push esi
mov dword [ebp - 0x24], eax
call fcn.0041b0b0
add esp, 0xc
mov byte [esi + 9], 0
jmp 0x411475
push str.Not_Found
mov byte [ebp - 0x2dc], 0
lea ecx, [ebp - 0x34]
push dword [ebp - 0x2dc]
push eax
call fcn.00401cfc
push 0x98
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.0041b630
pop ecx
pop ecx
lea ecx, [ebp - 0x23c]
call fcn.00412f0a
mov byte [ebp - 4], 0x28
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
cmp esi, ebx
je 0x4114d7
cmp dword [esi + 0x14], 0x10
mov edx, esi
jb 0x4114ad
mov edx, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x23c]
call fcn.00416767
lea eax, [esi + 0x18]
mov esi, eax
pop ecx
cmp eax, ebx
je 0x4114d7
mov edx, 0x449f84
lea ecx, [ebp - 0x23c]
call fcn.004159d7
jmp 0x4114a3
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xc4]
call fcn.0040eaa7
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0x29
push eax
lea ecx, [ebp - 0x238]
call fcn.004146d3
lea edx, [ebp - 0x60]
mov byte [ebp - 4], 0x2a
lea ecx, [ebp - 0xac]
call fcn.0040eaa7
lea ecx, [ebp - 0x60]
call fcn.00402417
cmp dword [ebp - 0x98], 8
lea edx, [ebp - 0xac]
mov eax, dword [ebp - 0x2fc]
lea ecx, [ebp - 0xc4]
cmovae edx, dword [ebp - 0xac]
cmp dword [ebp - 0xb0], 8
mov esi, dword [eax + 0x70]
cmovae ecx, dword [ebp - 0xc4]
and dword [ebp - 0x48], 0
lea ebx, [ebp - 0x48]
push ebx
push edx
push ecx
push edi
mov byte [ebp - 4], 0x2d
push dword [ebp - 0x2d8]
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x300]
push dword [ebp - 0x48]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov byte [ebp - 4], 0x2f
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x41157e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0xac]
call fcn.004020b7
lea ecx, [ebp - 0xc4]
call fcn.004020b7
lea ecx, [ebp - 0x23c]
call fcn.00411619
lea ecx, [ebp - 0xf4]
call fcn.004020b7
lea ecx, [ebp - 0x94]
call fcn.00402417
lea ecx, [ebp - 0x1c]
call fcn.0040381e
lea ecx, [ebp - 0x34]
call fcn.00402417
lea ecx, [ebp - 0xdc]
call fcn.00402417
mov byte [ebp - 4], 0x30
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4115e1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x10c]
call fcn.00402417
cmp dword [ebp - 0x40], 0
je 0x4115fb
push dword [ebp - 0x40]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 4], 0x31
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x41160f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
call fcn.0041a26f
ret 4