Function at 0x408950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470cd8
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x4941b8]
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 - 0x48], edi
mov dword [ebp - 0xa0], edi
xor eax, eax
mov dword [ebp - 0x90], 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.00408070
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x48], eax
call fcn.00449e83
mov dword [ebp - 0x94], eax
xor ecx, ecx
mov byte [ebp - 4], 3
push ecx
push ecx
push 0xd
push str.config32.json
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], cx
mov dword [ebp - 0x90], 4
call fcn.00449ea0
mov esi, eax
test edx, edx
jne 0x409092
mov ecx, dword [ebp - 0x1c]
cmp esi, ecx
ja 0x408a22
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [eax + esi*2], cx
jmp 0x408a2f
sub eax, ecx
lea ecx, [ebp - 0x2c]
push 0
push eax
call fcn.0040b990
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push esi
cmovae eax, dword [ebp - 0x2c]
push eax
push 0xd
push str.config32.json
push dword [ebp - 0x94]
call fcn.00449ea0
mov dword [ebp - 0x98], eax
test edx, edx
jne 0x4090c0
mov dword [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov dword [ebp - 0x90], 0xb
push eax
push 0x104
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.0040b990
nop
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
push eax
push ecx
mov dword [ebp - 0x48], ecx
call fcn.00449ed4
mov ecx, dword [ebp - 0x34]
mov esi, eax
mov dword [ebp - 0x94], edx
cmp esi, ecx
ja 0x408acd
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
mov dword [ebp - 0x34], esi
cmovae eax, dword [ebp - 0x44]
xor ecx, ecx
mov word [eax + esi*2], cx
jmp 0x408ae2
mov eax, esi
sub eax, ecx
lea ecx, [ebp - 0x44]
push 0
push eax
call fcn.0040b990
mov edx, dword [ebp - 0x94]
cmp esi, dword [ebp - 0x48]
jae 0x408a90
mov byte [ebp - 4], 5
test edx, edx
jne 0x4090f1
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x74]
call fcn.00408400
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x74]
call fcn.0040a4e0
push eax
lea ecx, [ebp - 0x8c]
call fcn.00408400
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x90], 0x1b
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x408b63
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408b59
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4090fc
push edx
push ecx
call fcn.004639cf
add esp, 8
xor eax, eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x5c]
call fcn.00408400
lea eax, [ebp - 0x5c]
cmp edi, eax
je 0x408bab
mov ecx, edi
call fcn.00409870
movups xmm0, xmmword [ebp - 0x5c]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x4c]
movq qword [edi + 0x10], xmm0
jmp 0x408be5
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x408be5
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408bdb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409101
push edx
push ecx
call fcn.004639cf
add esp, 8
mov edx, dword [ebp - 0x78]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x408c26
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408c1c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409106
push edx
push ecx
call fcn.004639cf
add esp, 8
mov edx, dword [ebp - 0x30]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x408c64
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408c5a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40910b
push edx
push ecx
call fcn.004639cf
add esp, 8
mov edx, 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 edx, 8
jb 0x408cb6
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408cac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409110
push edx
push ecx
call fcn.004639cf
add esp, 8
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x408cc0
mov eax, dword [edi]
push 0x47c0a0
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00465610
mov eax, dword [ebp - 0x90]
add esp, 0xc
test eax, eax
jne 0x408cf1
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], al
jmp 0x408d95
push 2
push 0
push eax
call sub.msvcrt.dll_fseek
push dword [ebp - 0x90]
call sub.msvcrt.dll_ftell
push 0
push 0
push dword [ebp - 0x90]
mov esi, eax
call sub.msvcrt.dll_fseek
add esp, 0x1c
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 0xa
test esi, esi
jne 0x408d3e
mov dword [ebp - 0x1c], esi
mov byte [ebp + esi - 0x2c], 0
jmp 0x408d49
push 0
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040b6d0
push dword [ebp - 0x90]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push esi
cmovae eax, dword [ebp - 0x2c]
push 1
push eax
call sub.msvcrt.dll_fread
push dword [ebp - 0x90]
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], 0xb
mov eax, esp
lea ecx, [ebp - 0x6c]
mov dword [eax + 0x24], 0
lea eax, [ebp - 0x44]
push eax
push ecx
call fcn.00406790
mov cl, byte [edi + 0x18]
add esp, 0x38
mov al, byte [ebp - 0x6c]
mov byte [edi + 0x18], al
mov eax, dword [ebp - 0x64]
mov edx, dword [edi + 0x24]
mov byte [ebp - 0x48], cl
mov byte [ebp - 0x6c], cl
mov ecx, dword [edi + 0x20]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x60]
mov dword [edi + 0x24], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], edx
push dword [ebp - 0x48]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xc
call fcn.0040c070
mov edx, dword [ebp - 0x30]
mov byte [ebp - 4], 9
cmp edx, 0x10
jb 0x408e53
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408e1d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409115
push edx
push ecx
call fcn.004639cf
add esp, 8
jmp 0x408e53
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 2
lea esi, [edi + 0x18]
push eax
mov ecx, esi
call fcn.0040d3f0
cmp byte [esi], 1
jne 0x408f11
mov eax, dword [esi + 8]
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x94], ecx
mov esi, dword [eax + 4]
cmp byte [esi + 0xd], 0
jne 0x408ed4
nop dword [eax]
cmp dword [esi + 0x24], 0x10
lea eax, [esi + 0x10]
mov ecx, dword [eax + 0x10]
jb 0x408e9e
mov eax, dword [eax]
push 7
push str.plugins
push ecx
push eax
call fcn.00403d80
add esp, 0x10
test eax, eax
jns 0x408ebe
mov esi, dword [esi + 8]
mov eax, dword [ebp - 0x90]
jmp 0x408ec8
mov eax, esi
mov esi, dword [esi]
mov dword [ebp - 0x90], eax
cmp byte [esi + 0xd], 0
je 0x408e90
mov ecx, dword [ebp - 0x94]
cmp eax, ecx
je 0x408f09
mov ecx, dword [eax + 0x20]
add eax, 0x10
cmp dword [eax + 0x14], 0x10
jb 0x408ee6
mov eax, dword [eax]
push 7
push str.plugins
push ecx
push eax
call fcn.00403d80
add esp, 0x10
test eax, eax
jg 0x408f03
mov eax, dword [ebp - 0x90]
jmp 0x408f0b
mov ecx, dword [ebp - 0x94]
mov eax, ecx
mov dword [ebp - 0x68], eax
lea esi, [edi + 0x18]
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
call fcn.0040d3f0
push eax
lea ecx, [ebp - 0x6c]
call fcn.00402580
test al, al
je 0x40902a
sub esp, 0x10
mov dword [ebp - 0x94], esp
mov ecx, esp
push 0
mov byte [ebp - 4], 0xf
call fcn.00408070
push 7
push str.plugins
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.0040bcc0
mov al, byte [esi]
mov byte [ebp - 4], 0x11
test al, al
jne 0x408fb4
push 8
mov byte [esi], 1
call fcn.0046399f
mov esi, eax
add esp, 4
lea eax, [ebp - 0x99]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], eax
mov ecx, esi
mov byte [ebp - 4], 0x12
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040a960
mov dword [esi], eax
mov al, byte [edi + 0x18]
mov dword [edi + 0x20], esi
lea esi, [edi + 0x18]
mov byte [ebp - 4], 0x11
cmp al, 1
jne 0x409048
mov esi, dword [esi + 8]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x48], 0
push eax
mov ecx, esi
call fcn.004027a0
push eax
add eax, 0x10
mov ecx, esi
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
call fcn.00403a50
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x40901e
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409014
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40911a
push edx
push ecx
call fcn.004639cf
add esp, 8
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 2
call fcn.0040a0a0
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.004639dd
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00411680
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x8c]
push str.cannot_use_operator___with_a_string_argument_with
push eax
call fcn.00403f00
push esi
push eax
lea eax, [ebp - 0xe4]
mov byte [ebp - 4], 0x13
push 0x131
push eax
call fcn.00404b70
add esp, 0x1c
lea eax, [ebp - 0xe4]
push 0x48aed8
push eax
call sub.msvcrt.dll__CxxThrowException
push edx
lea eax, [ebp - 0x64]
push eax
call fcn.0040b170
add esp, 8
lea ecx, [ebp - 0xb4]
push dword [eax + 4]
push dword [eax]
call fcn.004095e0
push 0x48ae18
lea eax, [ebp - 0xb4]
push eax
call sub.msvcrt.dll__CxxThrowException
push edx
lea eax, [ebp - 0x98]
push eax
call fcn.0040b170
add esp, 8
lea ecx, [ebp - 0xc8]
push dword [eax + 4]
push dword [eax]
call fcn.004095e0
push 0x48ae18
lea eax, [ebp - 0xc8]
push eax
call sub.msvcrt.dll__CxxThrowException
push edx
push str.current_path__
call fcn.0040b2c0
call fcn.00465400
call fcn.00465400
call fcn.00465400
call fcn.00465400
call fcn.00465400
call fcn.00465400
call fcn.00465400
int3