Function at 0x42deb8
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 + 0x18b4]
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 0x42defc
pop edi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
test eax, eax
jne 0x42e159
mov esi, dword [ebp - 0x14]
push esi
call fcn.0042de88
add esp, 4
mov ebx, eax
cmp eax, 0xffffffff
jne 0x42df26
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 0x42e0ca
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 0x42df61
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0xc]
jne 0x42df76
pop edi
mov eax, 0x92
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x42df7f
cmp dword [ebp - 0x10], esi
je 0x42df8b
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 0x42dfb5
cmp byte [edx + edi], al
jne 0x42dfaf
mov byte [edx + edi], 0x20
inc edx
cmp edx, dword [ebp - 8]
jb 0x42dfa6
cmp edi, esi
jae 0x42e022
mov edx, 1
cmp dword [0x473c3c], edx
jle 0x42dfda
push 4
movsx ecx, byte [edi]
push ecx
call fcn.00462124
add esp, 8
test eax, eax
jne 0x42e022
jmp 0x42dfeb
movsx ecx, byte [edi]
mov edx, dword [0x473a30]
test word [edx + ecx*2], 4
jne 0x42e022
inc ebx
cmp ebx, esi
jae 0x42e022
mov ecx, 1
cmp dword [0x473c3c], ecx
jle 0x42e011
push 4
movsx edx, byte [ebx]
push edx
call fcn.00462124
add esp, 8
test eax, eax
je 0x42dfeb
jmp 0x42e022
movsx edx, byte [ebx]
mov ecx, dword [0x473a30]
test word [ecx + edx*2], 4
je 0x42dfeb
mov ecx, ebx
cmp ebx, esi
jae 0x42e037
cmp byte [ebx], 0x20
jl 0x42e037
inc ecx
cmp ecx, esi
jae 0x42e037
cmp byte [ecx], 0x20
jge 0x42e02d
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 0x42e076
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 + 0x1ff8]
test ecx, ecx
je 0x42e0a7
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 + 0x1ff8]
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 + 0x1ff8], eax
jne 0x42e0d6
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 + 0x1ff8]
lea edx, [eax + edx*8]
mov dword [ecx + 0x1ffc], edx
mov eax, dword [ebp - 0x10]
lea edx, [edx + eax*8]
mov dword [ecx + SetCapture], edx
push dword [ebp - 0x10]
push esi
push ebx
push ecx
call fcn.0042e168
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 + reloc.USER32.DLL_SetCapture]
test edx, edx
je 0x42e141
push 0x2800
push 0
push edx
call fcn.0046071c
add esp, 0xc
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jne 0x42e159
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0x2038], 2
jge 0x42e159
mov ecx, 0x92
pop edi
mov eax, ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret