Function at 0x44b000
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x74
mov esi, dword [esp + 0x88]
cmp dword [0x505d8c], 0
jne 0x44b127
mov dword [0x505d84], 0
mov dword [0x505d88], 0
mov eax, dword [0x5052b0]
mov dword [0x505d8c], eax
mov dword [0x505d90], 0
mov dword [0x505d94], 0
mov dword [0x505d98], eax
mov dword [0x505d9c], 0
mov dword [0x505da0], 0
mov dword [0x505da4], eax
mov dword [0x505dcc], 0
mov dword [0x505dd0], 0
mov dword [0x505dd4], eax
mov dword [0x505dd8], 0
mov dword [0x505ddc], 0
mov dword [0x505de0], eax
mov dword [0x505de4], 0
mov dword [0x505de8], 0
mov dword [0x505dec], eax
mov dword [0x505df0], 0
mov dword [0x505df4], 0
mov dword [0x505df8], eax
mov dword [0x505da8], 0
mov dword [0x505dac], 0
mov dword [0x505db0], eax
mov dword [0x505db4], 0
mov dword [0x505db8], 0
mov dword [0x505dbc], eax
mov dword [0x505dc0], 0
mov dword [0x505dc4], 0
mov dword [0x505dc8], eax
push 0x505d84
call dbg.ffDetectOSImpl
add esp, 4
lea edi, [esi + 0x20]
cmp dword [0x505d88], 0
jne 0x44b164
cmp dword [0x505d94], 0
jne 0x44b164
cmp dword [0x505da0], 0
jne 0x44b164
push str.Could_not_detect_OS
push 0
push edi
push 0
push 0x4f4e93
call dbg.ffPrintError
add esp, 0x88
jmp 0x44bcb0
cmp dword [esi + 0x3c], 0
je 0x44b24f
mov dword [esp + 0x14], 7
mov dword [esp + 0x18], 0x5076a8
mov dword [esp + 0x1c], 7
mov dword [esp + 0x20], 0x505d84
mov dword [esp + 0x24], 7
mov dword [esp + 0x28], 0x505d90
mov dword [esp + 0x2c], 7
mov dword [esp + 0x30], 0x505d9c
mov dword [esp + 0x34], 7
mov dword [esp + 0x38], 0x505da8
mov dword [esp + 0x3c], 7
mov dword [esp + 0x40], 0x505db4
mov dword [esp + 0x44], 7
mov dword [esp + 0x48], 0x505dc0
mov dword [esp + 0x4c], 7
mov dword [esp + 0x50], 0x505dcc
mov dword [esp + 0x54], 7
mov dword [esp + 0x58], 0x505dd8
mov dword [esp + 0x5c], 7
mov dword [esp + 0x60], 0x505de4
mov dword [esp + 0x64], 7
mov dword [esp + 0x68], 0x505df0
mov dword [esp + 0x6c], 7
mov dword [esp + 0x70], 0x5076cc
lea eax, [esp + 0x14]
push eax
push 0xc
push 0
push edi
push 0
push 0x4f4e93
call dbg.ffPrintFormat
add esp, 0x18
add esp, 0x74
jmp 0x44bcb0
mov ebx, dword [0x5052b0]
push str.nixos
push dword [0x505da4]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
mov dword [esp + 0x10], edi
je 0x44b33c
mov esi, dword [0x505d88]
mov eax, 0x505d8c
test esi, esi
jne 0x44b2ad
mov esi, dword [0x505d94]
mov eax, 0x505d98
test esi, esi
jne 0x44b2ad
mov esi, dword [0x505da0]
mov eax, 0x505da4
test esi, esi
jne 0x44b2ad
mov eax, 0x5076b0
mov esi, dword [0x5076ac]
xor ecx, ecx
test esi, esi
je 0x44b3c0
mov edi, dword [eax]
mov ebp, 0
test edi, edi
je 0x44b2f7
lea eax, [esi + 1]
mov ecx, 0x20
nop word [eax + eax]
mov ebp, ecx
add ecx, ecx
cmp eax, ebp
ja 0x44b2d0
push ebp
call sym._malloc
add esp, 4
mov ebx, eax
mov byte [eax], 0
push esi
push edi
push eax
call sym._memcpy
add esp, 0xc
mov byte [ebx + esi], 0
mov ecx, esi
cmp dword [0x505de8], 0
je 0x44b76f
mov edi, ecx
push dword [0x505de0]
push ebx
call sym._strstr
add esp, 8
test eax, eax
jne 0x44b76d
mov edx, edi
lea eax, [edi + 1]
test ebp, ebp
mov dword [esp], eax
je 0x44b42f
cmp ebp, eax
je 0x44b42f
mov esi, ebp
jmp 0x44b6b3
push 0x20
call sym._malloc
add esp, 4
mov ebx, eax
mov dword [eax], 0x4f78694e
mov word [eax + 4], 0x53
mov ecx, dword [0x505df4]
mov ebp, 0x20
test ecx, ecx
je 0x44b3d4
mov word [ebx + 5], 0x20
mov esi, dword [0x505df8]
test esi, esi
je 0x44b3db
cmp ecx, 0x1a
mov edi, ecx
jb 0x44b3a6
lea eax, [ecx + 7]
mov ecx, 0x20
nop word cs:[eax + eax]
mov ebp, ecx
add ecx, ecx
cmp eax, ebp
ja 0x44b390
push ebp
push ebx
call sym._realloc
add esp, 8
mov ebx, eax
mov ecx, edi
lea eax, [ebx + 6]
push ecx
push esi
push eax
call sym._memcpy
mov edx, edi
add esp, 0xc
mov byte [ebx + edi + 6], 0
add edx, 6
jmp 0x44b3e0
xor ebp, ebp
cmp dword [0x505de8], 0
jne 0x44b304
jmp 0x44b76f
mov edx, 5
jmp 0x44b3e0
mov edx, 6
cmp dword [0x505de8], 0
je 0x44b694
test ebp, ebp
mov dword [esp], edx
je 0x44b3ff
mov eax, edx
not eax
add eax, ebp
cmp eax, 2
jae 0x44b45f
cmp ebp, 2
mov eax, 0x20
cmovae eax, ebp
lea edi, [edx + 3]
nop dword [eax]
mov esi, eax
add eax, eax
cmp edi, esi
ja 0x44b410
test ebp, ebp
je 0x44b466
push esi
push ebx
call sym._realloc
mov edx, dword [esp + 8]
add esp, 8
jmp 0x44b4bf
test ebp, ebp
mov eax, 0x20
cmovne eax, ebp
lea ecx, [edx + 2]
nop dword [eax]
mov esi, eax
add eax, eax
cmp ecx, esi
ja 0x44b440
test ebp, ebp
je 0x44b48d
push esi
push ebx
call sym._realloc
add esp, 8
mov ebx, eax
mov edx, edi
jmp 0x44b6b3
lea edi, [edx + 3]
mov eax, ebx
jmp 0x44b4c1
push esi
call sym._malloc
mov edx, dword [esp + 4]
add esp, 4
mov ebp, eax
test edx, edx
je 0x44b4b4
lea eax, [edx + 1]
push eax
push ebx
push ebp
call sym._memcpy
mov edx, dword [esp + 0xc]
add esp, 0xc
jmp 0x44b4bd
push esi
call sym._malloc
add esp, 4
mov ebp, eax
test edi, edi
je 0x44b6ab
push dword [esp]
push ebx
push ebp
call sym._memcpy
mov edx, edi
add esp, 0xc
jmp 0x44b6b1
mov byte [ebp], 0
mov edi, 3
mov eax, ebp
mov ebp, esi
mov word [eax + edx], 0x2820
lea ecx, [edx + 2]
mov dword [esp + 4], ecx
mov esi, eax
mov byte [eax + edx + 2], 0
mov eax, dword [0x505dec]
movsx eax, byte [eax]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
add esp, 4
mov edx, eax
test ebp, ebp
je 0x44b4f5
cmp ebp, edi
je 0x44b4f5
mov ebx, ebp
jmp 0x44b559
cmp ebp, 2
mov eax, 0x20
cmovae eax, ebp
mov ecx, dword [esp]
add ecx, 4
nop word cs:[eax + eax]
mov ebx, eax
add eax, eax
cmp ecx, ebx
ja 0x44b510
test ebp, ebp
je 0x44b52e
push ebx
push esi
mov esi, edx
call sym._realloc
mov edx, esi
add esp, 8
mov esi, eax
jmp 0x44b559
mov dword [esp], edx
push ebx
call sym._malloc
add esp, 4
mov ebp, eax
cmp dword [esp + 4], 0
je 0x44b550
push edi
push esi
push ebp
call sym._memcpy
add esp, 0xc
jmp 0x44b554
mov byte [ebp], 0
mov esi, ebp
mov edx, dword [esp]
mov eax, dword [esp + 4]
mov byte [esi + eax], dl
mov byte [esi + edi], 0
mov ebp, dword [0x505dec]
inc ebp
push ebp
call sym._strlen
add esp, 4
test eax, eax
je 0x44b5cd
test ebx, ebx
mov dword [esp + 4], ebp
je 0x44b58a
mov ecx, edi
not ecx
add ecx, ebx
cmp ecx, eax
jae 0x44b5d2
mov dword [esp], esi
cmp ebx, 2
mov edx, 0x20
cmovae edx, ebx
lea ecx, [edi + 1]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
lea ecx, [edi + eax]
inc ecx
nop word [eax + eax]
mov esi, edx
add edx, edx
cmp ecx, esi
ja 0x44b5b0
test ebx, ebx
je 0x44b5d8
push esi
push dword [esp + 4]
call sym._realloc
add esp, 8
mov ebp, eax
jmp 0x44b5fe
mov dword [esp], esi
jmp 0x44b621
mov ebp, esi
mov esi, ebx
jmp 0x44b602
push esi
call sym._malloc
add esp, 4
mov ebp, eax
test edi, edi
je 0x44b5fa
push dword [esp + 0xc]
push dword [esp + 4]
push ebp
call sym._memcpy
add esp, 0xc
jmp 0x44b5fe
mov byte [ebp], 0
mov eax, dword [esp + 8]
lea ecx, [edi + ebp]
push eax
push dword [esp + 8]
push ecx
mov ebx, eax
call sym._memcpy
add esp, 0xc
add edi, ebx
mov byte [ebp + edi], 0
mov dword [esp], ebp
mov ebx, esi
lea edx, [edi + 1]
test ebx, ebx
je 0x44b635
cmp ebx, edx
je 0x44b635
mov eax, dword [esp]
mov ebp, ebx
mov ebx, eax
jmp 0x44b68e
mov esi, edx
cmp ebx, 2
mov eax, 0x20
cmovae eax, ebx
lea ecx, [edi + 2]
nop word cs:[eax + eax]
mov ebp, eax
add eax, eax
cmp ecx, ebp
ja 0x44b650
test ebx, ebx
je 0x44b66f
push ebp
push dword [esp + 4]
call sym._realloc
add esp, 8
mov ebx, eax
mov edx, esi
jmp 0x44b68e
push ebp
call sym._malloc
add esp, 4
mov ebx, eax
test edi, edi
je 0x44b6a6
push esi
push dword [esp + 4]
push ebx
call sym._memcpy
mov edx, esi
add esp, 0xc
mov word [ebx + edi], 0x29
cmp dword [0x5076d0], 0
jne 0x44bb3c
jmp 0x44bc63
mov byte [ebx], 0
jmp 0x44b66b
mov edx, edi
mov byte [ebp], 0
mov ebx, ebp
mov word [ebx + edx], 0x20
mov edi, dword [0x505de8]
test edi, edi
je 0x44b71a
mov ecx, dword [0x505dec]
test ecx, ecx
je 0x44b71a
test esi, esi
je 0x44b6dc
mov eax, esi
sub eax, edx
add eax, 0xfffffffe
cmp eax, edi
jae 0x44b721
mov dword [esp + 4], ecx
cmp esi, 2
mov eax, 0x20
cmovae eax, esi
lea ecx, [edx + edi]
add ecx, 2
add edx, 2
nop word cs:[eax + eax]
mov ebp, eax
add eax, eax
cmp ecx, ebp
ja 0x44b700
test esi, esi
je 0x44b728
push ebp
push ebx
call sym._realloc
add esp, 8
mov ebx, eax
jmp 0x44b752
mov ecx, dword [esp]
mov ebp, esi
jmp 0x44b76f
mov ebp, esi
mov esi, dword [esp]
jmp 0x44b759
mov dword [esp + 8], ebx
mov esi, edx
push ebp
call sym._malloc
add esp, 4
mov ebx, eax
cmp dword [esp], 0
je 0x44b74f
push esi
push dword [esp + 0xc]
push ebx
call sym._memcpy
add esp, 0xc
jmp 0x44b752
mov byte [ebx], 0
mov esi, dword [esp]
mov ecx, dword [esp + 4]
lea eax, [ebx + esi]
push edi
push ecx
push eax
call sym._memcpy
add esp, 0xc
add edi, esi
mov byte [ebx + edi], 0
mov ecx, edi
cmp dword [0x505ddc], 0
je 0x44b799
mov esi, ecx
push dword [0x505de0]
push ebx
call sym._strstr
add esp, 8
test eax, eax
jne 0x44b7bb
mov ecx, 0x505de0
mov edi, 0x505ddc
jmp 0x44b7cc
cmp dword [0x505dd0], 0
je 0x44b8ff
mov esi, ecx
push dword [0x505dd4]
push ebx
call sym._strstr
add esp, 8
test eax, eax
je 0x44b7c2
mov ecx, esi
jmp 0x44b8ff
mov ecx, 0x505dd4
mov edi, 0x505dd0
mov edx, esi
lea eax, [esi + 1]
test ebp, ebp
mov dword [esp], eax
je 0x44b7e2
cmp ebp, eax
je 0x44b7e2
mov eax, ebx
mov esi, ebp
jmp 0x44b84d
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
cmp ebp, 2
mov eax, 0x20
cmovae eax, ebp
lea ecx, [edx + 2]
nop dword [eax + eax]
mov esi, eax
add eax, eax
cmp ecx, esi
ja 0x44b800
mov ebx, edx
test ebp, ebp
je 0x44b81f
push esi
push dword [esp + 0xc]
call sym._realloc
add esp, 8
mov edx, ebx
jmp 0x44b849
push esi
call sym._malloc
add esp, 4
test ebx, ebx
je 0x44b844
push dword [esp]
push dword [esp + 0xc]
push eax
mov ebp, eax
call sym._memcpy
mov eax, ebp
mov edx, ebx
add esp, 0xc
jmp 0x44b849
mov edx, ebx
mov byte [eax], 0
mov ecx, dword [esp + 4]
mov word [eax + edx], 0x20
mov edi, dword [edi]
test edi, edi
je 0x44b8ad
mov ecx, dword [ecx]
test ecx, ecx
je 0x44b8ad
mov dword [esp + 4], ecx
test esi, esi
je 0x44b872
mov ecx, esi
sub ecx, edx
add ecx, 0xfffffffe
cmp ecx, edi
jae 0x44b8b6
mov dword [esp + 8], eax
cmp esi, 2
mov eax, 0x20
cmovae eax, esi
lea ecx, [edx + edi]
add ecx, 2
add edx, 2
nop word [eax + eax]
mov ebp, eax
add eax, eax
cmp ecx, ebp
ja 0x44b890
test esi, esi
je 0x44b8bc
push ebp
push dword [esp + 0xc]
call sym._realloc
add esp, 8
mov ebx, eax
jmp 0x44b8e2
mov ebx, eax
mov ecx, dword [esp]
mov ebp, esi
jmp 0x44b8ff
mov ebx, eax
mov ebp, esi
jmp 0x44b8e2
mov esi, edx
push ebp
call sym._malloc
add esp, 4
mov ebx, eax
cmp dword [esp], 0
je 0x44b8df
push esi
push dword [esp + 0xc]
push ebx
call sym._memcpy
add esp, 0xc
jmp 0x44b8e2
mov byte [ebx], 0
mov esi, dword [esp]
mov ecx, dword [esp + 4]
lea eax, [ebx + esi]
push edi
push ecx
push eax
call sym._memcpy
add esp, 0xc
add edi, esi
mov byte [ebx + edi], 0
mov ecx, edi
mov dword [esp], ecx
cmp dword [0x505db8], 0
je 0x44b93b
push dword [0x505dbc]
push ebx
call sym._strstr
add esp, 8
mov edx, 0x505dbc
mov edi, 0x505db8
test eax, eax
je 0x44b965
sub eax, ebx
mov ecx, dword [esp]
cmp eax, ecx
jne 0x44bb17
test ebp, ebp
jne 0x44b96c
jmp 0x44b977
cmp dword [0x505dc4], 0
je 0x44bb17
push dword [0x505dc8]
push ebx
call sym._strstr
add esp, 8
mov edx, 0x505dc8
mov edi, 0x505dc4
test eax, eax
jne 0x44b928
mov ecx, dword [esp]
test ebp, ebp
je 0x44b977
mov eax, ecx
not eax
add eax, ebp
cmp eax, 1
ja 0x44b9af
cmp ebp, 2
mov eax, 0x20
cmovae eax, ebp
add ecx, 3
nop word cs:[eax + eax]
mov esi, eax
add eax, eax
cmp ecx, esi
ja 0x44b990
mov dword [esp + 4], edx
test ebp, ebp
je 0x44b9b5
push esi
push ebx
call sym._realloc
add esp, 8
mov ecx, dword [esp]
jmp 0x44b9de
mov eax, ebx
mov esi, ebp
jmp 0x44b9e2
push esi
call sym._malloc
add esp, 4
mov ecx, dword [esp]
test ecx, ecx
je 0x44b9db
inc ecx
push ecx
push ebx
push eax
mov ebx, eax
call sym._memcpy
mov eax, ebx
mov ecx, dword [esp + 0xc]
add esp, 0xc
jmp 0x44b9de
mov byte [eax], 0
mov edx, dword [esp + 4]
mov word [eax + ecx], 0x2820
lea ebp, [ecx + 2]
mov byte [eax + ecx + 2], 0
mov ebx, dword [edi]
test ebx, ebx
je 0x44ba48
mov edi, dword [edx]
test edi, edi
je 0x44ba48
test esi, esi
je 0x44ba0b
mov edx, esi
sub edx, ecx
add edx, 0xfffffffd
cmp edx, ebx
jae 0x44ba50
mov dword [esp + 4], edi
cmp esi, 2
mov edx, 0x20
cmovae edx, esi
mov ecx, ebp
lea edi, [ebx + ebp]
mov dword [esp + 8], edi
lea ecx, [ebx + ebp]
inc ecx
nop word [eax + eax]
mov edi, edx
add edx, edx
cmp ecx, edi
ja 0x44ba30
test esi, esi
je 0x44ba59
push edi
push eax
call sym._realloc
add esp, 8
jmp 0x44ba82
mov dword [esp + 4], eax
mov edi, ebp
jmp 0x44baa5
lea ecx, [ebx + ebp]
mov dword [esp + 8], ecx
jmp 0x44ba88
mov esi, eax
push edi
call sym._malloc
add esp, 4
test ebp, ebp
je 0x44ba7f
mov ecx, dword [esp]
add ecx, 3
push ecx
push esi
push eax
mov esi, eax
call sym._memcpy
add esp, 0xc
mov eax, esi
jmp 0x44ba82
mov byte [eax], 0
mov esi, edi
mov edi, dword [esp + 4]
add ebp, eax
push ebx
push edi
push ebp
mov edi, eax
call sym._memcpy
add esp, 0xc
mov dword [esp + 4], edi
mov eax, dword [esp + 8]
mov byte [edi + eax], 0
mov edi, eax
lea edx, [edi + 1]
test esi, esi
mov dword [esp], edx
je 0x44babb
cmp esi, edx
je 0x44babb
mov ebx, dword [esp + 4]
mov ebp, esi
jmp 0x44bb11
cmp esi, 2
mov eax, 0x20
cmovae eax, esi
lea ecx, [edi + 2]
nop dword [eax]
mov ebp, eax
add eax, eax
cmp ecx, ebp
ja 0x44bad0
test esi, esi
je 0x44baed
push ebp
push dword [esp + 8]
call sym._realloc
add esp, 8
mov ebx, eax
jmp 0x44bb11
push ebp
call sym._malloc
add esp, 4
mov ebx, eax
test edi, edi
je 0x44bb0e
push dword [esp]
push dword [esp + 8]
push ebx
call sym._memcpy
add esp, 0xc
jmp 0x44bb11
mov byte [ebx], 0
mov word [ebx + edi], 0x29
push dword [0x5076d4]
push ebx
call sym._strstr
add esp, 8
test eax, eax
je 0x44bb39
sub eax, ebx
mov edx, dword [esp]
cmp eax, edx
jne 0x44bc63
jmp 0x44bb3c
mov edx, dword [esp]
lea eax, [edx + 1]
test ebp, ebp
mov dword [esp], eax
je 0x44bb50
cmp ebp, eax
je 0x44bb50
mov edi, ebx
mov esi, ebp
jmp 0x44bba6
mov edi, ebx
cmp ebp, 2
mov eax, 0x20
cmovae eax, ebp
lea ecx, [edx + 2]
mov esi, eax
add eax, eax
cmp ecx, esi
ja 0x44bb60
mov ebx, edx
test ebp, ebp
je 0x44bb7e
push esi
push edi
call sym._realloc
add esp, 8
mov edi, eax
mov edx, ebx
jmp 0x44bba6
push esi
call sym._malloc
add esp, 4
mov ebp, eax
test ebx, ebx
je 0x44bb9e
push dword [esp]
push edi
push ebp
call sym._memcpy
mov edx, ebx
add esp, 0xc
jmp 0x44bba4
mov edx, ebx
mov byte [ebp], 0
mov edi, ebp
mov word [edi + edx], 0x20
mov ebx, dword [0x5076d0]
test ebx, ebx
je 0x44bc0a
mov ecx, dword [0x5076d4]
test ecx, ecx
je 0x44bc0a
test esi, esi
je 0x44bbcf
mov eax, esi
sub eax, edx
add eax, 0xfffffffe
cmp eax, ebx
jae 0x44bc13
mov dword [esp + 4], ecx
cmp esi, 2
mov eax, 0x20
cmovae eax, esi
lea ecx, [edx + ebx]
add ecx, 2
add edx, 2
nop word [eax + eax]
mov ebp, eax
add eax, eax
cmp ecx, ebp
ja 0x44bbf0
test esi, esi
je 0x44bc1a
push ebp
push edi
call sym._realloc
add esp, 8
mov edi, eax
jmp 0x44bc44
mov ebx, edi
mov edx, dword [esp]
mov ebp, esi
jmp 0x44bc63
mov ebp, esi
mov esi, dword [esp]
jmp 0x44bc4b
mov dword [esp + 8], edi
mov esi, edx
push ebp
call sym._malloc
add esp, 4
mov edi, eax
cmp dword [esp], 0
je 0x44bc41
push esi
push dword [esp + 0xc]
push edi
call sym._memcpy
add esp, 0xc
jmp 0x44bc44
mov byte [edi], 0
mov esi, dword [esp]
mov ecx, dword [esp + 4]
lea eax, [edi + esi]
push ebx
push ecx
push eax
call sym._memcpy
add esp, 0xc
add ebx, esi
mov byte [edi + ebx], 0
mov edx, ebx
mov ebx, edi
push 0
push dword [esp + 0x14]
push 0
push 0x4f4e93
mov esi, edx
call dbg.ffPrintLogoAndKey
add esp, 0x10
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov edi, eax
push eax
push esi
push 1
push ebx
call sym._fwrite
add esp, 0x10
push edi
push 0xa
call sym._fputc
add esp, 8
test ebp, ebp
je 0x44b247
push ebx
call sym._free
add esp, 0x78
pop esi
pop edi
pop ebx
pop ebp
ret