Function at 0x40d8b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x274
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push edi
mov dword [esp + 0x10], 1
mov dword [esp + 0x18], 0
mov ebx, 0x41de8c
jmp 0x40d8e0
xor eax, eax
cmp ebx, 0x41de8c
mov ecx, 0x18
lea edi, [esp + 0x30]
mov dword [esp + 0x2c], 0x5b0a0d
rep stosd dword es:[edi], eax
jl 0x40d920
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.AutoBoot_03u
lea ecx, [esp + 0x34]
push ecx
call edi
lea edx, [esp + eax + 0x34]
push edx
call ebp
add esp, 0xc
jmp 0x40d936
push str.AutoBoot_03u
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x4173ec
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x2c]
push edx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x28]
push ecx
push eax
lea edx, [esp + 0x38]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x294]
push edx
push eax
call esi
and dword [esp + 0x10], eax
mov ecx, dword [ebx]
push ecx
push str.Count
lea edx, [esp + 0x98]
push str._s_d_r_n
push edx
call ebp
add esp, 0x10
lea eax, [esp + 0x90]
push eax
call edi
push 0
lea ecx, [esp + 0x2c]
push ecx
push eax
lea edx, [esp + 0x9c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x294]
push edx
push eax
call esi
mov edx, dword [esp + 0x10]
and edx, eax
mov eax, dword [ebx]
test eax, eax
mov dword [esp + 0x10], edx
jle 0x40dae9
mov dword [esp + 0x14], 0
xor esi, esi
mov ecx, dword [ebx + 4]
movzx edx, word [esi + ecx]
movzx edi, word [esi + ecx + 4]
lea eax, [esi + ecx]
shl edx, 0x10
or edi, edx
test esi, esi
mov eax, str.Item_03u
jl 0x40da0d
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x1c0]
push str.Item_03u
push ecx
call ebp
add esp, 0xc
lea eax, [esp + 0x1bc]
push edi
push eax
lea edx, [esp + 0x160]
push str._s_08x_r_n
push edx
call ebp
add esp, 0x10
lea eax, [esp + 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 0x24]
push ecx
push eax
lea edx, [esp + 0x164]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x294]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx + 4]
mov edi, dword [esi + ecx + 8]
and edx, eax
test esi, esi
mov dword [esp + 0x10], edx
mov eax, str.Item_03uDelay
jl 0x40da85
mov edx, dword [esp + 0x14]
push edx
push eax
lea eax, [esp + 0x228]
push eax
call ebp
add esp, 0xc
lea eax, [esp + 0x220]
push edi
push eax
lea ecx, [esp + 0xfc]
push str._s_d_r_n
push ecx
call ebp
add esp, 0x10
lea edx, [esp + 0xf4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x100]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x294]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x10]
and ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx]
inc eax
add esi, 0x10
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x40d9d2
mov edx, dword [esp + 0x18]
inc edx
add ebx, 8
cmp ebx, 0x41deac
mov dword [esp + 0x18], edx
jl 0x40d8e0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x274
ret