Function at 0x411fc0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c130
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x4ade78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4adbb8]
mov ecx, 0x4adbb8
mov dword [ebp - 0x18], 0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x41206d
push 0x490f70
push eax
call fcn.0046236e
add esp, 8
test eax, eax
sete al
test al, al
jne 0x41206d
lea eax, [ebp - 0x20]
push eax
call fcn.00420c30
mov ecx, dword [eax]
xor eax, eax
add esp, 4
test ecx, ecx
setne al
mov dword [ebp - 0x18], 1
test eax, eax
jne 0x412055
push 0x80004005
call fcn.00403930
push ecx
push dword [esi]
call fcn.0046236e
add esp, 8
test eax, eax
sete al
mov byte [ebp - 0xe], 0
test al, al
je 0x412071
mov byte [ebp - 0xe], 1
or ebx, 0xffffffff
test byte [ebp - 0x18], 1
je 0x412096
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412096
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xe], 0
je 0x41212d
lea eax, [ebp - 0x24]
push eax
call fcn.00420c30
add esp, 4
mov ecx, dword [eax]
mov esi, dword [ebp - 0x14]
lea edx, [ecx - 0x10]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
cmp edx, esi
je 0x412104
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4120f8
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4120f8
push edx
call fcn.00403ee0
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x4120f0
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [ebp - 0x14], eax
jmp 0x412104
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00408620
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412415
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x412415
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x20], edi
cmp edi, 0xffffffff
jne 0x4121df
lea eax, [ebp - 0x20]
push eax
call fcn.00420c30
add esp, 4
mov ecx, dword [eax]
mov esi, dword [ebp - 0x14]
lea edx, [ecx - 0x10]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
cmp edx, esi
je 0x4121b6
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4121aa
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4121aa
push edx
call fcn.00403ee0
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x4121a2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
add eax, 0x10
mov dword [ebp - 0x14], eax
jmp 0x4121b6
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00408620
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412415
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x412415
lea eax, [ebp - 0x30]
push eax
xorps xmm0, xmm0
push edi
movq qword [ebp - 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x412238
lea eax, [ebp - 0x24]
push eax
call fcn.00420c30
add esp, 4
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x14]
call fcn.00402970
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41240e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41240e
cmp dword [ebp - 0x2c], 0
je 0x412250
lea eax, [ebp - 0x24]
push eax
call fcn.00420c30
add esp, 4
mov byte [ebp - 4], 4
jmp 0x412206
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x41240e
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.00416ee0
mov esi, dword [ebp - 0x3c]
push 0
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0x28], 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4122b5
mov byte [ebp - 4], al
test esi, esi
je 0x41240e
push esi
call fcn.00460a34
add esp, 4
jmp 0x41240e
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xf]
push eax
lea eax, [ebp - 0xd]
push eax
push esi
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xf], 0
mov dword [ebp - 0x1c], 0
call fcn.00459b20
add esp, 0x10
cmp byte [ebp - 0xd], 0
je 0x412303
mov edi, dword [ebp + 8]
push edi
call fcn.00420c30
add esp, 4
test esi, esi
je 0x4122f8
push esi
call fcn.00460a34
add esp, 4
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
jmp 0x412476
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x41231d
add eax, esi
push eax
push esi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00416bf0
mov esi, dword [ebp - 0x3c]
cmp byte [ebp - 0xf], 0
mov edi, dword [ebp - 0x38]
je 0x412344
mov ecx, esi
cmp esi, edi
je 0x412344
lea esp, [esp]
mov dl, byte [ecx]
mov bl, byte [ecx + 1]
mov byte [ecx + 1], dl
mov byte [ecx], bl
add ecx, 2
cmp ecx, edi
jne 0x412330
or ebx, 0xffffffff
sub edi, esi
cmp byte [esi + edi - 1], 0
je 0x412394
call fcn.00412620
test al, al
jne 0x412368
push 4
call fcn.00460a63
mov ecx, dword [0x4af2c0]
add esp, 4
mov dword [eax], ecx
inc edi
push edi
lea ecx, [ebp - 0x3c]
call fcn.00416ee0
mov esi, dword [ebp - 0x3c]
mov byte [esi + edi - 1], 0
cmp byte [ebp - 0xd], 0
je 0x4123c4
inc edi
push edi
lea ecx, [ebp - 0x3c]
call fcn.00416ee0
mov esi, dword [ebp - 0x3c]
mov byte [esi + edi - 1], 0
jmp 0x4123af
cmp byte [ebp - 0xd], 0
je 0x4123c4
lea eax, [edi + 2]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00416ee0
mov esi, dword [ebp - 0x3c]
mov word [esi + edi], 0
cmp byte [ebp - 0xd], 0
je 0x4123c4
push esi
lea ecx, [ebp - 0x24]
call fcn.00401b30
mov byte [ebp - 4], 6
jmp 0x4123d1
push esi
lea ecx, [ebp - 0x24]
call fcn.00401bd0
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x14]
call fcn.00402970
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
mov byte [ebp - 4], 5
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4123fa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
test esi, esi
je 0x41240b
push esi
call fcn.00460a34
add esp, 4
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x41243e
cmp ecx, dword [esi]
jne 0x41243e
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x41246e
mov eax, dword [ecx]
push 1
push dword [esi + 4]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x412452
call fcn.00408840
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov ecx, dword [esi + 4]
inc ecx
push ecx
lea eax, [esi + 0x10]
push eax
push ecx
lea eax, [edi + 0x10]
push eax
call fcn.00462094
add esp, 0x10
lea eax, [edi + 0x10]
mov edi, dword [ebp + 8]
mov dword [edi], eax
lea eax, [esi + 0xc]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x412491
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
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