Function at 0x41fc70
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5801f0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x6236f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
lea edi, [esi + 8]
push ebx
mov ecx, edi
call fcn.00407060
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.0041ece0
add esp, 8
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x10]
push 0
push 0x80
push ecx
push 0
push edx
push eax
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x41fd1e
lea ecx, [ebx - 0xc]
cmp ecx, dword [0x610020]
je 0x41fd05
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41fd05
push esi
call fcn.00551d56
add esp, 4
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea edx, [ebp + 8]
push edi
push edx
call fcn.0041f460
mov eax, dword [eax]
push 0x5a83e4
push eax
call fcn.00552b07
add esp, 0x10
test eax, eax
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
sete bl
cmp ecx, dword [0x610020]
je 0x41fd68
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41fd68
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
push eax
call fcn.00551d56
add esp, 4
test bl, bl
je 0x41fe8d
mov edx, dword [esi]
mov edx, dword [edx + 8]
lea eax, [ebp - 0x14]
push eax
push 2
lea ecx, [ebp + 8]
push ecx
mov ecx, esi
call edx
cmp eax, 0x80004005
jne 0x41fdcd
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
mov eax, dword [0x610024]
mov dword [ebp + 0x14], eax
mov ecx, dword [edi]
push ecx
mov byte [ebp - 4], 1
push str.CFileNormal::Open___s_
lea edx, [ebp + 0x14]
push edx
call fcn.0040d8d0
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040e630
push 0x5fa440
lea ecx, [ebp - 0x24]
push ecx
call fcn.00551aaa
mov edx, dword [esi]
mov edx, dword [edx + 8]
lea eax, [ebp - 0x14]
push eax
push 4
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call edx
cmp eax, 0x80004005
jne 0x41fe06
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
mov eax, dword [0x610024]
mov dword [ebp + 0x14], eax
mov ecx, dword [edi]
push ecx
mov byte [ebp - 4], 2
push 0x5a8364
jmp 0x41fda7
cmp word [ebp + 8], 1
jne 0x41fe51
mov edx, dword [esi]
mov edx, dword [edx + 8]
lea eax, [ebp - 0x14]
push eax
push 4
lea ecx, [ebp + 0x10]
push ecx
mov ecx, esi
call edx
cmp eax, 0x80004005
jne 0x41fe49
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
mov eax, dword [0x610024]
mov dword [ebp + 0x14], eax
mov ecx, dword [edi]
push ecx
mov byte [ebp - 4], 3
push 0x5a8318
jmp 0x41fda7
mov edx, dword [ebp + 0x10]
mov dword [esi + 0x14], edx
jmp 0x41fe57
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x14], eax
mov ecx, dword [esi + 4]
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41fea4
lea ecx, [ebp - 0x10]
call fcn.0043d750
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [esi + 4]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x14], eax
cmp eax, 0xffffffff
jne 0x41fea4
mov dword [esi + 0x14], eax
mov esi, dword [ebp - 0x10]
lea eax, [esi - 0xc]
cmp eax, dword [0x610020]
je 0x41fec9
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41fec9
push esi
call fcn.00551d56
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10