Function at 0x408de8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
sub esp, 8
push 0x440540
sub esp, 0xc
push dword [ebp + 8]
sub esp, 0xc
push str.load_config_from_exe
push dword [0x45f10c]
call fcn.004417d8
add esp, 0x14
push eax
call fcn.004417d8
add esp, 0x14
push eax
call fcn.00430ae0
add esp, 0x10
sub esp, 4
push 0xc9
push 0
lea eax, [ebp - 0xd8]
push eax
call sub.msvcrt.dll_memset
add esp, 0x10
sub esp, 8
push 0x446bac
push dword [ebp + 8]
call sub.msvcrt.dll_fopen
add esp, 0x10
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xe8], 0
je 0x40909f
sub esp, 8
push 0x440540
sub esp, 0xc
push str.open_oook
push dword [0x45f10c]
call fcn.004417d8
add esp, 0x14
push eax
call fcn.00430ae0
add esp, 0x10
sub esp, 4
push 2
push 0xffffff38
push dword [ebp - 0xe8]
call sub.msvcrt.dll_fseek
add esp, 0x10
push dword [ebp - 0xe8]
push 0xc8
push 1
lea eax, [ebp - 0xd8]
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
mov dword [ebp - 0xdc], eax
sub esp, 8
push 0x440540
sub esp, 0xc
push dword [ebp - 0xdc]
sub esp, 0xc
push str.read_oook:
push dword [0x45f10c]
call fcn.004417d8
add esp, 0x14
push eax
call fcn.004318b0
add esp, 0x14
push eax
call fcn.00430ae0
add esp, 0x10
mov dword [ebp - 0xe0], 0
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xdc]
sub eax, 0xa
cmp eax, dword [ebp - 0xe0]
jle 0x40909f
sub esp, 4
push 4
push str.DATA
push dword [ebp - 0xe4]
call sub.msvcrt.dll_strncmp
add esp, 0x10
test eax, eax
jne 0x40908a
sub esp, 8
push 0x440540
sub esp, 0xc
push str.have_DATA_
push dword [0x45f10c]
call fcn.004417d8
add esp, 0x14
push eax
call fcn.00430ae0
add esp, 0x10
lea eax, [ebp - 0xe4]
add dword [eax], 5
mov ax, word [0x446bd6]
mov word [ebp - 0x158], ax
lea edx, [ebp - 0x156]
mov eax, 0x62
sub esp, 4
push eax
push 0
push edx
call sub.msvcrt.dll_memset
add esp, 0x10
mov ax, word [0x446bd6]
mov word [ebp - 0x1c8], ax
lea edx, [ebp - 0x1c6]
mov eax, 0x62
sub esp, 4
push eax
push 0
push edx
call sub.msvcrt.dll_memset
add esp, 0x10
sub esp, 0xc
lea eax, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0x158]
push eax
push 0x465228
push 0x445020
push 0x465224
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push str._s__ld__s__d__d__d_SCR__d__d__d__5s__5s
push dword [ebp - 0xe4]
call sub.msvcrt.dll_sscanf
add esp, 0x40
mov dword [ebp - 0x1cc], eax
cmp dword [ebp - 0x1cc], 7
jle 0x409074
sub esp, 8
push 0x440540
sub esp, 0xc
push str.have_SCR_
push dword [0x45f10c]
call fcn.004417d8
add esp, 0x14
push eax
call fcn.00430ae0
add esp, 0x10
sub esp, 0xc
lea eax, [ebp - 0x158]
push eax
call fcn.00408d98
add esp, 0x10
mov dword [0x445024], eax
sub esp, 0xc
lea eax, [ebp - 0x1c8]
push eax
call fcn.00408d98
add esp, 0x10
mov dword [0x445028], eax
jmp 0x40907e
mov dword [0x465224], 1
mov dword [ebp - 0x1d0], 1
jmp 0x4090ed
lea eax, [ebp - 0xe0]
inc dword [eax]
lea eax, [ebp - 0xe4]
inc dword [eax]
jmp 0x408f16
sub esp, 8
push 0x440540
sub esp, 0xc
push str.load_config_from_exe_failed_
push dword [0x45f10c]
call fcn.004417d8
add esp, 0x14
push eax
call fcn.00430ae0
add esp, 0x10
sub esp, 8
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00408d50
add esp, 0x20
mov dword [ebp - 0x1d0], 0
mov eax, dword [ebp - 0x1d0]
leave
ret