Function at 0x42eb38
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push esi
lea edx, [ecx + 0x17b4]
push edi
push edx
push 0xa
push ecx
mov dword [eax + GetClientRect], 0
push dword [ebp + 8]
mov dword [ebp - 0x14], edx
call fcn.0042ddae
add esp, 0x10
cmp eax, 0x3f1
mov dword [ebp - 0xc], eax
jne 0x42eb7c
pop edi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
test eax, eax
jne 0x42edd9
mov esi, dword [ebp - 0x14]
push esi
call fcn.0042de88
add esp, 4
mov ebx, eax
cmp eax, 0xffffffff
jne 0x42eba6
pop edi
mov eax, 0x94
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
test eax, eax
je 0x42ed4a
push 0
lea ecx, [ebp - 0x10]
push ecx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x42ebe1
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0xc]
jne 0x42ebf6
pop edi
mov eax, 0x92
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x42ebff
cmp dword [ebp - 0x10], esi
je 0x42ec0b
pop edi
mov eax, 0x95
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], esi
mov ecx, dword [ebp - 8]
lea esi, [edi + ecx]
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov ebx, edi
cmp dword [ebp - 8], edx
mov al, byte [ecx + reloc.USER32.DLL_GetClassLongA]
je 0x42ec35
cmp byte [edx + edi], al
jne 0x42ec2f
mov byte [edx + edi], 0x20
inc edx
cmp edx, dword [ebp - 8]
jb 0x42ec26
cmp edi, esi
jae 0x42eca2
mov edx, 1
cmp dword [0x473c3c], edx
jle 0x42ec5a
push 4
movsx ecx, byte [edi]
push ecx
call fcn.00462124
add esp, 8
test eax, eax
jne 0x42eca2
jmp 0x42ec6b
movsx ecx, byte [edi]
mov edx, dword [0x473a30]
test word [edx + ecx*2], 4
jne 0x42eca2
inc ebx
cmp ebx, esi
jae 0x42eca2
mov ecx, 1
cmp dword [0x473c3c], ecx
jle 0x42ec91
push 4
movsx edx, byte [ebx]
push edx
call fcn.00462124
add esp, 8
test eax, eax
je 0x42ec6b
jmp 0x42eca2
movsx edx, byte [ebx]
mov ecx, dword [0x473a30]
test word [ecx + edx*2], 4
je 0x42ec6b
mov ecx, ebx
cmp ebx, esi
jae 0x42ecb7
cmp byte [ebx], 0x20
jl 0x42ecb7
inc ecx
cmp ecx, esi
jae 0x42ecb7
cmp byte [ecx], 0x20
jge 0x42ecad
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
sub ecx, ebx
xor edx, edx
div ecx
cmp eax, 2
mov dword [ebp - 0x10], eax
jae 0x42ecf6
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, 0x92
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0x1fec]
test ecx, ecx
je 0x42ed27
push ecx
call dword [sym.imp.KERNEL32.DLL_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov edx, dword [ebp + 0xc]
push dword [edx + 0x1fec]
call dword [sym.imp.KERNEL32.DLL_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + ecx*2]
lea edx, [edx*8]
push edx
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ecx, dword [ebp + 0xc]
test eax, eax
mov dword [ecx + GetDoubleClickTime], eax
jne 0x42ed56
pop edi
mov eax, 0xffffff9f
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x1fec]
lea edx, [eax + edx*8]
mov dword [ecx + 0x1ff0], edx
mov eax, dword [ebp - 0x10]
lea edx, [edx + eax*8]
mov dword [ecx + 0x1ff4], edx
push dword [ebp - 0x10]
push esi
push ebx
push ecx
call fcn.0042ede8
mov dword [ebp - 0xc], eax
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
add esp, 0x10
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x1fd8]
test edx, edx
je 0x42edc1
push 0x2800
push 0
push edx
call fcn.0046071c
add esp, 0xc
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jne 0x42edd9
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0x203c], 2
jge 0x42edd9
mov ecx, 0x92
pop edi
mov eax, ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret