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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce6f8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x528f34]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
je 0x43d730
cmp dword [ebp + 0xc], 0
je 0x43d730
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call edi
push 1
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push esi
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__
lea ecx, [ebp - 0x18]
push ecx
call fcn.0043c530
add esp, 8
mov ecx, eax
mov dword [ebp - 4], 0
call sym.QQProtectUpd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call fcn.0043d240
add esp, 8
test eax, eax
lea ecx, [ebp - 0x18]
sete bl
mov dword [ebp - 4], 0xffffffff
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::destructor_void_
test bl, bl
je 0x43d552
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x43d71c
mov esi, 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call edi
push 0
push 0
push 3
push 0
push 1
push accept
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call esi
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x14], edi
jne 0x43d592
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
push 0
push 0
push 3
push 0
push 1
push accept
push edx
call esi
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x10], ebx
jne 0x43d5be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x43d70b
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push edi
call esi
push 0
push ebx
mov dword [ebp + 8], eax
call esi
cmp dword [ebp + 8], eax
jne 0x43d709
push 0x2000
call fcn.004cb568
push 0x2000
mov edi, eax
call fcn.004cb568
mov ebx, eax
xor eax, eax
add esp, 8
cmp dword [ebp + 8], eax
mov dword [ebp - 0x18], ebx
jbe 0x43d6fa
jmp 0x43d608
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp + 8]
sub esi, eax
cmp esi, 0x2000
jbe 0x43d61a
mov esi, 0x2000
add eax, esi
test esi, esi
mov dword [ebp - 0x20], eax
je 0x43d6fa
push 0x2000
push 0
push edi
call sub.MSVCR80.dll_memset
push 0x2000
push 0
push ebx
call sub.MSVCR80.dll_memset
mov ecx, dword [ebp - 0x14]
add esp, 0x18
push 0
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
push 0
lea edx, [ebp - 0x1c]
push edx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, 4
mov eax, esi
mov ecx, ebx
mov edx, edi
jb 0x43d687
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x43d68b
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x43d673
test eax, eax
je 0x43d6e8
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x43d6da
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x43d6e8
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x43d6da
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x43d6e8
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x43d6da
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x43d6e8
movzx ecx, byte [ecx]
movzx esi, byte [edx]
sub esi, ecx
je 0x43d6e8
test esi, esi
mov eax, 1
jg 0x43d6ea
or eax, 0xffffffff
jmp 0x43d6ea
xor eax, eax
test eax, eax
jne 0x43d703
mov eax, dword [ebp - 0x20]
cmp dword [ebp + 8], eax
ja 0x43d605
mov edx, dword [ebp + 0x10]
mov dword [edx], 1
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
cmp ebx, 0xffffffff
je 0x43d71c
push ebx
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret