Function at 0x410d20
Capabilities:
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00454110
push 0xffffffffffffffff
push 0x469358
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x48b270]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x100c]
mov eax, dword [esi + 0x34]
mov edi, dword [eax + 0x44]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], esi
call fcn.00415050
mov eax, dword [esi + 0xd0]
push 0
push 0x8000000
push 3
push 0
push 1
push SysReAllocString
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x4110f6
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x410de5
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ebx, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x40]
xor ecx, ecx
push eax
mov word [ebp - 0x32], cx
call ebx
jmp 0x410deb
mov ebx, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x58]
push eax
call ebx
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x410e36
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edx
cmp dword [esi + 0x70], 1
jne 0x410f19
cmp dword [ebp - 0x1c], 0
je 0x410f19
cmp dword [esi + 0x90], 0
je 0x410f19
lea eax, [ebp - 0x60]
push eax
lea ecx, [esi + 0x94]
push ecx
call ebx
test eax, eax
je 0x410f19
lea edx, [ebp - 0x60]
push edx
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
je 0x410f19
push 0x130
lea ecx, [ebp - 0x18]
call fcn.00415250
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004155d0
mov eax, dword [edi + 0x2c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00415d50
mov edx, dword [edi + 0x60]
push edx
lea ecx, [ebp - 0x18]
call fcn.004155a0
cmp dword [edi + 0x5c], 0
je 0x410ec6
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x18]
call fcn.004157d0
cmp dword [esi + 0xf4], 0
je 0x410ed7
lea ecx, [ebp - 0x18]
call fcn.004158d0
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004156d0
push 0
lea ecx, [ebp - 0x18]
call fcn.004154e0
push str.text_html
lea ecx, [ebp - 0x18]
call fcn.00415970
mov edx, dword [edi + 0x44]
push edx
lea eax, [esi + 0xf8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00415e40
push 0
push 0x130
jmp 0x411088
mov ecx, dword [ebp - 0x24]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esi + 0x8c], 9
mov ebx, eax
mov dword [ebp - 0x30], ebx
jbe 0x411024
mov ecx, dword [edi + 0x50]
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esi + 0x38]
push eax
lea eax, [ebp - 0x20]
push eax
call edx
push 0xc8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00415250
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x18]
call fcn.004155d0
mov eax, dword [edi + 0x2c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00415d50
mov ecx, dword [edi + 0x60]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004155a0
cmp dword [edi + 0x5c], 0
je 0x410f8f
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x18]
call fcn.004157d0
cmp dword [esi + 0xf4], 0
je 0x410fa0
lea ecx, [ebp - 0x18]
call fcn.004158d0
cmp dword [ebp - 0x1c], 0
je 0x410fb2
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x18]
call fcn.004156d0
push ebx
lea ecx, [ebp - 0x18]
call fcn.004154e0
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00415970
cmp dword [esi + 0x70], 2
jne 0x410fe2
mov edx, dword [edi + 0x44]
push edx
lea eax, [esi + 0xf8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00415e40
jmp 0x410fff
mov eax, dword [edi + 0x44]
mov ecx, dword [ebp - 0x24]
mov edx, dword [esi]
mov edx, dword [edx + 0x5c]
push eax
push ebx
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [esi + 0xf8]
push ecx
mov ecx, esi
call edx
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411082
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x411082
mov eax, 2
cmp dword [esi + 0x70], eax
je 0x411082
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov byte [ebp - 4], al
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x24]
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x1000
lea edx, [ebp]
push edx
push eax
call ebx
test eax, eax
je 0x411072
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x411078
mov ecx, dword [edi + 0x44]
push ecx
push eax
lea edx, [ebp]
push edx
lea ecx, [esi + 0xf8]
call fcn.00415ef0
cmp dword [ebp - 0x1c], 0
jne 0x41103e
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 0x30]
push ebx
push 0xc8
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
mov ecx, esi
call eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411137
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x411129
mov eax, dword [esi + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x411129
cmp dword [edi + 0x6c], 0
jne 0x41111e
cmp dword [edi + 0x70], 0
je 0x411129
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
lea eax, [esi + 0x78]
push eax
jmp 0x411133
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push 0x194
mov ecx, esi
call edx
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41115d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.004517f0
add ebp, 0x1004
mov esp, ebp
pop ebp
ret 4