Function at 0x4d861f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
mov dword [ebp - 0x60], eax
mov esi, edx
mov dword [ebp - 0x5c], ecx
lea edx, [ebp - 0x48]
mov ecx, 0xc
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edx, 0x5efb73
mov eax, dword [ebp - 0x5c]
call fcn.00427968
test eax, eax
jne 0x4d8678
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.NHML_import_failure:_file__s_not_found
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call fcn.004d2fb7
mov edi, eax
jmp 0x4d892c
mov ebx, eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 3
mov dword [esp + 4], 1
lea eax, [ebp - 0x4b]
mov dword [esp], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp eax, 3
jne 0x4d86e2
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
mov al, byte [ebp - 0x4b]
cmp al, 0xfd
ja 0x4d86bb
cmp al, 0xef
jne 0x4d86e2
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.NHML_import_failure:_XML_file__s_uses_BOM__please_convert_to_plin_UTF_8_or_ANSI_first
mov dword [esp + 4], 0xfffffffc
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call fcn.004d2fb7
jmp 0x4d8886
lea edx, [ebp - 0x48]
mov ecx, 0xc
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
call fcn.00425c0a
mov dword [ebp - 0x20], eax
mov dword [esp + 4], str..start
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.api_ms_win_crt_private_l1_1_0.dll_strstr
test eax, eax
je 0x4d8718
mov dword [ebp - 0x48], 1
jmp 0x4d871f
mov dword [ebp - 0x44], 1
mov dword [esp + 4], 0x2e
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
mov edi, eax
mov byte [eax], 0
mov dword [esp + 4], 0x5f0801
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.api_ms_win_crt_string_l1_1_0.dll__stricmp
test eax, eax
je 0x4d875e
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
mov dword [ebp - 0x28], eax
jmp 0x4d8769
cmp dword [ebp - 0x48], 0
je 0x4d8769
xor eax, eax
mov dword [ebp - 0x48], eax
mov byte [edi], 0x2e
mov dword [esp + 4], str..start
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.api_ms_win_crt_private_l1_1_0.dll_strstr
test eax, eax
je 0x4d878c
mov dword [ebp - 0x40], 1
jmp 0x4d8793
mov dword [ebp - 0x3c], 1
mov dword [esp + 4], 0x2e
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
mov edi, eax
mov byte [eax], 0
mov dword [esp + 4], 0x5f0801
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.api_ms_win_crt_string_l1_1_0.dll__stricmp
test eax, eax
je 0x4d87d2
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
mov dword [ebp - 0x24], eax
jmp 0x4d87dd
cmp dword [ebp - 0x3c], 0
je 0x4d87dd
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov byte [edi], 0x2e
lea eax, [ebp - 0x48]
mov dword [esp], eax
xor ecx, ecx
mov edx, 0x4d2cad
mov eax, 0x4d2ba8
call fcn.0042ea87
mov dword [ebp - 0x1c], eax
xor ecx, ecx
mov edx, dword [ebp - 0x5c]
call fcn.0042e8bc
mov edi, eax
mov eax, dword [ebp - 0x1c]
call fcn.0042eae4
test edi, edi
js 0x4d8907
cmp dword [ebp - 0x24], 0
jne 0x4d884d
mov dword [esp], 2
xor edx, edx
xor ecx, ecx
mov eax, ebx
call fcn.00425b5e
mov dword [esp], ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
xor edx, edx
mov dword [esp], edx
xor edx, edx
xor ecx, ecx
mov eax, ebx
call fcn.00425b5e
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x38]
cmp eax, edx
mov ecx, dword [ebp - 0x2c]
sbb ecx, dword [ebp - 0x34]
jae 0x4d888a
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.NHML_import_failure:_xmlFrom__s_is_located_after_xmlTo__s
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call fcn.004d2fb7
mov edi, eax
jmp 0x4d8907
sub eax, edx
mov dword [esi], eax
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], eax
jae 0x4d88a9
mov dword [ecx], eax
mov dword [esp + 4], eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov dword [esi + 4], eax
xor eax, eax
mov dword [esp], eax
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov eax, ebx
call fcn.00425b5e
mov dword [esp + 0xc], ebx
mov eax, dword [esi]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [esi + 4]
mov dword [esp], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test eax, eax
jne 0x4d8905
cmp dword [0x5af090], 1
jbe 0x4d8905
mov dword [0x611418], 2
mov dword [0x611414], 8
mov dword [esp], 0x5f083f
call fcn.004268ea
xor edi, edi
mov eax, ebx
call fcn.00425b84
jmp 0x4d892c
cmp dword [ebx + 4], 0
je 0x4d8935
call fcn.00425d90
mov esi, eax
mov eax, ebx
call fcn.005a3f7c
mov dword [esp], esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov ebx, dword [ebp - 0x20]
mov eax, ebx
test ebx, ebx
jne 0x4d8910
call fcn.00425c2c
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4d8949
mov dword [esp], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4d8958
mov dword [esp], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, edi
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret