Function at 0x40bac0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f645
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x48f240]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x9c], edi
xorps xmm0, xmm0
mov dword [ebp - 0x78], 0
xor eax, eax
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
lea ecx, [edi + 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.0040b1c0
lea eax, [ebp - 0x2c]
mov esi, 0xd
mov dword [ebp - 0x7c], eax
call fcn.0044aaa1
mov dword [ebp - 0x98], eax
xor ecx, ecx
mov byte [ebp - 4], 3
push ecx
push ecx
push esi
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push str.config32.json
movups xmmword [ebp - 0x2c], xmm0
push eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], cx
mov dword [ebp - 0x78], 4
call fcn.0044aabe
mov esi, eax
mov dword [ebp - 0x88], esi
test edx, edx
jne 0x40c1a3
mov ecx, dword [ebp - 0x1c]
cmp esi, ecx
ja 0x40bbb7
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
cmova eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [eax + esi*2], cx
jmp 0x40bbc4
sub eax, ecx
lea ecx, [ebp - 0x2c]
push 0
push eax
call fcn.0040e990
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push esi
cmova eax, dword [ebp - 0x2c]
push eax
push 0xd
push str.config32.json
push dword [ebp - 0x98]
call fcn.0044aabe
mov dword [ebp - 0x88], eax
test edx, edx
jne 0x40c1a9
xor eax, eax
mov dword [ebp - 4], 6
xorps xmm0, xmm0
mov dword [ebp - 0x34], edx
push eax
movups xmmword [ebp - 0x44], xmm0
push 0x104
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov dword [ebp - 0x78], 0x13
call fcn.0040e990
cmp dword [ebp - 0x30], 7
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 0x34]
cmova eax, dword [ebp - 0x44]
push eax
push ecx
mov dword [ebp - 0x7c], ecx
call fcn.0044aaf2
mov ecx, dword [ebp - 0x34]
mov esi, eax
mov dword [ebp - 0x98], edx
cmp esi, ecx
ja 0x40bc64
cmp dword [ebp - 0x30], 7
lea eax, [ebp - 0x44]
mov dword [ebp - 0x34], esi
mov ecx, esi
jbe 0x40bc5c
mov eax, dword [ebp - 0x44]
xor edi, edi
mov word [eax + ecx*2], di
jmp 0x40bc79
mov eax, esi
sub eax, ecx
lea ecx, [ebp - 0x44]
push 0
push eax
call fcn.0040e990
mov edx, dword [ebp - 0x98]
cmp esi, dword [ebp - 0x7c]
jae 0x40bc24
mov edi, dword [ebp - 0x94]
mov esi, 0x13
and esi, 0xffffffef
mov dword [ebp - 0x80], edx
or esi, 8
mov dword [ebp - 0x7c], 0x48f10c
mov dword [ebp - 4], 5
mov dword [ebp - 0x78], esi
test edx, edx
jne 0x40c1af
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040b440
lea eax, [ebp - 0x2c]
or esi, 0x20
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x78], esi
call fcn.0040d740
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x74]
call fcn.0040b440
lea eax, [ebp - 0x74]
cmp edi, eax
je 0x40bd45
mov ecx, dword [edi + 0x14]
cmp ecx, 7
jbe 0x40bd19
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x40bd0f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c1bd
mov eax, edx
push ecx
push eax
call fcn.00462b9f
add esp, 8
movups xmm0, xmmword [ebp - 0x74]
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov ecx, 7
movups xmmword [edi], xmm0
mov word [ebp - 0x74], ax
movq xmm0, qword [ebp - 0x64]
movq qword [edi + 0x10], xmm0
jmp 0x40bd48
mov ecx, dword [ebp - 0x60]
cmp ecx, 7
jbe 0x40bd7f
mov edx, dword [ebp - 0x74]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40bd75
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c1bd
push ecx
push edx
call fcn.00462b9f
add esp, 8
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 5
cmp ecx, 7
jbe 0x40bdbd
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40bdb3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c1bd
push ecx
push edx
call fcn.00462b9f
add esp, 8
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
mov byte [ebp - 4], 4
cmp ecx, 7
jbe 0x40be0f
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40be05
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c1bd
push ecx
push edx
call fcn.00462b9f
add esp, 8
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x40be61
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40be57
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c1bd
push ecx
push edx
call fcn.00462b9f
add esp, 8
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x40be6b
mov eax, dword [edi]
push 0x47a508
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00464580
mov eax, dword [ebp - 0x78]
add esp, 0xc
test eax, eax
jne 0x40be9d
xorps xmm0, xmm0
mov dword [ebp - 0x34], eax
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], al
jmp 0x40bf3c
push 2
push 0
push eax
call sub.msvcrt.dll_fseek
push dword [ebp - 0x78]
call sub.msvcrt.dll_ftell
push 0
push 0
push dword [ebp - 0x78]
mov esi, eax
call sub.msvcrt.dll_fseek
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
add esp, 0x1c
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 9
test esi, esi
jne 0x40beeb
mov dword [ebp - 0x1c], esi
mov byte [ebp + esi - 0x2c], 0
jmp 0x40bef6
push 0
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040e6c0
push dword [ebp - 0x78]
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
push esi
cmova eax, dword [ebp - 0x2c]
push 1
push eax
call sub.msvcrt.dll_fread
push dword [ebp - 0x78]
call sub.msvcrt.dll_fclose
movups xmm0, xmmword [ebp - 0x2c]
add esp, 0x14
mov byte [ebp - 0x2c], 0
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
push 0
push 1
sub esp, 0x28
mov byte [ebp - 4], 0xa
mov eax, esp
lea ecx, [ebp - 0x90]
mov dword [eax + 0x24], 0
lea eax, [ebp - 0x44]
push eax
push ecx
call fcn.00409810
mov cl, byte [edi + 0x18]
add esp, 0x38
mov al, byte [ebp - 0x90]
mov byte [edi + 0x18], al
mov edx, dword [edi + 0x20]
mov esi, dword [edi + 0x24]
mov eax, dword [ebp - 0x88]
mov byte [ebp - 0x7c], cl
mov byte [ebp - 0x90], cl
mov ecx, dword [ebp - 0x84]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ecx
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x84], esi
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xb
call fcn.0040efc0
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 8
cmp ecx, 0xf
jbe 0x40c018
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bfdc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c1c2
push ecx
push edx
call fcn.00462b9f
add esp, 8
jmp 0x40c018
lea eax, [ebp - 0x90]
mov dword [ebp - 4], 2
lea esi, [edi + 0x18]
push eax
mov ecx, esi
call fcn.00410440
cmp byte [esi], 1
jne 0x40c0c3
mov eax, dword [esi + 8]
mov eax, dword [eax]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov esi, dword [eax + 4]
cmp byte [esi + 0xd], 0
jne 0x40c08b
nop dword [eax]
cmp dword [esi + 0x24], 0xf
lea eax, [esi + 0x10]
mov ecx, dword [eax + 0x10]
jbe 0x40c05e
mov eax, dword [eax]
push 7
push str.plugins
push ecx
push eax
call fcn.00405af0
shr eax, 0x1f
add esp, 0x10
test al, al
je 0x40c07e
mov esi, dword [esi + 8]
mov eax, dword [ebp - 0x78]
jmp 0x40c085
mov eax, esi
mov esi, dword [esi]
mov dword [ebp - 0x78], eax
cmp byte [esi + 0xd], 0
je 0x40c050
cmp byte [eax + 0xd], 0
jne 0x40c0b7
mov ecx, dword [eax + 0x20]
add eax, 0x10
cmp dword [eax + 0x14], 0xf
jbe 0x40c09f
mov eax, dword [eax]
push 7
push str.plugins
push ecx
push eax
call fcn.00405af0
add esp, 0x10
test eax, eax
mov eax, dword [ebp - 0x78]
jle 0x40c0ba
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x8c], eax
lea esi, [edi + 0x18]
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.00410440
push eax
lea ecx, [ebp - 0x90]
call fcn.00404250
test al, al
je 0x40c185
push 0
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xe
call fcn.0040b1c0
sub esp, 0x18
mov byte [ebp - 4], 0xf
mov edx, esp
xorps xmm0, xmm0
mov ecx, esi
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 7
mov dword [edx + 0x14], 0xf
mov eax, dword [str.plugins]
mov dword [edx], eax
mov ax, word [0x47a52c]
mov word [edx + 4], ax
mov al, byte [0x47a52e]
mov byte [edx + 6], al
mov byte [edx + 7], 0
call fcn.0040d340
mov edi, eax
mov al, byte [ebp - 0x90]
mov cl, byte [edi]
mov byte [edi], al
mov edx, dword [edi + 8]
mov esi, dword [edi + 0xc]
mov eax, dword [ebp - 0x88]
mov byte [ebp - 0x7c], cl
mov byte [ebp - 0x90], cl
mov ecx, dword [ebp - 0x84]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x84], esi
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0x10
call fcn.0040efc0
mov edi, dword [ebp - 0x94]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00462bad
mov esp, ebp
pop ebp
ret
push edx
call fcn.0040e5d0
push edx
call fcn.0040e5d0
lea eax, [ebp - 0x80]
push eax
push str.current_path__
call fcn.0040e570
call fcn.004643d0
call fcn.004643d0
int3