Function at 0x4a8550
Capabilities:
Create directory
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d962
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe8], ecx
push 9
push str.userhabit
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x78], 0
call fcn.00404940
cmp dword [ebp - 0x64], 0x10
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x78]
push eax
call fcn.0053a9e3
push 0x553864
lea eax, [ebp - 0x78]
xor edi, edi
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0xec], edi
push eax
call fcn.00404c50
add esp, 0x10
mov ecx, dword [0x589d90]
mov byte [ebp - 4], 2
call fcn.0041ff70
mov edx, eax
cmp byte [edx], 0
jne 0x4a85f7
xor ecx, ecx
jmp 0x4a8609
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a8600
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x48]
call fcn.00414b10
push 5
push str..json
lea ecx, [ebp - 0x48]
call fcn.00414b10
cmp dword [ebp - 0x34], 0x10
lea eax, [ebp - 0x48]
push 0x553858
cmovae eax, dword [ebp - 0x48]
push eax
call fcn.00521cc9
mov esi, eax
add esp, 8
mov dword [ebp - 0xdc], esi
test esi, esi
je 0x4a869a
push 2
push 0
push esi
call fcn.00528c9d
push esi
call fcn.0052920f
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.005238ab
push esi
push 0
push eax
mov dword [ebp - 0xec], eax
call fcn.00527170
mov esi, dword [ebp - 0xdc]
push 0
push 0
push esi
call fcn.00528c9d
push esi
push edi
mov edi, dword [ebp - 0xec]
push 1
push edi
call fcn.00528933
push esi
call fcn.005286e7
add esp, 0x40
xor eax, eax
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x80], 0
mov word [ebp - 0x90], ax
push eax
push 0x400
push eax
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 3
call fcn.00406a90
mov byte [ebp - 4], 4
lea eax, [ebp - 0xe0]
lea ecx, [ebp - 0xd8]
push eax
test edi, edi
jne 0x4a86f2
mov dword [ebp - 0xe0], 0x55388c
mov dword [ebp - 0xdc], 0x55388c
jmp 0x4a86fe
mov dword [ebp - 0xe0], edi
mov dword [ebp - 0xdc], edi
call fcn.004060c0
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov esi, dword [ebp - 0xd8]
cmovae ecx, dword [ebp + 8]
shl esi, 5
mov eax, ecx
add esi, dword [ebp - 0xd0]
cmp byte [ecx], 0
je 0x4a872a
inc eax
cmp byte [eax], 0
jne 0x4a8724
sub eax, ecx
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], eax
mov edx, 0x405
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], ecx
push eax
lea eax, [ebp - 0xdc]
mov word [ebp - 0x12], dx
push eax
lea ecx, [ebp - 0xd8]
call fcn.004053e0
cmp dword [ebp - 0xdc], esi
je 0x4a8777
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
lea ecx, [ebp - 0xd8]
cmovae eax, dword [ebp + 8]
push eax
call fcn.0040f210
mov esi, dword [ebp - 0xc8]
xorps xmm0, xmm0
mov eax, 4
mov dword [ebp - 0xe4], esi
movups xmmword [ebp - 0x138], xmm0
mov word [ebp - 0x12a], ax
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov edi, dword [ebp + 0x18]
mov eax, 8
cmovae ecx, dword [ebp + 8]
cmp edi, eax
cmovb eax, edi
push eax
push 0x558c14
push ecx
call fcn.00404a40
add esp, 0xc
test eax, eax
jne 0x4a87f7
cmp edi, 8
jb 0x4a87f7
cmp edi, 8
setne al
test eax, eax
jne 0x4a87f7
xorps xmm0, xmm0
mov eax, 0x405
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x12], ax
mov dword [ebp - 0x18], 0x558c14
mov dword [ebp - 0x20], 8
mov byte [ebp - 4], 6
jmp 0x4a8819
xorps xmm0, xmm0
mov eax, 0x405
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x12], ax
mov dword [ebp - 0x18], 0x55c010
mov dword [ebp - 0x20], 4
mov byte [ebp - 4], 7
push esi
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0xd8]
call fcn.00409130
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
lea ecx, [ebp - 0xd8]
cmovae eax, dword [ebp + 8]
push eax
call fcn.00404bb0
mov edi, eax
xorps xmm0, xmm0
mov eax, 0xa
movups xmmword [ebp - 0xa0], xmm0
mov word [ebp - 0x92], ax
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov edx, 8
cmovae ecx, dword [ebp + 8]
cmp dword [ebp + 0x18], 8
cmovb edx, dword [ebp + 0x18]
push edx
push 0x558c14
push ecx
call fcn.00404a40
mov ecx, dword [ebp + 0x18]
add esp, 0xc
test eax, eax
jne 0x4a8a48
cmp ecx, 8
jb 0x4a8a48
cmp ecx, 8
setne al
test eax, eax
jne 0x4a8a48
mov ecx, dword [ebp - 0xe8]
mov edx, 3
add ecx, 0x30f4f
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xe8], ecx
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
mov word [ebp - 0x22], dx
mov cl, byte [ecx + eax]
xor eax, eax
test cl, cl
movups xmmword [ebp - 0xa0], xmm0
setne al
add eax, 9
mov word [ebp - 0x92], ax
mov eax, 0x405
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x12], ax
mov dword [ebp - 0x18], str.state
mov dword [ebp - 0x20], 5
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 0xa
cmp eax, edx
jb 0x4a8999
test edx, edx
jne 0x4a8971
mov ecx, dword [esi]
mov dword [ebp - 0x2c], 0x10
test ecx, ecx
je 0x4a8935
mov eax, dword [ecx + 4]
add eax, 0x200
cmp eax, dword [ecx]
jbe 0x4a8957
mov ecx, 0x200
cmp dword [esi + 4], ecx
cmova ecx, dword [esi + 4]
push ecx
mov ecx, esi
call fcn.00408f30
test al, al
jne 0x4a8957
mov eax, dword [ebp - 0x30]
xor edx, edx
mov dword [ebp - 0x28], edx
jmp 0x4a899c
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
lea edx, [ecx + 0xc]
add edx, eax
add eax, 0x200
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], edx
jmp 0x4a899c
lea eax, [edx + 1]
mov ecx, edx
shr eax, 1
add edx, eax
shl ecx, 5
mov dword [ebp - 0x2c], edx
shl edx, 5
push edx
push ecx
push dword [ebp - 0x28]
mov ecx, esi
call fcn.0040ef40
mov edx, eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], edx
jmp 0x4a899c
mov edx, dword [ebp - 0x28]
movups xmm0, xmmword [ebp - 0x20]
inc dword [ebp - 0x30]
xor ecx, ecx
shl eax, 5
mov word [ebp - 0x12], cx
mov byte [ebp - 4], 9
movups xmmword [eax + edx], xmm0
movups xmm0, xmmword [ebp - 0xa0]
movups xmmword [eax + edx + 0x10], xmm0
mov ecx, dword [edi + 4]
xor eax, eax
mov word [ebp - 0x92], ax
cmp dword [edi], ecx
jb 0x4a8a08
test ecx, ecx
jne 0x4a89d9
lea esi, [eax + 0x10]
jmp 0x4a89e0
lea esi, [ecx + 1]
shr esi, 1
add esi, ecx
cmp esi, ecx
jbe 0x4a8a02
mov eax, esi
shl ecx, 4
shl eax, 4
push eax
push ecx
push dword [edi + 8]
mov ecx, dword [ebp - 0xe4]
call fcn.0040ef40
mov dword [edi + 8], eax
mov dword [edi + 4], esi
mov esi, dword [ebp - 0xe4]
mov eax, dword [edi]
mov edx, 3
movups xmm0, xmmword [ebp - 0x30]
mov ecx, eax
inc eax
mov dword [edi], eax
xor eax, eax
shl ecx, 4
add ecx, dword [edi + 8]
mov word [ebp - 0x22], ax
mov eax, dword [ebp - 0xdc]
inc eax
mov dword [ebp - 0xdc], eax
movups xmmword [ecx], xmm0
mov ecx, dword [ebp - 0xe8]
cmp eax, 8
jl 0x4a88c5
jmp 0x4a8b87
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
mov edx, 4
cmovae eax, dword [ebp + 8]
cmp ecx, 4
cmovb edx, ecx
push edx
push 0x55c010
push eax
call fcn.00404a40
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x4a8b87
mov eax, dword [ebp + 0x18]
cmp eax, 4
jb 0x4a8b87
cmp eax, 4
setne cl
test ecx, ecx
jne 0x4a8b87
mov ecx, dword [ebp - 0xe8]
xor eax, eax
add ecx, 0x30f44
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xe8], ecx
mov edx, 3
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
mov word [ebp - 0x22], dx
mov cl, byte [ecx + eax]
xor eax, eax
test cl, cl
movups xmmword [ebp - 0xa0], xmm0
setne al
add eax, 9
mov word [ebp - 0x92], ax
mov eax, 0x405
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x12], ax
mov dword [ebp - 0x18], str.state
mov dword [ebp - 0x20], 5
push esi
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x30]
call fcn.00409130
mov ecx, dword [edi + 4]
mov byte [ebp - 4], 0xb
cmp dword [edi], ecx
jb 0x4a8b4c
test ecx, ecx
jne 0x4a8b1d
lea esi, [ecx + 0x10]
jmp 0x4a8b24
lea esi, [ecx + 1]
shr esi, 1
add esi, ecx
cmp esi, ecx
jbe 0x4a8b46
mov eax, esi
shl ecx, 4
shl eax, 4
push eax
push ecx
push dword [edi + 8]
mov ecx, dword [ebp - 0xe4]
call fcn.0040ef40
mov dword [edi + 8], eax
mov dword [edi + 4], esi
mov esi, dword [ebp - 0xe4]
mov eax, dword [edi]
mov edx, 3
movups xmm0, xmmword [ebp - 0x30]
mov ecx, eax
inc eax
shl ecx, 4
add ecx, dword [edi + 8]
mov dword [edi], eax
xor eax, eax
movups xmmword [ecx], xmm0
mov ecx, dword [ebp - 0xe8]
mov word [ebp - 0x22], ax
mov eax, dword [ebp - 0xdc]
inc eax
mov dword [ebp - 0xdc], eax
cmp eax, 0xb
jl 0x4a8ab0
mov eax, dword [ebp - 0xec]
test eax, eax
je 0x4a8b9a
push eax
call fcn.005238b4
add esp, 4
xorps xmm0, xmm0
mov dword [ebp - 0xf4], 0
movups xmmword [ebp - 0x104], xmm0
mov dword [ebp - 0xf0], 0x100
lea eax, [ebp - 0x104]
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x128], eax
movups xmmword [ebp - 0x124], xmm0
mov dword [ebp - 0x110], 0x100
mov dword [ebp - 0x10c], 0x144
mov byte [ebp - 0x108], 0
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0xd8]
call fcn.00404d50
mov ecx, dword [ebp - 0xf8]
lea eax, [ecx + 1]
cmp eax, dword [ebp - 0xf4]
jbe 0x4a8c2a
push 1
lea ecx, [ebp - 0x104]
call fcn.00405260
mov ecx, dword [ebp - 0xf8]
mov eax, ecx
inc ecx
mov dword [ebp - 0xf8], ecx
mov byte [eax], 0
lea eax, [ebp - 0x90]
dec dword [ebp - 0xf8]
push eax
push dword [ebp - 0xfc]
call fcn.0048ae60
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
cmp dword [ebp - 0x7c], 8
lea ecx, [ebp - 0x60]
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 0xf
cmovae eax, dword [ebp - 0x90]
push ecx
push eax
call fcn.00478b40
cmp dword [ebp - 0x34], 0x10
lea eax, [ebp - 0x48]
push 0x553868
cmovae eax, dword [ebp - 0x48]
push eax
call fcn.00521cc9
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4a8cbe
cmp dword [ebp - 0x4c], 0x10
lea eax, [ebp - 0x60]
push esi
push dword [ebp - 0x50]
cmovae eax, dword [ebp - 0x60]
push 1
push eax
call fcn.00529452
push esi
call fcn.005286e7
add esp, 0x14
mov eax, dword [ebp - 0x4c]
cmp eax, 0x10
jb 0x4a8cd3
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.00404ab0
push dword [ebp - 0x11c]
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
call fcn.005294aa
push 1
push dword [ebp - 0x120]
call fcn.0052389d
push dword [ebp - 0xfc]
call fcn.005294aa
push 1
push dword [ebp - 0x100]
call fcn.0052389d
mov esi, dword [ebp - 0xc4]
add esp, 0x18
test esi, esi
je 0x4a8d3e
mov ecx, esi
call fcn.0040aac0
push 1
push dword [esi + 0x10]
call fcn.0052389d
push 0x14
push esi
call fcn.0052389d
add esp, 0x10
push dword [ebp - 0xb8]
call fcn.005294aa
push 1
push dword [ebp - 0xbc]
call fcn.0052389d
mov eax, dword [ebp - 0x7c]
add esp, 0xc
cmp eax, 8
jb 0x4a8d74
inc eax
lea ecx, [ebp - 0x90]
push eax
push dword [ebp - 0x90]
call fcn.00414d10
xor eax, eax
mov dword [ebp - 0x80], 0
mov word [ebp - 0x90], ax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x7c], 7
cmp eax, 0x10
jb 0x4a8da0
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.00404ab0
mov eax, dword [ebp - 0x64]
mov byte [ebp - 0x48], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
cmp eax, 0x10
jb 0x4a8dc7
inc eax
lea ecx, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
call fcn.00404ab0
mov eax, dword [ebp + 0x1c]
mov byte [ebp - 0x78], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
cmp eax, 0x10
jb 0x4a8dee
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00404ab0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret 0x18