Function at 0x403fd2
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
mov dword [ebp - 0x1c], ecx
mov edx, vtable.Dialog.0
mov eax, dword [ebp - 0x1c]
mov dword [eax], edx
mov eax, dword [ebp - 0x1c]
add eax, 0x30
mov ecx, eax
call fcn.00531060
mov eax, dword [ebp - 0x1c]
add eax, 0x3c
mov ecx, eax
call fcn.0053363c
mov eax, dword [ebp - 0x1c]
add eax, 0x48
mov ecx, eax
call fcn.00533a74
mov eax, dword [ebp - 0x1c]
add eax, 0x54
mov ecx, eax
call fcn.0053402c
mov eax, dword [ebp - 0x1c]
add eax, 0x60
mov ecx, eax
call fcn.00531e14
mov eax, dword [ebp - 0x1c]
add eax, 0x6c
mov ecx, eax
call fcn.005304dc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x10], 0
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x2c], 0
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x28], 0
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x24], 0
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x14], 0
mov eax, dword [ebp + 8]
add eax, 0x271014
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 4
mov eax, dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
call eax
sub esp, 0xc
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x404332
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
call eax
sub esp, 0x14
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x24], eax
mov eax, dword [ebp + 8]
add eax, 0x271014
mov dword [esp + 4], eax
mov dword [esp], str.Reading_rules_file__s._n
call fcn.004035af
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x40413c
mov eax, dword [ebp + 8]
add eax, 0x271014
mov dword [esp + 4], eax
mov dword [esp], str.Unable_to_read_rules__s._n
call fcn.004035af
jmp 0x404332
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x24]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
cmp eax, 4
jg 0x404185
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 8]
add edx, 0x271014
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], str.Unable_to_parse_rules__s.Invalid_size__d_n
call fcn.004035af
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], 0
jmp 0x404332
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [esp + 8], 3
mov dword [esp + 4], 0x574004
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x404277
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
add eax, 2
movzx eax, byte [eax]
movzx ecx, al
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
add eax, 1
movzx eax, byte [eax]
movzx edx, al
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
movzx eax, byte [eax]
movzx eax, al
mov ebx, dword [ebp + 8]
add ebx, 0x271014
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], 0x574008
call fcn.004035af
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
cmp eax, 0x64
jle 0x404245
mov eax, dword [ebp - 0x10]
add eax, 0x64
mov byte [eax], 0
jmp 0x404255
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov edx, eax
mov eax, dword [ebp - 0x10]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.Content___hs
call fcn.004035af
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], 0
jmp 0x404332
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
lea edx, [eax + 3]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x10]
lea edx, [eax + 3]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x1c]
mov ecx, eax
call fcn.0040454a
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 4
jbe 0x404332
mov eax, dword [ebp + 8]
lea edx, [eax + 0x271014]
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], str.Unable_to_open_file__s._Unable_to_parse_version__d_n
call fcn.004035af
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], 0
jmp 0x404332
nop
mov ebx, dword [ebp - 4]
leave
ret 4