Function at 0x4158e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push edi
xor edi, edi
push edi
mov dword [esp + 8], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.0041e9e0
add esp, 4
cmp eax, edi
mov dword [0xa1bfe0], eax
je 0x41598d
push 0x40
push edi
push 0xa1c040
call sub.VCRUNTIME140.dll_memset
push 0x40
push edi
push 0xa1c0e0
call sub.VCRUNTIME140.dll_memset
push 0x40
push edi
push 0xa1c080
call sub.VCRUNTIME140.dll_memset
add esp, 0x24
cmp byte [0x801fb8], 0
mov dword [0xa1c0c0], edi
mov dword [0x81493c], edi
push 0x59b1bc
jne 0x41595d
lea eax, [esp + 8]
push str.sntlconfig.xml
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s
jmp 0x415973
lea ecx, [esp + 8]
push 0x801fb8
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s
mov byte [0x801fb8], 0
mov eax, dword [esp + 0x10]
add esp, 0xc
cmp eax, edi
jne 0x415994
mov edx, dword [0xa1bfe0]
push edx
call fcn.0041c960
add esp, 4
xor eax, eax
pop edi
add esp, 0x18
ret
push 2
push edi
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
add esp, 0xc
test eax, eax
je 0x4159b8
mov eax, dword [esp + 4]
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
xor eax, eax
pop edi
add esp, 0x18
ret
mov edx, dword [esp + 4]
lea ecx, [esp + 0xc]
push ecx
push edx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetpos
mov eax, dword [esp + 0xc]
push edi
push edi
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
add esp, 0x14
test eax, eax
je 0x4159ee
mov ecx, dword [esp + 4]
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
xor eax, eax
pop edi
add esp, 0x18
ret
mov edx, dword [esp + 0xc]
add edx, 1
push ebx
push edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov ebx, eax
add esp, 4
cmp ebx, edi
mov dword [esp + 0xc], ebx
jne 0x415a29
mov eax, dword [0xa1bfe0]
push eax
call fcn.0041c960
mov ecx, dword [esp + 0xc]
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 8
pop ebx
xor eax, eax
pop edi
add esp, 0x18
ret
mov edx, dword [esp + 0x10]
push esi
add edx, 1
push edx
push edi
push ebx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push 1
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov edx, dword [esp + 0x28]
push edx
mov esi, eax
mov dword [esp + 0x40], edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov eax, dword [0xa1bfe0]
push 0x415620
push 0x4157c0
push eax
call fcn.0041ad10
mov ecx, dword [0xa1bfe0]
push esi
push esi
push ebx
push ecx
call fcn.0041cb60
add esp, 0x3c
test eax, eax
jne 0x415aa4
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov edx, dword [0xa1bfe0]
push edx
call fcn.0041c960
add esp, 8
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0x18
ret
push ebp
mov ebp, dword [esp + 0x2c]
push 0x40
push edi
push ebp
call sub.VCRUNTIME140.dll_memset
push 0x40
lea ebx, [ebp + 0x40]
push edi
push ebx
call sub.VCRUNTIME140.dll_memset
push 0x40
lea eax, [ebp + 0x80]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push 0x40
lea eax, [ebp + 0xc0]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x10
mov esi, 0xa1c000
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x10
mov esi, 0xa1c040
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x10
mov esi, 0xa1c0e0
lea edi, [ebp + 0x80]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x10
mov esi, 0xa1c080
lea edi, [ebp + 0xc0]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0xa1c0c0]
mov dword [ebp + 0x100], eax
mov ecx, dword [0x81493c]
mov dword [ebp + 0x104], ecx
mov edx, dword [0xa1bfe0]
push edx
call fcn.0041c960
mov eax, dword [esp + 0x48]
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 0x38
pop ebp
pop esi
pop ebx
mov eax, 1
pop edi
add esp, 0x18
ret