Function at 0x40d120
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2fc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
xor eax, eax
mov dword [esp + 0x30], 0x5b0a0d
mov ecx, 0x18
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
push str.Edge
lea eax, [esp + 0x34]
push eax
call esi
push 0x4173ec
lea ecx, [esp + 0x34]
push ecx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x30]
push edx
call esi
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
and ebx, 1
xor edi, edi
test edi, edi
mov ecx, dword [edi*4 + 0x420620]
mov dword [esp + 0xc], ecx
mov eax, str.Edge_03u
jl 0x40d1bf
push edi
push eax
lea edx, [esp + 0x108]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x100]
mov ecx, dword [esp + 0xc]
push ecx
push eax
lea edx, [esp + 0x38]
push str._s_08x_r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x30]
push eax
call esi
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x3c]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
and ebx, eax
inc edi
cmp edi, 0x10
jl 0x40d191
mov dword [esp + 0x10], 0x419c48
mov edi, 2
nop
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
lea ecx, [edi - 1]
test ecx, ecx
mov dword [esp + 0xc], edx
mov eax, str.Range_02d
jl 0x40d240
push ecx
push eax
lea eax, [esp + 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x100]
mov ecx, dword [esp + 0xc]
push ecx
push eax
lea edx, [esp + 0x38]
push str._s_d_r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x30]
push eax
call esi
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x3c]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
and ebx, eax
test edi, edi
mov dword [esp + 0xc], edx
mov eax, str.Range_02d
jl 0x40d2ab
push edi
push eax
lea eax, [esp + 0x2a8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x2a0]
mov ecx, dword [esp + 0xc]
push ecx
push eax
lea edx, [esp + 0xa0]
push str._s_d_r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x98]
push eax
call esi
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
lea edx, [esp + 0xa4]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x10]
add edi, 0xa
add ecx, 8
and ebx, eax
cmp edi, 0x52
mov dword [esp + 0x10], ecx
jl 0x40d210
xor eax, eax
mov dword [esp + 0x30], 0x5b0a0d
mov ecx, 0x18
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.Action
lea ecx, [esp + 0x34]
push ecx
call edi
push 0x4173ec
lea edx, [esp + 0x34]
push edx
call edi
lea eax, [esp + 0x30]
push eax
call esi
mov edi, dword [ebp + 8]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x3c]
push edx
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
and ebx, eax
xor ecx, ecx
mov eax, 0x41dee0
cmp dword [eax], 0
je 0x40d36c
inc ecx
add eax, 4
cmp eax, 0x41e070
jl 0x40d366
push ecx
push str.Count
lea eax, [esp + 0x38]
push str._s_d_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x30]
push ecx
call esi
push 0
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x3c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
and ebx, eax
xor eax, eax
mov edx, 0x41dee0
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
cmp dword [edx], 0
je 0x40d5ff
xor eax, eax
cmp edx, 0x41dee0
mov ecx, 0x18
lea edi, [esp + 0x9c]
mov dword [esp + 0x98], 0x5b0a0d
rep stosd dword es:[edi], eax
jl 0x40d416
mov ecx, dword [esp + 0x14]
push ecx
push str.Action_03u
lea edx, [esp + 0xa0]
push edx
call esi
lea eax, [esp + eax + 0xa0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40d429
push str.Action_03u
lea ecx, [esp + 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4173ec
lea edx, [esp + 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x98]
push eax
call esi
mov edi, dword [ebp + 8]
push 0
lea ecx, [esp + 0x28]
push ecx
push eax
lea edx, [esp + 0xa4]
push edx
push edi
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
and ebx, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push ecx
push str.Flag
lea edx, [esp + 0x1d8]
push str._s_08x_r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x1d0]
push eax
call esi
push 0
lea ecx, [esp + 0x2c]
push ecx
push eax
lea edx, [esp + 0x1dc]
push edx
push edi
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
and ebx, eax
xor edx, edx
mov dword [esp + 0x18], edx
mov ecx, edx
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x10]
test dword [ecx], eax
je 0x40d5ed
xor eax, eax
test edx, edx
mov ecx, 0x18
lea edi, [esp + 0x34]
mov dword [esp + 0x30], 0x5b0a0d
rep stosd dword es:[edi], eax
jl 0x40d500
push edx
push str.Range_03u
lea edx, [esp + 0x38]
push edx
call esi
lea eax, [esp + eax + 0x38]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40d510
push str.Range_03u
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4173ec
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x30]
push eax
call esi
push 0
lea ecx, [esp + 0x24]
push ecx
push eax
lea edx, [esp + 0x3c]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
lea edi, [ecx + edx]
and ebx, eax
mov eax, dword [edi*8 + 0x41e070]
push eax
push str.Page
lea ecx, [esp + 0x170]
push str._s_d_r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x168]
push edx
call esi
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x174]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [edi*8 + 0x41e074]
push ecx
push str.Button
lea edx, [esp + 0x240]
push str._s_d_r_n
push edx
and ebx, eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x238]
push eax
call esi
push 0
lea ecx, [esp + 0x30]
push ecx
push eax
lea edx, [esp + 0x244]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x18]
and ebx, eax
inc edx
cmp edx, 0xc
mov dword [esp + 0x18], edx
jl 0x40d4b5
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
add edx, 4
inc eax
add ecx, 0xc
cmp edx, 0x41e070
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
jl 0x40d3c3
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0x4205f8
jmp 0x40d640
xor eax, eax
mov ecx, 0x18
lea edi, [esp + 0x34]
mov dword [esp + 0x30], 0x5b0a0d
rep stosd dword es:[edi], eax
cmp dword [esp + 0x14], 0x4205f8
jl 0x40d680
mov ecx, dword [esp + 0xc]
push ecx
push str.Circle_u
lea edx, [esp + 0x38]
push edx
call esi
lea eax, [esp + eax + 0x38]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40d690
push str.Circle_u
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4173ec
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x30]
push eax
call esi
push 0
lea ecx, [esp + 0x30]
push ecx
push eax
lea edx, [esp + 0x3c]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [esp + 0x14]
mov ecx, dword [edi - 8]
push ecx
push str.Flag
lea edx, [esp + 0x240]
push str._s_d_r_n
push edx
and ebx, eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x238]
push eax
call esi
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x244]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [edi - 4]
push ecx
push str.Number
lea edx, [esp + 0x170]
push str._s_d_r_n
push edx
and ebx, eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x168]
push eax
call esi
push 0
lea ecx, [esp + 0x24]
push ecx
push eax
lea edx, [esp + 0x174]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [edi]
push ecx
push str.Maximum
lea edx, [esp + 0x1d8]
push str._s_d_r_n
push edx
and ebx, eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x1d0]
push eax
call esi
push 0
lea ecx, [esp + 0x2c]
push ecx
push eax
lea edx, [esp + 0x1dc]
mov dword [esp + 0x34], eax
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [edi + 4]
push ecx
push str.Minimum
lea edx, [esp + 0xa0]
push str._s_d_r_n
push edx
and ebx, eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x98]
push eax
call esi
push 0
lea ecx, [esp + 0x28]
push ecx
push eax
lea edx, [esp + 0xa4]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [edi + 8]
push ecx
push str.Page
lea edx, [esp + 0x2a8]
push str._s_d_r_n
push edx
and ebx, eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x2a0]
push eax
call esi
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
lea edx, [esp + 0x2ac]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [edi + 0xc]
push ecx
push str.Button
lea edx, [esp + 0x108]
push str._s_d_r_n
push edx
and ebx, eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x100]
push eax
call esi
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x10c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0xc]
and ebx, eax
add edi, 0x18
inc edx
cmp edi, 0x420628
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], edi
jl 0x40d640
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret