Function at 0x461cc0
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x74
mov esi, dword [esp + 0x88]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov eax, dword [0x5052b0]
mov dword [esp + 0x20], eax
cmp byte [0x506391], 0
jne 0x461d4e
cmp byte [0x506380], 0
je 0x461d21
push 0x20
call sym._malloc
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 0x20
mov dword [eax], 0x6d315b1b
mov dword [esp + 0x1c], 4
mov byte [eax + 4], 0
cmp dword [esi + 0x50], 0
je 0x461d2c
lea eax, [esi + 0x54]
jmp 0x461d3a
mov eax, 0x50637c
cmp dword [0x506378], 0
je 0x461d4e
lea ecx, [esp + 0x18]
push dword [eax]
push str.e__sm
push ecx
call dbg.ffStrbufAppendF
add esp, 0xc
mov ebx, dword [0x507688]
test ebx, ebx
je 0x461e0c
mov edx, dword [0x50768c]
test edx, edx
je 0x461e0c
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
test eax, eax
je 0x461d80
mov ecx, ebp
not ecx
add ecx, eax
cmp ecx, ebx
jae 0x461dbd
mov dword [esp + 0x24], edx
cmp eax, 2
mov ecx, 0x20
cmovae ecx, eax
lea edx, [ebx + ebp]
inc edx
nop word cs:[eax + eax]
mov edi, ecx
add ecx, ecx
cmp edx, edi
ja 0x461da0
test eax, eax
je 0x461dc3
push edi
push dword [esp + 0x24]
call sym._realloc
add esp, 8
mov esi, eax
jmp 0x461de8
mov esi, dword [esp + 0x20]
jmp 0x461df4
push edi
call sym._malloc
add esp, 4
mov esi, eax
test ebp, ebp
je 0x461de5
lea eax, [ebp + 1]
push eax
push dword [esp + 0x24]
push esi
call sym._memcpy
add esp, 0xc
jmp 0x461de8
mov byte [esi], 0
mov edx, dword [esp + 0x24]
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], edi
lea eax, [esi + ebp]
push ebx
push edx
push eax
call sym._memcpy
add esp, 0xc
add ebp, ebx
mov dword [esp + 0x1c], ebp
mov byte [esi + ebp], 0
cmp byte [0x506391], 0
jne 0x461eab
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
test eax, eax
je 0x461e30
mov ecx, edi
not ecx
add ecx, eax
cmp ecx, 4
jae 0x461e5d
cmp eax, 2
mov ecx, 0x20
cmovae ecx, eax
lea edx, [edi + 5]
nop
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x461e40
test eax, eax
je 0x461e63
push ebx
push dword [esp + 0x24]
call sym._realloc
add esp, 8
mov esi, eax
jmp 0x461e88
mov esi, dword [esp + 0x20]
jmp 0x461e90
push ebx
call sym._malloc
add esp, 4
mov esi, eax
test edi, edi
je 0x461e85
lea eax, [edi + 1]
push eax
push dword [esp + 0x24]
push esi
call sym._memcpy
add esp, 0xc
jmp 0x461e88
mov byte [esi], 0
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], ebx
mov dword [esi + edi], 0x6d305b1b
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
lea edx, [eax + 4]
mov dword [esp + 0x1c], edx
mov byte [ecx + eax + 4], 0
mov ebp, dword [0x507690]
mov dword [esp + 0x28], ebp
test ebp, ebp
je 0x461ec9
push ebp
call sym._malloc
add esp, 4
mov esi, eax
mov byte [eax], 0
jmp 0x461ecf
mov esi, dword [0x5052b0]
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], 0
mov edi, dword [0x507694]
test edi, edi
je 0x461f57
mov ecx, dword [0x507698]
test ecx, ecx
je 0x461f57
mov eax, ebp
sub eax, 1
jb 0x461efa
cmp eax, edi
jae 0x461f44
mov dword [esp + 0x24], ecx
cmp ebp, 2
mov eax, 0x20
cmovae eax, ebp
lea ecx, [edi + 1]
nop dword [eax]
mov ebx, eax
add eax, eax
cmp ecx, ebx
ja 0x461f10
test ebp, ebp
je 0x461f2a
push ebx
push esi
call sym._realloc
add esp, 8
mov esi, eax
jmp 0x461f38
push ebx
call sym._malloc
add esp, 4
mov esi, eax
mov byte [eax], 0
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x24]
push edi
push ecx
push esi
call sym._memcpy
add esp, 0xc
mov dword [esp + 0x2c], edi
mov byte [esi + edi], 0
mov ebp, dword [esp + 0x88]
cmp byte [ebp + 0x48], 0
jne 0x461ff9
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
push edi
push 0x2e
push ebx
call sym._memchr
add esp, 0xc
mov ecx, eax
sub ecx, ebx
test eax, eax
cmove ecx, edi
cmp edi, ecx
jbe 0x461ff9
cmp dword [esp + 0x28], 0
je 0x461f9a
mov dword [esp + 0x2c], ecx
add ebx, ecx
mov esi, ebx
jmp 0x461ff6
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov eax, dword [0x5052b0]
mov dword [esp + 0x30], eax
test ebx, ebx
je 0x461ff9
lea eax, [edi + 1]
mov ecx, 0x20
nop
mov ebp, ecx
add ecx, ecx
cmp eax, ebp
ja 0x461fc0
push ebp
call sym._malloc
add esp, 4
mov esi, eax
mov byte [eax], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ebp
push edi
push ebx
push eax
call sym._memcpy
add esp, 0xc
mov dword [esp + 0x2c], edi
add esi, edi
mov ebp, dword [esp + 0x88]
mov byte [esi], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov eax, dword [0x5052b0]
mov dword [esp + 0x14], eax
cmp byte [0x506391], 0
jne 0x462079
cmp byte [0x506380], 0
je 0x46204c
push 0x20
call sym._malloc
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0x20
mov dword [eax], 0x6d315b1b
mov dword [esp + 0x10], 4
mov byte [eax + 4], 0
cmp dword [ebp + 0x68], 0
je 0x462057
lea eax, [ebp + 0x6c]
jmp 0x462065
mov eax, 0x50637c
cmp dword [0x506378], 0
je 0x462079
lea ecx, [esp + 0xc]
push dword [eax]
push str.e__sm
push ecx
call dbg.ffStrbufAppendF
add esp, 0xc
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x462133
mov edx, dword [esp + 0x30]
test edx, edx
je 0x462133
mov eax, dword [esp + 0xc]
mov ebp, dword [esp + 0x10]
test eax, eax
je 0x4620a7
mov ecx, ebp
not ecx
add ecx, eax
cmp ecx, ebx
jae 0x4620dd
mov dword [esp + 0x24], edx
cmp eax, 2
mov ecx, 0x20
cmovae ecx, eax
lea edx, [ebx + ebp]
inc edx
nop word [eax + eax]
mov edi, ecx
add ecx, ecx
cmp edx, edi
ja 0x4620c0
test eax, eax
je 0x4620e3
push edi
push dword [esp + 0x18]
call sym._realloc
add esp, 8
mov esi, eax
jmp 0x462108
mov esi, dword [esp + 0x14]
jmp 0x462114
push edi
call sym._malloc
add esp, 4
mov esi, eax
test ebp, ebp
je 0x462105
lea eax, [ebp + 1]
push eax
push dword [esp + 0x18]
push esi
call sym._memcpy
add esp, 0xc
jmp 0x462108
mov byte [esi], 0
mov edx, dword [esp + 0x24]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], edi
lea eax, [esi + ebp]
push ebx
push edx
push eax
call sym._memcpy
add esp, 0xc
add ebp, ebx
mov dword [esp + 0x10], ebp
mov byte [esi + ebp], 0
mov ebp, dword [esp + 0x88]
cmp byte [0x506391], 0
jne 0x462200
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
test eax, eax
je 0x462157
mov ecx, edi
not ecx
add ecx, eax
cmp ecx, 4
jae 0x46218d
cmp eax, 2
mov ecx, 0x20
cmovae ecx, eax
lea edx, [edi + 5]
nop word cs:[eax + eax]
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x462170
test eax, eax
je 0x462193
push ebx
push dword [esp + 0x18]
call sym._realloc
add esp, 8
mov esi, eax
jmp 0x4621b8
mov esi, dword [esp + 0x14]
jmp 0x4621c0
push ebx
call sym._malloc
add esp, 4
mov esi, eax
test edi, edi
je 0x4621b5
lea eax, [edi + 1]
push eax
push dword [esp + 0x18]
push esi
call sym._memcpy
add esp, 0xc
jmp 0x4621b8
mov byte [esi], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], ebx
mov dword [esi + edi], 0x6d305b1b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea edx, [eax + 4]
mov dword [esp + 0x10], edx
mov byte [ecx + eax + 4], 0
cmp byte [0x506391], 0
mov dword [esp], 0
mov dword [esp + 4], 0
mov eax, dword [0x5052b0]
mov dword [esp + 8], eax
je 0x4623d8
push 0x20
call sym._malloc
add esp, 4
mov dword [esp + 8], eax
mov dword [esp], 0x20
mov dword [esp + 4], 1
mov byte [eax], 0x40
mov eax, 1
mov ecx, dword [esp + 8]
mov byte [ecx + eax], 0
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x3c], 0
je 0x4622d3
mov dword [esp + 0x34], 7
mov dword [esp + 0x38], 0x507684
mov dword [esp + 0x3c], 7
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], 7
mov dword [esp + 0x48], 0x507640
mov dword [esp + 0x4c], 7
mov dword [esp + 0x50], 0x507678
mov dword [esp + 0x54], 7
mov dword [esp + 0x58], 0x50769c
mov dword [esp + 0x5c], 7
lea ecx, [esp + 0x18]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], 7
mov ecx, esp
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], 7
lea ecx, [esp + 0xc]
mov dword [esp + 0x70], ecx
lea ecx, [esp + 0x34]
push ecx
push 8
push 0
push eax
push 0
push str.Title
call dbg.ffPrintFormat
add esp, 0x18
jmp 0x462346
push 0
push eax
push 0
push str.Title
call dbg.ffPrintLogoAndKey
add esp, 0x10
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 1
call esi
add esp, 4
push eax
push dword [esp + 0x20]
push 1
push dword [esp + 0x2c]
call sym._fwrite
add esp, 0x10
push 1
call esi
add esp, 4
push eax
push dword [esp + 8]
push 1
push dword [esp + 0x14]
call sym._fwrite
add esp, 0x10
push 1
call esi
add esp, 4
mov esi, eax
push eax
push dword [esp + 0x14]
push 1
push dword [esp + 0x20]
call sym._fwrite
add esp, 0x10
push esi
push 0xa
call sym._fputc
add esp, 8
cmp dword [esp], 0
mov dword [esp + 4], 0
je 0x462367
mov dword [esp], 0
push dword [esp + 8]
call sym._free
add esp, 4
cmp dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
je 0x46238a
mov dword [esp + 0xc], 0
push dword [esp + 0x14]
call sym._free
add esp, 4
cmp dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
je 0x4623ad
mov dword [esp + 0x28], 0
push dword [esp + 0x30]
call sym._free
add esp, 4
cmp dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
je 0x4623d0
mov dword [esp + 0x18], 0
push dword [esp + 0x20]
call sym._free
add esp, 4
add esp, 0x74
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebp + 0x5c], 0
je 0x462200
mov eax, esp
push dword [ebp + 0x60]
push str.e__sm
push eax
call dbg.ffStrbufAppendF
add esp, 0xc
mov eax, dword [esp]
mov edi, dword [esp + 4]
test eax, eax
je 0x462407
lea ecx, [edi + 1]
cmp eax, ecx
jne 0x46243d
cmp eax, 2
mov ecx, 0x20
cmovae ecx, eax
lea edx, [edi + 2]
nop word cs:[eax + eax]
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x462420
test eax, eax
je 0x462443
push ebx
push dword [esp + 0xc]
call sym._realloc
add esp, 8
mov esi, eax
jmp 0x462468
mov esi, dword [esp + 8]
jmp 0x462472
push ebx
call sym._malloc
add esp, 4
mov esi, eax
test edi, edi
je 0x462465
lea eax, [edi + 1]
push eax
push dword [esp + 0xc]
push esi
call sym._memcpy
add esp, 0xc
jmp 0x462468
mov byte [esi], 0
mov dword [esp + 8], esi
mov dword [esp], ebx
lea ecx, [edi + 1]
mov dword [esp + 4], ecx
mov byte [esi + edi], 0x40
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov byte [ecx + eax], 0
mov eax, dword [esp]
mov edi, dword [esp + 4]
test eax, eax
je 0x46249c
mov ecx, edi
not ecx
add ecx, eax
cmp ecx, 4
jae 0x4624cd
cmp eax, 2
mov ecx, 0x20
cmovae ecx, eax
lea edx, [edi + 5]
nop word [eax + eax]
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x4624b0
test eax, eax
je 0x4624d3
push ebx
push dword [esp + 0xc]
call sym._realloc
add esp, 8
mov esi, eax
jmp 0x4624f8
mov esi, dword [esp + 8]
jmp 0x4624ff
push ebx
call sym._malloc
add esp, 4
mov esi, eax
test edi, edi
je 0x4624f5
lea eax, [edi + 1]
push eax
push dword [esp + 0xc]
push esi
call sym._memcpy
add esp, 0xc
jmp 0x4624f8
mov byte [esi], 0
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esi + edi], 0x6d305b1b
mov eax, dword [esp + 4]
add eax, 4
mov dword [esp + 4], eax
jmp 0x462225