Function at 0x41f4e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4a8530
push 0x47eeb0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x4aab30]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x28], edi
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x24], edi
xor eax, eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov ebx, eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 4], edi
push 0x90
call fcn.0047a780
add esp, 4
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, edi
je 0x41f6e0
push 0x90
push edi
push esi
call fcn.0047d730
add esp, 0xc
mov al, byte [ebp + 8]
mov byte [esi + 0x83], al
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
push 0x12
push esi
mov ecx, dword [ebp + 0xc]
push ecx
lea eax, [ebp - 0x34]
call fcn.0041eee0
add esp, 0xc
test eax, eax
jne 0x41f6e0
mov eax, 0x12
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edi
mov dword [esi + 0x12], eax
mov dword [esi + 0x16], edi
mov eax, dword [esi]
mov dword [ebp - 0x44], eax
mov edx, dword [esi + 4]
mov dword [ebp - 0x40], edx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x57], ecx
mov edx, dword [ebp + 0x10]
mov dword [esi + 0x5f], edx
mov edi, eax
shl edi, 4
add edi, eax
push edi
call fcn.0047a780
add esp, 4
mov dword [esi + 0x7f], eax
test eax, eax
je 0x41f6de
push edi
push eax
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x34]
call fcn.0041eee0
add esp, 0xc
test eax, eax
jne 0x41f6de
add edi, 0x12
adc eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edi
mov dword [esi + 0x1a], edi
mov dword [esi + 0x1e], eax
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [esi + 0x57]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41f6de
mov edi, dword [ebp - 0x4c]
sub edi, dword [ebp - 0x34]
mov dword [ebp - 0x58], edi
je 0x41f620
push edi
call fcn.0047a780
add esp, 4
mov dword [ebp - 0x50], eax
mov ebx, eax
mov dword [esi + 0x3b], ebx
mov eax, edi
cdq
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
mov dword [esi + 0x22], eax
mov dword [esi + 0x26], edx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x54], ebx
test ebx, ebx
je 0x41f691
xor edi, edi
mov dword [ebp - 0x3c], edi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
cmp ebx, edx
ja 0x41f68e
jb 0x41f650
cmp edi, eax
jae 0x41f68e
mov eax, dword [esi + 0x1a]
add eax, edi
mov dword [ebp - 0x34], eax
mov ecx, dword [esi + 0x1e]
adc ecx, ebx
mov dword [ebp - 0x30], ecx
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x50]
lea ecx, [edi + eax]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0041ec70
add esp, 0x18
test al, al
jne 0x41f6b6
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [ebp - 0x50]
lea eax, [esi + 0x3f]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
test ebx, ebx
je 0x41f6d3
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push ebx
mov eax, dword [ebp - 0x54]
push eax
call fcn.0041e860
add esp, 0x10
jmp 0x41f6da
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x41f68e
add edi, eax
mov dword [ebp - 0x3c], edi
adc ebx, 0
mov dword [ebp - 0x38], ebx
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
jmp 0x41f646
mov edx, esi
call fcn.0041ec20
mov byte [ebp - 0x1d], 1
xor edi, edi
mov dword [ebp - 4], 0xfffffffe
call fcn.0041f705
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret