Function at 0x446be0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500998
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x54c2c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
setne al
mov dword [ebp - 0x10], ebx
test al, al
je 0x446ca1
lea ecx, [ebp - 0x14]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x446c56
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x446ca1
mov eax, dword [ebp - 0x14]
xor edi, edi
xor edx, edx
add edi, esi
adc eax, edx
test eax, eax
jne 0x446ca1
cmp edi, 0x80000000
ja 0x446ca1
lea esi, [ebp - 0x3c]
call fcn.00419980
lea ecx, [edi + 1]
mov byte [ebp - 4], 1
call fcn.00446e90
push edi
lea ecx, [ebp - 0x10]
push ecx
lea esi, [ebp - 0x18]
mov dword [ebp - 0x14], eax
call fcn.00449fc0
test al, al
jne 0x446cc1
mov edx, dword [ebp - 0x3c]
push edx
call fcn.004e0a60
add esp, 4
cmp ebx, 0xffffffff
je 0x446cad
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
lea esi, [ebp - 0x3c]
mov byte [edi + eax], 0
call fcn.00446ef0
cmp ebx, 0xffffffff
je 0x446ce6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x446ce6
or ebx, 0xffffffff
mov dword [ebp - 0x10], ebx
lea esi, [ebp - 0x30]
call fcn.00406150
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
cmp eax, 0xfde9
jne 0x446d3b
mov eax, esi
call fcn.00447880
test al, al
jne 0x446d66
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004e0a60
mov edx, dword [ebp - 0x3c]
push edx
call fcn.004e0a60
add esp, 8
lea esi, [ebp - 0x10]
call fcn.00424530
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00447440
add esp, 8
mov edi, eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.004061d0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.004e0a60
add esp, 4
cmp dword [ebp - 0x2c], 0
je 0x446d88
mov eax, dword [ebp - 0x30]
mov edx, 0xfeff
cmp word [eax], dx
jne 0x446d88
mov eax, 1
xor ecx, ecx
lea esi, [ebp - 0x30]
call fcn.0040d790
lea esi, [ebp - 0x24]
call fcn.00406150
xor edi, edi
mov byte [ebp - 4], 4
cmp dword [ebp - 0x2c], edi
jle 0x446def
jmp 0x446da0
mov ecx, dword [ebp - 0x30]
movzx eax, word [ecx + edi*2]
cmp eax, 0xa
je 0x446dbc
cmp eax, 0xd
je 0x446dbc
push eax
lea eax, [ebp - 0x24]
call fcn.0040b010
jmp 0x446de9
lea esi, [ebp - 0x24]
call fcn.00446960
call fcn.00446b60
cmp dword [ebp - 0x20], 0
je 0x446dda
mov ecx, dword [ebp + 0xc]
mov edx, esi
push edx
call fcn.0041dc70
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x20], 0
mov word [ecx], ax
inc edi
cmp edi, dword [ebp - 0x2c]
jl 0x446da0
lea edx, [ebp - 0x48]
push edx
call fcn.00433860
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.004337c0
mov edx, dword [ebp - 0x48]
push edx
call fcn.004e0a60
add esp, 4
lea eax, [ebp - 0x48]
push eax
call fcn.00433860
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.004469b0
mov edx, dword [ebp - 0x48]
push edx
call fcn.004e0a60
add esp, 4
lea esi, [ebp - 0x24]
call fcn.00446b60
cmp dword [ebp - 0x20], 0
je 0x446e48
mov ecx, dword [ebp + 0xc]
mov eax, esi
push eax
call fcn.0041dc70
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.004e0a60
mov edx, dword [ebp - 0x30]
push edx
call fcn.004e0a60
mov eax, dword [ebp - 0x3c]
push eax
call fcn.004e0a60
add esp, 0xc
cmp ebx, 0xffffffff
je 0x446e72
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret