Function at 0x4342b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x45c
push ebx
push ebp
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x6d]
mov byte [esp + 0x6c], 0
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x470]
stosw word es:[edi], ax
test edx, edx
stosb byte es:[edi], al
je 0x4344f4
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4344f4
mov ebx, dword [esp + 0x474]
cmp dword [ebx], 0
je 0x4344f4
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x4344d1
mov ecx, dword [esp + 0x3c]
push 1
push 0
push 0
push ecx
call fcn.00439300
mov ebp, edx
mov edx, dword [esp + 0x40]
xor ecx, ecx
add eax, edx
mov edx, dword [ebx]
mov esi, eax
adc ebp, ecx
add esi, 0x28
mov edi, ebp
push edx
mov dword [esp + 0x1c], eax
adc edi, ecx
call fcn.00416980
cdq
add esp, 4
cmp edi, edx
jb 0x434393
ja 0x43436a
cmp esi, eax
jbe 0x434393
mov eax, dword [ebx]
push esi
push eax
call fcn.00416700
mov edi, eax
add esp, 8
test edi, edi
jne 0x434386
push str.Buff_realloc_failed
jmp 0x4344f9
mov ecx, dword [ebx]
push ecx
call fcn.00416780
add esp, 4
mov dword [ebx], edi
mov edx, dword [esp + 0x470]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x4343df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFile_failed__errno___d
call fcn.00411930
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x45c
ret 8
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x45]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [str.CMSC]
mov dword [esp + 0x48], eax
call dword [sym.imp.WS2_32.dll_htonl]
mov edx, dword [ebx]
lea ecx, [esp + 0x44]
push 0x28
push ecx
push edx
mov dword [esp + 0x74], eax
call fcn.004167b0
mov edi, dword [esp + 0x20]
add esp, 0xc
xor esi, esi
lea eax, [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x74]
push 0x3ff
push ecx
push edi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43447f
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx]
lea eax, [esp + 0x6c]
push edx
push eax
push ecx
call fcn.004167b0
mov edx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
add esi, edx
cmp eax, ebp
ja 0x4344b8
jb 0x434463
cmp esi, dword [esp + 0x18]
jae 0x4344b8
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x74]
push 0x3ff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43443a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile_failed__errno___d
call fcn.00411930
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx]
add esi, 0x28
push esi
push ecx
call fcn.00416920
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x45c
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x45c
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileAttributesEx_failed__errno___d
call fcn.00411930
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x45c
ret 8
push str.LoadXmlFileToLoopBuff__:_invalid_parameter
call fcn.00411930
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x45c
ret 8