Function at 0x4ab220
Capabilities:
Get file size

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0xa8]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dl, byte [esp + 0x38]
test dl, dl
mov eax, dword [esi + 0x50]
je 0x4ab263
mov ecx, dword [esi + 0x44]
cmp eax, ecx
jae 0x4ab24f
mov edi, dword [esi + 0x54]
cmp edi, ecx
jb 0x4ab279
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x44]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x14
mov ecx, dword [esi + 0x48]
cmp eax, ecx
jae 0x4ab674
mov edi, dword [esi + 0x54]
cmp edi, ecx
jae 0x4ab674
cmp edi, eax
jae 0x4ab27f
mov edi, eax
xor ebx, ebx
test dl, dl
mov dword [esp + 0x38], ebx
je 0x4ab28e
mov eax, dword [esi + 0x44]
jmp 0x4ab291
mov eax, dword [esi + 0x48]
cmp eax, edi
jbe 0x4ab29d
sub eax, edi
mov dword [esp + 0x38], eax
mov ebx, eax
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x40]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
mov ebp, edi
mov dword [esp + 0x14], ebp
je 0x4ab2ca
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
lea eax, [esi + 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0
jbe 0x4ab5f6
jmp 0x4ab2f8
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x38]
call fcn.00419310
mov ecx, eax
xor edx, edx
mov eax, ebp
div dword [ecx + 0xac]
movzx edi, al
call fcn.00419310
mov edx, dword [eax + 0xac]
imul edx, edi
sub ebp, edx
mov dword [esp + 0x3c], ebx
call fcn.00419310
mov eax, dword [eax + 0xac]
sub eax, ebp
cmp ebx, eax
jbe 0x4ab342
call fcn.00419310
mov eax, dword [eax + 0xac]
sub eax, ebp
mov dword [esp + 0x3c], eax
lea eax, [esi + 0xa8]
push eax
mov ebx, 0x68c820
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + edi*4 + 0x80]
lea eax, [esi + 0xa8]
push eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x20]
cmp eax, 4
ja case.default.0x4ab381
jmp dword [eax*4 + 0x4ab688]
cmp dword [esi + 0x1c], 8
jb 0x4ab393
mov eax, dword [esi + 8]
jmp 0x4ab396
lea eax, [esi + 8]
xor ebp, ebp
push ebp
push 0x10000000
push 3
push ebp
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4ab498
lea edx, [esp + 0x24]
push edx
push edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, ebp
je 0x4ab498
lea ebp, [esi + 0xa8]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esi + 0x3c]
mov eax, dword [esi + 0x44]
mov edi, dword [esi + 0x40]
add ebx, eax
push ebp
adc edi, 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, dword [esp + 0x28]
jb 0x4ab498
ja 0x4ab417
cmp ebx, dword [esp + 0x24]
jbe 0x4ab498
call fcn.00419310
mov ebp, dword [eax + 0xac]
call fcn.00419310
mov eax, dword [eax + 0xac]
mov ecx, ebx
sub ecx, dword [esp + 0x24]
cdq
sbb edi, dword [esp + 0x28]
cmp edi, edx
ja 0x4ab448
jb 0x4ab442
cmp ecx, eax
jae 0x4ab448
sub ebx, dword [esp + 0x24]
mov ebp, ebx
xor eax, eax
test ebp, ebp
jbe 0x4ab490
mov ecx, dword [esi + 0xda]
push 0x50f550
push ecx
call fcn.00418e20
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add esp, 8
push 0x80
push 0x68c820
push ebp
push edx
push eax
sub esp, 0x1c
lea eax, [esi + 4]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
call fcn.00406510
mov ecx, esi
call fcn.004a98e0
test eax, eax
jl 0x4ab67e
mov eax, dword [esp + 0x3c]
jmp 0x4ab565
cmp dword [esi + edi*4 + 0x58], 0
jne 0x4ab4b6
push 1
call fcn.004abec0
add esp, 4
mov dword [esi + edi*4 + 0x58], eax
mov ecx, dword [esi + edi*4 + 0x58]
mov edx, dword [esp + 0x3c]
add ecx, ebp
push ecx
push edx
call fcn.00419310
mov eax, dword [eax + 0xac]
imul eax, edi
xor edx, edx
push edx
add eax, ebp
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0xffffffffffffffff
lea eax, [esi + 0x20]
push edx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], edx
push eax
mov word [ecx + 4], dx
call fcn.00401640
mov ecx, esi
call fcn.004a9c90
test eax, eax
jle case.default.0x4ab381
mov ebx, dword [esi + edi*4 + 0x58]
add ebx, ebp
mov eax, dword [esp + 0x3c]
test eax, eax
jbe 0x4ab561
mov edx, dword [esp + 0x14]
push 0x80
push ebx
push eax
xor eax, eax
add edx, dword [esp + 0x38]
adc eax, dword [esp + 0x3c]
xor edi, edi
push eax
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x6c], esp
push 0xffffffffffffffff
lea eax, [esi + 4]
push edi
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], edi
push eax
mov word [ecx + 4], di
call fcn.00401640
mov ecx, esi
call fcn.004a98e0
cmp eax, edi
jl 0x4ab67e
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add dword [esp + 0x14], eax
add dword [esp + 0x18], eax
cmp eax, dword [esp + 0x38]
jbe 0x4ab587
mov dword [esp + 0x38], 0
jmp 0x4ab58b
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
jmp 0x4ab561
sub dword [esp + 0x38], eax
cmp dword [esp + 0x48], 0
ja 0x4ab599
cmp dword [esp + 0x44], 0
jbe 0x4ab5c3
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esi + 0xd0]
call fcn.00411460
fstp qword [esp + 0x3c]
call fcn.00419310
fld qword [esp + 0x3c]
fcomp qword [eax + 0xb8]
fnstsw ax
test ah, 0x41
je 0x4ab5e0
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, 0x14
mov dword [esp + 0x1c], eax
ja 0x4ab5f6
cmp dword [esp + 0x38], 0
ja 0x4ab2f0
jmp 0x4ab5f6
mov edx, dword [esi + 0xda]
push 0x50f4e8
push 2
push edx
call fcn.00418e80
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x44]
cmp ecx, eax
mov dword [esi + 0x54], ecx
jbe 0x4ab607
mov dword [esi + 0x54], eax
xor ebx, ebx
call fcn.00419310
mov ecx, eax
mov eax, dword [esi + 0x54]
xor edx, edx
div dword [ecx + 0xac]
test eax, eax
jl 0x4ab667
lea edi, [esi + 0x58]
call fcn.00419310
cmp ebx, dword [eax + 0xb0]
jge 0x4ab667
mov eax, dword [edi]
test eax, eax
mov dword [edi + 0x28], 4
je 0x4ab64b
push eax
call fcn.004abf30
add esp, 4
mov dword [edi], 0
add ebx, 1
add edi, 4
call fcn.00419310
mov ecx, eax
mov eax, dword [esi + 0x54]
xor edx, edx
div dword [ecx + 0xac]
cmp ebx, eax
jle 0x4ab622
mov eax, dword [esi + 0x54]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x48]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x14