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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x4ff94c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [0x50ba90]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x80], 0
test esi, esi
je 0x44490a
mov eax, dword [esi + 4]
mov ecx, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4448fb
test dx, dx
je 0x4448f7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4448fb
add eax, 4
add ecx, 4
test dx, dx
jne 0x4448d5
xor eax, eax
jmp 0x444900
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x444923
mov esi, dword [esi]
test esi, esi
jne 0x4448d0
cmp dword [ebp + 0x14], 0
je 0x444969
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], 0
mov dword [ebp - 0x6c], esi
je 0x444953
cmp dword [esi + 8], 0
jne 0x444f93
cmp dword [esi + 0xc], 0
je 0x4449e9
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
inc dword [esi + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
push 0x1c
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [ebp - 0x6c], esi
test esi, esi
je 0x444910
mov eax, dword [0x50ba90]
mov dword [esi], eax
xor eax, eax
mov dword [0x50ba90], esi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x444996
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [esi + 4], eax
test eax, eax
je 0x4449d1
mov ecx, edi
mov edx, eax
mov edi, edi
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x4449c0
mov eax, 1
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
add dword [0x50ba94], eax
mov dword [esi + 0x18], 0
test ebx, ebx
jne 0x444efc
test edi, edi
je 0x444d0a
mov esi, dword [sym.imp.MSVCR100.dll_wcsncmp]
push 5
push str.icon:
push edi
call esi
add esp, 0xc
test eax, eax
jne 0x444d0a
push 4
lea ebx, [edi + 0xa]
push str.IDI_
push ebx
call esi
add esp, 0xc
test eax, eax
je 0x444a42
push 4
push str.idi_
push ebx
call esi
add esp, 0xc
test eax, eax
je 0x444a42
push 0x31
push ebx
lea edx, [ebp - 0x68]
push edx
jmp 0x444a4c
push 0x31
add edi, 0x12
push edi
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.MSVCR100.dll_wcsncpy]
xor ecx, ecx
add esp, 0xc
cmp word [ebp - 0x68], 0
mov word [ebp - 6], cx
lea ecx, [ebp - 0x68]
je 0x444a81
movzx eax, word [ecx]
cmp eax, 0x61
jb 0x444a75
cmp eax, 0x7a
ja 0x444a75
and eax, 0xffffffdf
mov word [ecx], ax
add ecx, 2
cmp word [ecx], 0
jne 0x444a65
mov ecx, str.EXCLAMATION
lea eax, [ebp - 0x68]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x444ab6
test dx, dx
je 0x444ab2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x444ab6
add eax, 4
add ecx, 4
test dx, dx
jne 0x444a90
xor eax, eax
jmp 0x444abb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x444ac9
push 0x7f03
jmp 0x444ce9
mov ecx, str.WARNING
lea eax, [ebp - 0x68]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x444af7
test dx, dx
je 0x444af3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x444af7
add eax, 4
add ecx, 4
test dx, dx
jne 0x444ad1
xor eax, eax
jmp 0x444afc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x444abf
mov ecx, str.ERROR
lea eax, [ebp - 0x68]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x444b2e
test dx, dx
je 0x444b2a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x444b2e
add eax, 4
add ecx, 4
test dx, dx
jne 0x444b08
xor eax, eax
jmp 0x444b33
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x444ce4
mov ecx, str.HAND
lea eax, [ebp - 0x68]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x444b69
test dx, dx
je 0x444b65
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x444b69
add eax, 4
add ecx, 4
test dx, dx
jne 0x444b43
xor eax, eax
jmp 0x444b6e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x444ce4
mov ecx, 0x4d72a4
lea eax, [ebp - 0x68]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x444ba6
test dx, dx
je 0x444ba2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x444ba6
add eax, 4
add ecx, 4
test dx, dx
jne 0x444b80
xor eax, eax
jmp 0x444bab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x444ce4
mov ecx, str.INFORMATION
lea eax, [ebp - 0x68]
jmp 0x444bc0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x444be6
test dx, dx
je 0x444be2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x444be6
add eax, 4
add ecx, 4
test dx, dx
jne 0x444bc0
xor eax, eax
jmp 0x444beb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x444cdd
mov ecx, str.ASTERISK
lea eax, [ebp - 0x68]
jmp 0x444c00
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x444c26
test dx, dx
je 0x444c22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x444c26
add eax, 4
add ecx, 4
test dx, dx
jne 0x444c00
xor eax, eax
jmp 0x444c2b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x444cdd
mov ecx, str.QUESTION
lea eax, [ebp - 0x68]
jmp 0x444c40
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x444c66
test dx, dx
je 0x444c62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x444c66
add eax, 4
add ecx, 4
test dx, dx
jne 0x444c40
xor eax, eax
jmp 0x444c6b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x444c76
push 0x7f02
jmp 0x444ce9
mov ecx, 0x4d724c
lea eax, [ebp - 0x68]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x444ca6
test dx, dx
je 0x444ca2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x444ca6
add eax, 4
add ecx, 4
test dx, dx
jne 0x444c80
xor eax, eax
jmp 0x444cab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x444cb6
push 0x7f00
jmp 0x444ce9
mov edx, dword [0x501864]
push ebx
push edx
call dword [sym.imp.USER32.dll_LoadIconW]
mov ecx, dword [ebp - 0x6c]
pop edi
pop esi
mov dword [ecx + 0xc], eax
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
push 0x7f04
jmp 0x444ce9
push 0x7f01
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
mov ecx, dword [ebp - 0x6c]
pop edi
pop esi
mov dword [ecx + 0xc], eax
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.WININET.dll_RetrieveUrlCacheEntryStreamW]
xor ebx, ebx
push ebx
push 1
lea eax, [ebp - 0x7c]
push eax
push ebx
push edi
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
call esi
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
jbe 0x444e2e
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
je 0x444e2e
mov ecx, dword [ebp - 0x74]
push ebx
push 1
lea eax, [ebp - 0x7c]
push eax
push edi
push ecx
call esi
mov esi, eax
push edi
test esi, esi
je 0x444e26
mov edx, dword [edi + 0x18]
mov dword [ebp - 0x78], edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0x78]
add esp, 4
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x444da6
push eax
push esi
call dword [sym.imp.WININET.dll_UnlockUrlCacheEntryStream]
mov eax, dword [ebp - 0x6c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
test eax, eax
jne 0x444dd5
push esi
call dword [sym.imp.WININET.dll_UnlockUrlCacheEntryStream]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x6c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x78]
push ecx
push eax
push 0
push esi
call dword [sym.imp.WININET.dll_ReadUrlCacheEntryStream]
test eax, eax
jne 0x444e11
push eax
push esi
call dword [sym.imp.WININET.dll_UnlockUrlCacheEntryStream]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x6c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
push esi
call dword [sym.imp.WININET.dll_UnlockUrlCacheEntryStream]
jmp 0x444ef9
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x444d92
push 0
push 0
push 3
push 0
push 0
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x444d92
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x444d92
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x444e98
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x6c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x444ec5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x6c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
push 0
lea edx, [ebp - 0x74]
push edx
push edi
push eax
push esi
mov dword [ebp - 0x74], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x444eeb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x444def
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x6c]
lea eax, [ebp - 0x70]
push eax
push 1
xor edi, edi
push ebx
mov dword [ebp - 0x70], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x444f8c
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x444f8c
lea ecx, [ebp - 0x80]
push ecx
push 0x4ec150
push edi
push edi
push eax
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
test eax, eax
js 0x444f6e
cmp dword [ebp - 0x80], edi
je 0x444f6e
mov eax, dword [ebp - 0x70]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
cmp dword [esi + 0x14], edi
je 0x444f55
dec dword [0x50ba94]
jns 0x444f52
mov dword [0x50ba94], edi
mov dword [esi + 0x14], edi
mov ecx, dword [ebp - 0x80]
pop edi
mov dword [esi + 8], ecx
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x70]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b7f56
mov esp, ebp
pop ebp
ret