Function at 0x4dc100
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
mov eax, 0x4040
call fcn.004977ec
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
lea ebx, [esp + 0x3c]
push 0x4000
push 0
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov eax, dword [esi]
push 0x8000
push dword [eax + 0x50]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__open
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
js 0x4dc2ce
push 1
push 0
call fcn.00506220
add esp, 8
mov edi, eax
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x30], 0
lea esi, [esp + 0x30]
lea ecx, [esp + 0x10]
call fcn.0041c440
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x1c]
push 0
push 4
call fcn.0041f240
mov dword [esp + 0x1c], 0x5668bc
mov ecx, esi
call fcn.0041db90
lea esi, [esp + 0x34]
mov ecx, esi
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.0048a120
lea ecx, [esp + 0x10]
push esi
call fcn.0041caa0
mov ecx, esi
call fcn.0041c850
mov dword [esp + 0x14], edi
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00507ce0
add esp, 8
push 0x4dca30
push 0x4dc850
push edi
call fcn.00507dd0
add esp, 0xc
push 0x4dcca0
push 0x4dcba0
push edi
call fcn.00507f20
add esp, 0xc
push 0x4dcd60
push edi
call fcn.00507e10
add esp, 8
push 0x4dcf30
push edi
call fcn.00507e30
add esp, 8
nop word cs:[eax + eax]
nop
push 0x4000
push ebx
push dword [esp + 0x14]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
add esp, 0xc
test eax, eax
js 0x4dc312
mov esi, eax
xor eax, eax
cmp esi, 0x4000
setl al
push eax
push esi
push ebx
push edi
call fcn.005080c0
add esp, 0x10
test eax, eax
je 0x4dc34b
cmp esi, 0x3fff
jg 0x4dc220
push edi
call fcn.00507700
add esp, 4
cmp dword [esp + 0x18], 0
jne 0x4dc29e
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
add eax, 0x50
lea esi, [esp + 0x34]
mov ecx, esi
push 0xffffffffffffffff
push eax
call fcn.004b67b0
push str.No_XML_data_generated_when_parsing
push esi
call fcn.004b6820
add esp, 8
mov ecx, esi
call fcn.004b6810
push dword [esp + 0xc]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__close
add esp, 4
mov ecx, dword [esp + 0x18]
mov edi, dword [ebp + 8]
mov dword [edi], ecx
test ecx, ecx
lea esi, [esp + 0x1c]
lea ebx, [esp + 0x30]
je 0x4dc3ae
push edi
call fcn.0041bfa0
jmp 0x4dc3ae
mov eax, dword [esi]
add eax, 0x50
lea esi, [esp + 0x10]
mov ecx, esi
push 0xffffffffffffffff
push eax
call fcn.004b67b0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_strerror
add esp, 4
push eax
push str.Unable_to_open_file_for_read:__s
push esi
call fcn.004b6820
add esp, 0xc
mov ecx, esi
call fcn.004b6810
mov dword [edi], 0
jmp 0x4dc3e6
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
add eax, 0x50
lea esi, [esp + 0x34]
mov ecx, esi
push 0xffffffffffffffff
push eax
call fcn.004b67b0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_strerror
add esp, 4
push eax
push str.Error_reading_file:__s_n
push esi
call fcn.004b6820
add esp, 0xc
mov ecx, esi
jmp 0x4dc38c
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
add esi, 0x50
push edi
call fcn.00508820
add esp, 4
lea ebx, [esp + 0x34]
mov ecx, ebx
push eax
push esi
call fcn.004b67b0
push edi
call fcn.00508770
add esp, 4
push eax
call fcn.00508b40
add esp, 4
push eax
push str.Error_parsing_XML:__s_n
push ebx
call fcn.004b6820
add esp, 0xc
mov ecx, ebx
call fcn.004b6810
push dword [esp + 0xc]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__close
add esp, 4
mov edi, dword [ebp + 8]
mov dword [edi], 0
lea esi, [esp + 0x1c]
lea ebx, [esp + 0x30]
mov ecx, ebx
call fcn.0041da60
mov dword [esp + 0x1c], 0x5668bc
mov ecx, esi
call fcn.0041ff60
mov ecx, esi
call fcn.0041f2b0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4dc3dd
lea eax, [esp + 0x18]
push eax
call fcn.0041c020
lea ecx, [esp + 0x10]
call fcn.0041c850
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret