Function at 0x409140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a697
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x4af280]
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 - 0xb4], edi
mov dword [ebp - 0x98], edi
mov dword [ebp - 0xb8], edi
xorps xmm0, xmm0
mov dword [ebp - 0x90], 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.00408830
lea eax, [ebp - 0x5c]
mov esi, 0xd
mov dword [ebp - 0x98], eax
call fcn.0044c4ab
mov dword [ebp - 0xa0], eax
xor ecx, ecx
mov byte [ebp - 4], 3
push ecx
push ecx
push esi
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
push str.config32.json
movups xmmword [ebp - 0x5c], xmm0
push eax
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], cx
mov dword [ebp - 0x90], 4
call fcn.0044c4c8
mov esi, eax
mov dword [ebp - 0xa8], esi
test edx, edx
jne 0x409997
mov ecx, dword [ebp - 0x4c]
cmp esi, ecx
ja 0x409243
cmp dword [ebp - 0x48], 7
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x4c], esi
cmova eax, dword [ebp - 0x5c]
xor ecx, ecx
mov word [eax + esi*2], cx
jmp 0x409250
sub eax, ecx
lea ecx, [ebp - 0x5c]
push 0
push eax
call fcn.0040c1b0
cmp dword [ebp - 0x48], 7
lea eax, [ebp - 0x5c]
push esi
cmova eax, dword [ebp - 0x5c]
push eax
push 0xd
push str.config32.json
push dword [ebp - 0xa0]
call fcn.0044c4c8
mov dword [ebp - 0xa8], eax
test edx, edx
jne 0x40999d
xor eax, eax
mov dword [ebp - 4], 6
xorps xmm0, xmm0
mov dword [ebp - 0x1c], edx
push eax
movups xmmword [ebp - 0x2c], xmm0
push 0x104
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x90], 0x13
call fcn.0040c1b0
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
cmova eax, dword [ebp - 0x2c]
push eax
push ecx
mov dword [ebp - 0x98], ecx
call fcn.0044c4fc
mov ecx, dword [ebp - 0x1c]
mov esi, eax
mov dword [ebp - 0xa0], edx
cmp esi, ecx
ja 0x4092f6
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
mov ecx, esi
jbe 0x4092ee
mov eax, dword [ebp - 0x2c]
xor edi, edi
mov word [eax + ecx*2], di
jmp 0x40930b
mov eax, esi
sub eax, ecx
lea ecx, [ebp - 0x2c]
push 0
push eax
call fcn.0040c1b0
mov edx, dword [ebp - 0xa0]
cmp esi, dword [ebp - 0x98]
jae 0x4092b3
mov edi, dword [ebp - 0xb4]
mov esi, 0x13
and esi, 0xffffffef
mov dword [ebp - 0x9c], edx
or esi, 8
mov dword [ebp - 0x98], 0x4af008
mov dword [ebp - 4], 5
mov dword [ebp - 0x90], esi
test edx, edx
jne 0x4099a3
cmp dword [ebp - 0x48], 7
lea ecx, [ebp - 0x5c]
mov edx, dword [ebp - 0x4c]
cmova ecx, dword [ebp - 0x5c]
mov dword [ebp - 0xa0], ecx
lea eax, [edx + edx]
test edx, edx
je 0x40945e
and eax, 0xfffffffe
cmp eax, 4
jl 0x409383
mov eax, dword [ecx]
and eax, 0xffffffdf
sub eax, 0x3a0041
cmp eax, 0x1a
jb 0x40945e
movzx eax, word [ecx]
cmp eax, 0x5c
je 0x40945e
cmp eax, 0x2f
je 0x40945e
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
cmova eax, dword [ebp - 0x2c]
mov dword [ebp - 0x98], eax
lea edx, [eax + ecx*2]
cmp ecx, 2
jne 0x4093c7
mov eax, dword [eax]
and eax, 0xffffffdf
sub eax, 0x3a0041
cmp eax, 0x1a
jae 0x4093c7
mov al, 1
jmp 0x4093c9
xor al, al
test ecx, ecx
je 0x4093e8
test al, al
jne 0x4093e8
movzx eax, word [edx - 2]
mov ecx, 0x492582
push eax
call fcn.0040aeb0
test al, al
jne 0x4093e8
mov al, 1
jmp 0x4093ea
xor al, al
mov edx, dword [ebp - 0x1c]
xorps xmm0, xmm0
movzx ecx, al
add ecx, dword [ebp - 0x4c]
mov byte [ebp - 0x91], al
add ecx, edx
xor eax, eax
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x98]
sub esp, 0x14
mov dword [ebp - 0x70], eax
or esi, 0x20
mov al, byte [ebp - 0x91]
mov byte [ebp - 0x68], al
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x64], eax
mov eax, esp
mov dword [ebp - 0x6c], edx
movups xmm0, xmmword [ebp - 0x70]
mov edx, dword [ebp - 0x4c]
push ecx
movups xmmword [eax], xmm0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 7
mov dword [ebp - 0x90], esi
mov dword [eax + 0x10], edx
call fcn.00402f50
jmp 0x409483
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.00408ab0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 8
or esi, 0x40
lea ecx, [ebp - 0x44]
push eax
mov dword [ebp - 0x90], esi
call fcn.0040af30
mov dword [ebp - 4], 5
mov dword [ebp - 0x90], 0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x8c]
call fcn.00408ab0
lea eax, [ebp - 0x8c]
cmp edi, eax
je 0x40951c
mov ecx, dword [edi + 0x14]
cmp ecx, 7
jbe 0x4094ea
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4094e0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4099b4
mov eax, edx
push ecx
push eax
call fcn.00464329
add esp, 8
movups xmm0, xmmword [ebp - 0x8c]
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov ecx, 7
movups xmmword [edi], xmm0
mov word [ebp - 0x8c], ax
movq xmm0, qword [ebp - 0x7c]
movq qword [edi + 0x10], xmm0
jmp 0x40951f
mov ecx, dword [ebp - 0x78]
cmp ecx, 7
jbe 0x409559
mov edx, dword [ebp - 0x8c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40954f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4099b4
push ecx
push edx
call fcn.00464329
add esp, 8
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 5
cmp ecx, 7
jbe 0x409597
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40958d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4099b4
push ecx
push edx
call fcn.00464329
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], 4
cmp ecx, 7
jbe 0x4095e9
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4095df
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4099b4
push ecx
push edx
call fcn.00464329
add esp, 8
mov ecx, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x40963b
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409631
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4099b4
push ecx
push edx
call fcn.00464329
add esp, 8
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x409645
mov eax, dword [edi]
push 0x492b30
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.0046e4a9
mov eax, dword [ebp - 0x90]
add esp, 0xc
test eax, eax
jne 0x40967d
xorps xmm0, xmm0
mov dword [ebp - 0x64], eax
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], al
jmp 0x409716
push 2
push 0
push eax
call fcn.0046ebfa
push dword [ebp - 0x90]
call fcn.0046f312
push 0
push 0
push dword [ebp - 0x90]
mov esi, eax
call fcn.0046ebfa
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
add esp, 0x1c
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 0xb
test esi, esi
jne 0x4096d1
mov dword [ebp - 0x34], esi
mov byte [ebp + esi - 0x44], 0
jmp 0x4096dc
push 0
push esi
lea ecx, [ebp - 0x44]
call fcn.0040bee0
push dword [ebp - 0x90]
cmp dword [ebp - 0x30], 0xf
lea eax, [ebp - 0x44]
push esi
cmova eax, dword [ebp - 0x44]
push 1
push eax
call fcn.0046e82b
push dword [ebp - 0x90]
call fcn.0046e615
movups xmm0, xmmword [ebp - 0x44]
add esp, 0x14
movups xmmword [ebp - 0x74], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [ebp - 0x64], xmm0
push 0
push 1
sub esp, 0x28
mov byte [ebp - 4], 0xc
mov eax, esp
lea ecx, [ebp - 0xb0]
mov dword [eax + 0x24], 0
lea eax, [ebp - 0x74]
push eax
push ecx
call fcn.00406e80
mov cl, byte [edi + 0x18]
add esp, 0x38
mov al, byte [ebp - 0xb0]
mov byte [edi + 0x18], al
mov edx, dword [edi + 0x20]
mov esi, dword [edi + 0x24]
mov eax, dword [ebp - 0xa8]
mov byte [ebp - 0x98], cl
mov byte [ebp - 0xb0], cl
mov ecx, dword [ebp - 0xa4]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ecx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xa4], esi
push dword [ebp - 0x98]
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0xd
call fcn.0040c7e0
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 4], 0xa
cmp ecx, 0xf
jbe 0x4097f8
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4097bc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4099b9
push ecx
push edx
call fcn.00464329
add esp, 8
jmp 0x4097f8
lea eax, [ebp - 0xb0]
mov dword [ebp - 4], 2
push eax
lea ecx, [edi + 0x18]
call fcn.0040dc60
cmp byte [edi + 0x18], 1
jne 0x4098af
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x98], eax
mov eax, dword [eax]
mov dword [ebp - 0x90], eax
mov esi, dword [eax + 4]
cmp byte [esi + 0xd], 0
jne 0x409870
cmp dword [esi + 0x24], 0xf
lea eax, [esi + 0x10]
mov ecx, dword [eax + 0x10]
jbe 0x409840
mov eax, dword [eax]
push 7
push str.plugins
push ecx
push eax
call fcn.004031d0
add esp, 0x10
test eax, eax
jns 0x409860
mov esi, dword [esi + 8]
mov eax, dword [ebp - 0x90]
jmp 0x40986a
mov eax, esi
mov esi, dword [esi]
mov dword [ebp - 0x90], eax
cmp byte [esi + 0xd], 0
je 0x409832
cmp byte [eax + 0xd], 0
jne 0x4098a1
mov ecx, dword [eax + 0x20]
add eax, 0x10
cmp dword [eax + 0x14], 0xf
jbe 0x409884
mov eax, dword [eax]
push 7
push str.plugins
push ecx
push eax
call fcn.004031d0
add esp, 0x10
test eax, eax
jg 0x4098a1
mov eax, dword [ebp - 0x90]
jmp 0x4098a9
mov eax, dword [ebp - 0x98]
mov eax, dword [eax]
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0x6c]
lea ecx, [edi + 0x18]
push eax
call fcn.0040dc60
push eax
lea ecx, [ebp - 0xb0]
call fcn.004017b0
test al, al
je 0x409979
push 0
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0x10
call fcn.00408830
sub esp, 0x18
mov byte [ebp - 4], 0x11
mov edx, esp
lea ecx, [edi + 0x18]
xorps xmm0, xmm0
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 [0x492b54]
mov word [edx + 4], ax
mov al, byte [0x492b56]
mov byte [edx + 6], al
mov byte [edx + 7], 0
call fcn.0040ab30
mov edi, eax
mov al, byte [ebp - 0xb0]
mov cl, byte [edi]
mov byte [edi], al
mov edx, dword [edi + 8]
mov esi, dword [edi + 0xc]
mov eax, dword [ebp - 0xa8]
mov byte [ebp - 0x98], cl
mov byte [ebp - 0xb0], cl
mov ecx, dword [ebp - 0xa4]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xa4], esi
push dword [ebp - 0x98]
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0x12
call fcn.0040c7e0
mov edi, dword [ebp - 0xb4]
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.00464337
mov esp, ebp
pop ebp
ret
push edx
call fcn.0040bdf0
push edx
call fcn.0040bdf0
lea eax, [ebp - 0x9c]
push eax
push str.current_path__
call fcn.0040bd90
call fcn.00469cdf
call fcn.00469cdf
int3