Function at 0x4224e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
lea edi, [esi + 0xdd0]
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
lea ebx, [eax + 1]
mov dword [ecx], ebx
cmp ebx, dword [edi + 0x18]
jbe 0x422533
lea eax, [ebx*4]
cmp eax, dword [edi + 4]
jbe 0x42252d
cmp eax, dword [edi + 0xc]
ja 0x422533
push dword [edi + 0x14]
mov ecx, edi
call fcn.004594d0
test eax, eax
je 0x422533
lea eax, [ebx*4]
mov dword [edi + 8], eax
mov dword [edi + 0x18], ebx
mov eax, dword [edi]
mov edi, dword [esp + 0x10]
mov edi, dword [eax + edi*4]
mov ecx, dword [edi + 8]
cmp ecx, 0xffffffff
je 0x422563
lea eax, [edi + 0x20]
push eax
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [edi + 0x2c]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 0x28], eax
cmp dword [esi + 0x880], 0
mov eax, dword [edi + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x18], eax
jne 0x42258d
cmp dword [esi + 0x884], 0
jne 0x42258d
mov eax, dword [edi + 0x30]
mov ebx, 3
jmp 0x42259f
mov eax, dword [edi + 0x30]
mov ebx, 9
test eax, eax
mov ecx, 4
cmovne ebx, ecx
xor ecx, ecx
cmp ebx, 9
sete cl
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0x690]
test eax, 0x400
je 0x4225cc
mov eax, ecx
mov dword [esp + 0x14], 1
and eax, 0x4000
or eax, 0
je 0x4225d4
mov dword [esp + 0x14], 0
mov eax, dword [esi + 0xdb8]
and ecx, 0x40000
or ecx, 0
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0xdbc]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0
je 0x422669
test dword [esi + 0x8c8], 0x800
je 0x422669
test dword [esi + 0x8cc], 0x800
je 0x422669
cmp ebx, 9
je 0x422669
mov ecx, dword [edi + 8]
cmp ecx, 0xffffffff
je 0x422669
lea eax, [edi + 0x78]
push eax
push ecx
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov ecx, esi
push dword [esp + 0x20]
push dword [esi + 0x830]
call fcn.004228b0
push eax
mov ecx, esi
call fcn.0041f7f0
cmp eax, 2
jne 0x422669
push 0
push edi
push 0
push 0xc
mov ecx, esi
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00423340
jmp 0x4227cf
mov eax, dword [esp + 0x1c]
or eax, dword [esp + 0x18]
jne 0x422679
cmp dword [esp + 0x14], eax
je 0x422686
cmp dword [esi + 0x864], 0
jne 0x422708
push 0
push edi
push 0
push ebx
mov ecx, esi
call fcn.00423340
cmp dword [esi + 0x864], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x28], 1
jne 0x4226f2
cmp dword [esp + 0x14], 0
jne 0x4226f2
mov eax, dword [esi + 0xb50]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
add dword [eax + 0x18], ecx
adc dword [eax + 0x1c], edx
test dword [esi + 0x698], 0x300
je 0x4226f2
cmp dword [esi + 0x85c], 0
je 0x4226f2
mov eax, dword [esi + 0xb50]
add dword [eax + 0x50], ecx
adc dword [eax + 0x54], edx
mov eax, dword [esi + 0xb50]
add dword [eax + 0x48], 1
adc dword [eax + 0x4c], 0
cmp ebx, 4
jne 0x4227d3
cmp dword [esi + 0x864], 0
je 0x4227d3
cmp dword [edi + 8], 0xffffffff
jne 0x422785
cmp ebx, 9
je 0x422733
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push dword [esp + 0x1c]
mov ecx, esi
push dword [esp + 0x24]
push dword [esp + 0x40]
call fcn.00418270
jmp 0x422743
mov eax, dword [esi + 0x690]
and eax, 0x40000000
or eax, 0
je 0x42277b
push 0
push dword [ebp + 0xc]
mov ecx, esi
push dword [esp + 0x18]
push dword [esi + 0x830]
call fcn.004228b0
mov ecx, dword [esi + 0x848]
cmp ebx, 9
lea eax, [eax + ecx*2]
mov ecx, str.OpenFile
push eax
mov eax, str.OpenFile_st_
cmovne eax, ecx
mov ecx, esi
push eax
call fcn.00419420
mov dword [esp + 0xc], 0
jmp 0x4227d3
cmp dword [esp + 0x14], 0
mov ecx, esi
push edi
je 0x42279e
push dword [ebp + 0xc]
push dword [esp + 0x18]
push ebx
call fcn.00421cc0
jmp 0x4227ab
push ebx
push dword [ebp + 0xc]
push dword [esp + 0x1c]
call fcn.00421fa0
mov dword [esp + 0xc], eax
cmp ebx, 4
jne 0x4227d3
test eax, eax
je 0x4227d3
cmp dword [esi + 0xff4], 0
jne 0x4227d3
push edi
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.00421ac0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
cmp dword [esi + 0xdb8], eax
jne 0x4227eb
mov eax, dword [esp + 0x24]
cmp dword [esi + 0xdbc], eax
je 0x422801
cmp ebx, 4
jne 0x422801
push 0
push 0
push 0
push 0xa
mov ecx, esi
call fcn.00423340
jmp 0x422806
cmp ebx, 9
je 0x422884
cmp dword [esi + 0x684], 4
jne 0x422884
mov eax, dword [ebp + 8]
mov ecx, esi
push dword [eax]
call fcn.00421730
mov ebx, dword [esp + 0xc]
test ebx, ebx
jne 0x42284a
mov eax, dword [esp + 0x20]
cmp dword [esi + 0xdb8], eax
jne 0x42283b
mov eax, dword [esp + 0x24]
cmp dword [esi + 0xdbc], eax
je 0x4228a3
cmp dword [esp + 0x28], 0
mov dword [esp + 0x28], 3
je 0x422852
mov dword [esp + 0x28], 1
mov eax, dword [esi + 0x830]
lea edx, [edi + 0xb8]
mov ecx, dword [ebp + 0xc]
lea ecx, [eax + ecx*2]
call fcn.0041ae30
push dword [esp + 0x28]
mov ecx, dword [ebp + 0xc]
inc ecx
add eax, ecx
mov ecx, esi
push edi
push eax
push dword [esi + 0x830]
call fcn.004229d0
jmp 0x422888
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x4228a3
cmp dword [esi + 0xff4], 0
jne 0x4228a3
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8