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

Disassembly:
mov eax, 0x43d3b0
call fcn.00432e40
sub esp, 0x9c
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x41de8e
cmp dword [ebp + 0xc], ebx
je 0x41de8e
and byte [ebp - 0x28], bl
xor eax, eax
lea edi, [ebp - 0x27]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
call fcn.0041dea1
test eax, eax
je 0x41de8e
push 1
pop esi
lea eax, [ebp - 0xa8]
push eax
call fcn.00423d18
cmp esi, ebx
pop ecx
jle 0x41dca1
mov edi, esi
lea eax, [ebp - 0x28]
push 0x10
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00423d56
add esp, 0xc
dec edi
jne 0x41dc89
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004248aa
inc esi
pop ecx
cmp esi, 0xc
pop ecx
jl 0x41dc76
push 0x24
lea eax, [ebp - 0x4c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x41de8e
cmp dword [ebp - 0x4c], 0xffffffff
je 0x41de8e
push ebx
push dword [ebp - 0x4c]
push 3
push ebx
push ebx
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41de8e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x41de87
cmp esi, 0x7fffffff
ja 0x41de87
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_2
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::GetBuffer
and dword [ebp - 0x18], 0
mov ebx, eax
lea eax, [ebp - 0x18]
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41de7c
cmp dword [ebp - 0x18], esi
jne 0x41de7c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_2
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], esi
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push ebx
call fcn.00424d0d
xor ebx, ebx
add esp, 0x14
cmp dword [ebp + 0xc], ebx
mov edi, eax
jge 0x41dda0
mov dword [ebp + 0xc], ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
push esi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
cmp edi, ebx
je 0x41de78
cmp dword [ebp + 0xc], ebx
je 0x41de78
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::GetBuffer
push 2
mov esi, eax
mov eax, dword [ebp + 0xc]
pop ecx
cmp eax, ecx
jae 0x41dde0
xor esi, esi
jmp 0x41de53
mov edi, dword [ebp + 0x10]
mov dx, word [esi]
mov word [edi], dx
lea edx, [eax - 2]
cmp edx, ecx
jb 0x41dddc
mov edi, dword [ebp + 0x14]
mov dx, word [esi + 2]
mov word [edi], dx
lea edx, [eax - 4]
cmp edx, 4
jb 0x41dddc
mov edi, dword [ebp + 0x18]
mov edx, dword [esi + 4]
mov dword [edi], edx
lea edx, [eax - 8]
cmp edx, ecx
jb 0x41dddc
mov edi, dword [ebp + 0x1c]
mov dx, word [esi + 8]
mov word [edi], dx
lea edx, [eax - 0xa]
cmp edx, ecx
jb 0x41dddc
movzx edi, word [esi + 0xa]
lea ecx, [eax - 0xc]
cmp ecx, edi
jl 0x41dddc
mov ecx, dword [ebp + 0x20]
push edi
call sub.MFC42.DLL_CString::GetBuffer
add esi, 0xc
push edi
push esi
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, dword [ebp + 0x20]
add esp, 0xc
push edi
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [ebp + 0xc]
push 1
pop esi
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x41de90
xor esi, esi
jmp 0x41de5c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x41de68
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c