Function at 0x42f31e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x42f48d
lea eax, [ebp + 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x42f449
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x42f3a7
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x42f3a2
push 0
push 0x10d4
push 0x115e
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetSystemPaletteEntries]
jmp 0x42f447
mov dword [ebp - 0x6c], 0xfffffffc
mov dword [ebp - 0x68], 0xfffffffc
mov dword [ebp - 0x64], 0xfffffffc
mov dword [ebp - 0x60], 0xfffffffc
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x6c], 0
jmp 0x42f3e8
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x6c]
inc eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x6c], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x6c], 0x1d
jle 0x42f447
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x42f40c
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jge 0x42f41f
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x5c], 0xffff
jmp 0x42f405
mov dword [ebp - 8], 0
jmp 0x42f42f
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jg 0x42f445
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x5c]
mov dword [ebp + ecx*4 - 0x5c], eax
jmp 0x42f428
jmp 0x42f3d3
jmp 0x42f488
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
push 0
push 1
push dword [ebp - 0x34]
push 0x58c7
push 0x4c18
push 0x5343
push 0xf0c
push 0x1260
push 0x51c5
push 0x671d
push 0x1330
push 0
call fcn.004395b3
add esp, 0x30
jmp 0x42f550
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x42f53e
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x42f4d5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
jmp 0x42f53c
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], 2
jmp 0x42f4f7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jl 0x42f53c
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x42f53a
push 0xe2b
push 0x7460
push 0x7040
push 0
push 0
push 0x59c4
push 0x7744
push 0x5fbf
push 0x4a6b
call fcn.004316c6
add esp, 0x24
jmp 0x42f4ec
jmp 0x42f550
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
push 0
push dword [ebp - 0x54]
call fcn.0042da21
pop ecx
pop ecx
mov esp, ebp
pop ebp
ret