Function at 0x42aec4
Capabilities:
Get file size

Disassembly:
push 0xa38
mov eax, 0x53cd56
call fcn.00523f05
mov edi, ecx
mov esi, dword [ebp + 8]
xor eax, eax
cmp dword [edi + 0x28], eax
jne 0x42b0f8
test esi, esi
setne al
test eax, eax
jne 0x42aea2
call fcn.00413674
lea ebx, [edi + 0x8c]
push ebx
call fcn.00420f97
push esi
lea ecx, [ebp - 0xa2c]
call fcn.004053d8
and dword [ebp - 4], 0
lea ecx, [ebp - 0xa2c]
push 0
push 0x57d8c0
call fcn.00405d3b
cmp eax, 0xffffffff
jne 0x42afb2
push 0
push 0x54e7f8
lea ecx, [ebp - 0xa2c]
call fcn.00405d3b
cmp eax, 0xffffffff
jne 0x42afb2
push 0
push 0x54b1d4
lea ecx, [ebp - 0xa2c]
call fcn.00405d3b
cmp eax, 0xffffffff
jne 0x42afb2
push 0x104
lea eax, [ebp - 0xa28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x42afb2
xor eax, eax
push eax
push eax
push eax
push eax
push 0x100
lea eax, [ebp - 0x618]
push eax
push 3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xa28]
push eax
call fcn.0052527c
mov ecx, 0x100
lea eax, [ebp - 0x218]
push ecx
push eax
push ecx
lea eax, [ebp - 0x418]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push esi
call fcn.0052527c
add esp, 0x48
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x820]
push 0x104
push eax
call fcn.00527a5c
add esp, 0x18
lea eax, [ebp - 0x820]
lea ecx, [ebp - 0xa2c]
push eax
call fcn.00406459
cmp dword [ebp + 0xc], 0
jbe 0x42b003
xor eax, eax
push eax
push eax
push 3
push eax
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x42b003
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, dword [ebp + 0xc]
jbe 0x42b003
mov ecx, dword [ebp - 0xa2c]
lea ecx, [ecx - 0x10]
call fcn.00401f90
xor eax, eax
jmp 0x42b0f8
cmp dword [edi + 0x34], 0
mov dword [ebp - 0x18], 0x2010
je 0x42b017
mov dword [ebp - 0x18], 0x3010
mov esi, dword [ebp - 0xa2c]
call fcn.004172db
push dword [ebp - 0x18]
xor ecx, ecx
push ecx
mov eax, dword [eax + 8]
push ecx
push ecx
push esi
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebx], eax
test eax, eax
je 0x42afee
lea ecx, [ebp - 0xa44]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
jne 0x42b05c
push dword [ebx]
call dword [sym.imp.GDI32.dll_DeleteObject]
and dword [ebx], 0
jmp 0x42afee
xor esi, esi
lea eax, [ebp - 0xa2c]
inc esi
lea ecx, [edi + 0x98]
push eax
mov dword [edi + 0x18], esi
call fcn.004057ac
push dword [ebp - 0xa2c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x42b087
mov dword [edi + 0x24], esi
mov ax, word [ebp - 0xa32]
movzx ecx, ax
mov dword [edi + 8], ecx
push 0x20
pop esi
cmp ecx, 8
jle 0x42b0b3
cmp ecx, esi
jge 0x42b0b3
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ebx
call fcn.0042b44d
mov ax, word [ebp - 0xa32]
cmp ax, si
jb 0x42b0c2
push dword [edi + 0x3c]
push dword [ebx]
call fcn.0042bfc4
mov ecx, edi
call fcn.0042cdfa
lea esi, [edi + 0x90]
push esi
call fcn.00420f97
and dword [esi], 0
lea esi, [edi + 0x94]
push esi
call fcn.00420f97
mov ecx, dword [ebp - 0xa2c]
and dword [esi], 0
add ecx, 0xfffffff0
call fcn.00401f90
xor eax, eax
inc eax
call fcn.00523eb4
ret 8