Function at 0x440500
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4cb5c8
mov eax, dword fs:[0]
push eax
sub esp, 0x8d0
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x8c8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50a4c0]
xor eax, esp
push eax
lea eax, [esp + 0x8e4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x8f4]
xor ebx, ebx
mov byte [esp + 0x1c], bl
mov dword [esp + 0x18], ebx
lea esi, [ebp + 0x14c]
mov dword [esp + 0x8ec], ebx
mov eax, dword [esi]
mov dword [esp + 0x20], esi
cmp eax, ebx
je 0x440577
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
jne 0x44056f
mov ecx, fcn.004a4a7f
push eax
call ecx
add esp, 4
mov dword [esi], ebx
mov edi, ebp
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.0043f3b0
test al, al
jne 0x4406ab
lea esi, [esp + 0x56c]
call fcn.00437080
mov esi, vtable.t_fileRead.0
mov dword [esp + 0x56c], esi
mov dword [esp + 0x8c0], 0x4f396c
mov dword [esp + 0x8c4], ebx
mov dword [esp + 0x8c8], ebx
cmp byte [ebp + 0x120], bl
je 0x4405ca
add ebp, 0x10
jmp 0x4405cd
mov ebp, dword [ebp + 0xc]
lea ecx, [esp + 0x4c]
call fcn.00430920
lea eax, [ebp + 4]
lea edx, [esp + 0x4c]
call fcn.00430b00
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x1c]
lea edi, [esp + 0x570]
mov byte [esp + 0x8f0], 3
call fcn.0043c1b0
mov byte [esp + 0x8ec], 1
mov dword [esp + 0x4c], vtable.t_str.0
cmp byte [esp + 0x168], bl
jne 0x44062d
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x58]
cmp eax, ecx
je 0x44062d
push eax
call fcn.004a4a7f
add esp, 4
push 0x98
lea edx, [esp + 0x54]
push ebx
push edx
mov dword [esp + 0x58], ebx
call fcn.004a7380
mov ecx, dword [esp + 0x57c]
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x44066c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x44066e
mov ebx, edi
lea edx, [esp + 0x4c]
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 0x20]
push edx
call fcn.00441000
mov byte [esp + 0x8ec], 0
lea ecx, [esp + 0x56c]
mov dword [esp + 0x56c], esi
mov dword [esp + 0x8c0], 0x4f3cb0
call fcn.00437100
jmp 0x4409c5
lea esi, [esp + 0x20c]
call fcn.00437080
mov esi, vtable.t_fileRead.0
mov dword [esp + 0x20c], esi
mov dword [esp + 0x560], 0x4f396c
mov dword [esp + 0x564], ebx
mov dword [esp + 0x568], ebx
lea edi, [ebp + 0x10]
cmp byte [ebp + 0x120], bl
jne 0x4406ea
mov edi, dword [ebp + 0xc]
lea ecx, [esp + 0x4c]
call fcn.00430920
lea eax, [edi + 4]
lea edx, [esp + 0x4c]
call fcn.00430b00
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x1c]
lea edi, [esp + 0x210]
mov byte [esp + 0x8f0], 6
call fcn.0043c1b0
test al, al
mov byte [esp + 0x8ec], 4
sete byte [esp + 0x17]
mov dword [esp + 0x4c], vtable.t_str.0
cmp byte [esp + 0x168], bl
jne 0x440751
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x58]
cmp eax, ecx
je 0x440751
push eax
call fcn.004a4a7f
add esp, 4
cmp byte [esp + 0x17], bl
je 0x44078c
mov byte [esp + 0x8ec], bl
mov dword [esp + 0x20c], esi
lea ecx, [esp + 0x20c]
mov dword [esp + 0x560], 0x4f3cb0
call fcn.00437100
lea ecx, [esp + 0x18]
call fcn.0042c930
xor al, al
jmp 0x4409d0
push 0x10
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x56c]
call fcn.0043c200
test al, al
je 0x440757
mov ecx, dword [esp + 0x28]
cmp ecx, dword [ebp + 0x12c]
jne 0x440757
xor eax, eax
push 0x14
lea edx, [esp + 0x3c]
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov word [esp + 0x49], ax
mov byte [esp + 0x4b], al
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x56c]
mov byte [esp + 0x44], bl
mov dword [esp + 0x54], ebx
call fcn.0043c200
mov edx, dword [esp + 0x30]
imul edx, edx, 0x9ae42313
mov eax, 0x14
lea ecx, [esp + 0x38]
call fcn.0043f030
mov ecx, dword [esp + 0x48]
push ecx
mov edi, eax
call fcn.004a4b5c
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
mov byte [esp + 0x8ec], 7
mov edx, dword [esp + 0x48]
push edx
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x56c]
call fcn.0043c200
mov eax, dword [esp + 0x48]
mov edx, edi
mov ecx, esi
call fcn.0043f030
mov ecx, dword [esp + 0x48]
xor eax, eax
push ecx
mov dword [esp + 0x8d1], eax
mov dword [esp + 0x8d5], eax
mov dword [esp + 0x8d9], eax
mov word [esp + 0x8dd], ax
mov byte [esp + 0x8df], al
push esi
lea eax, [esp + 0x8d4]
lea edi, [ecx + 0x24]
mov byte [esp + 0x8d4], bl
call fcn.0043ec50
add esp, 8
mov eax, 0x10
lea ecx, [esp + 0x38]
lea edx, [esp + 0x8cc]
lea esp, [esp]
mov ebp, dword [edx]
cmp ebp, dword [ecx]
jne 0x4409fa
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4408a0
mov eax, dword [esp + 0x48]
xor ebp, ebp
mov dword [esp + 0x8cc], esi
mov dword [esp + 0x8d0], eax
mov dword [esp + 0x8d4], esi
mov byte [esp + 0x8d8], bl
cmp eax, ebx
jbe 0x4408ea
mov ebp, dword [esi]
lea edx, [esi + 4]
mov dword [esp + 0x8d4], edx
cmp ebp, ebx
jle 0x4409a9
jmp 0x440900
lea eax, [esp + 0x174]
push eax
lea ecx, [esp + 0x8d0]
call fcn.004448c0
push 0x98
lea ecx, [esp + 0x54]
push ebx
push ecx
call fcn.004a7380
mov edx, dword [esp + 0x180]
mov eax, dword [esp + 0x184]
add esp, 0xc
push 0x7f
lea ecx, [esp + 0x190]
push ecx
mov dword [esp + 0x54], edx
lea edx, [esp + 0x6c]
push 0x80
push edx
mov dword [esp + 0x60], eax
call fcn.004a649e
mov ecx, dword [esp + 0x190]
mov eax, dword [esp + 0x18c]
mov edx, dword [esp + 0x194]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x68], ecx
add esp, 0x10
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x188]
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0xe8], edi
call fcn.00441000
add edi, dword [esp + 0x50]
xor ebx, ebx
sub ebp, 1
jne 0x440900
push esi
call fcn.004a4a7f
add esp, 4
lea ecx, [esp + 0x20c]
mov byte [esp + 0x8ec], bl
call fcn.0043c190
lea ecx, [esp + 0x18]
call fcn.0042c930
mov al, 1
mov ecx, dword [esp + 0x8e4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8c8]
xor ecx, esp
call fcn.004a4a25
add esp, 0x8dc
ret 4
movzx eax, byte [edx]
movzx ebp, byte [ecx]
sub eax, ebp
jne 0x440a26
movzx eax, byte [edx + 1]
movzx ebp, byte [ecx + 1]
sub eax, ebp
jne 0x440a26
movzx eax, byte [edx + 2]
movzx ebp, byte [ecx + 2]
sub eax, ebp
jne 0x440a26
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
cmp eax, ebx
je 0x4408b8
push esi
call fcn.004a4a7f
mov byte [esp + 0x8f0], bl
add esp, 4
mov dword [esp + method.t_fileRead.virtual_0], vtable.t_fileRead.0
jmp 0x440765