Function at 0x4628c8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x462ba7
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x320], 0
je 0x462a9a
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x462a5d
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 1
jne 0x46292d
lea eax, [ebp - 0x14]
jmp 0x462931
mov eax, dword [ebp - 0x14]
dec eax
cmp word [eax], 0xa0d
je 0x462a4d
mov edx, dword [ebp - 0x14]
cmp byte [edx], 0xa
jne 0x462a4d
xor edx, edx
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x14]
sub edx, ebx
mov dword [ebp - 0x18], edx
cmp word [eax], 0xa0d
je 0x462a3a
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x4bc]
sub al, 1
jb 0x462980
je 0x462a09
dec al
je 0x4629af
dec al
je 0x4629d6
jmp 0x462a3a
push 0
lea eax, [ebp - 0x28]
push eax
push ebx
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [ebp - 0x2c]
push eax
push 2
push 0x481d64
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_WriteFile_1
jmp 0x462a3a
mov edx, dword [ebp - 0x18]
mov ecx, ebx
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x28], eax
mov edx, 0x481d64
mov ecx, 2
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x2c], eax
jmp 0x462a3a
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x424]
mov ecx, ebx
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x28], eax
mov edx, 0x481d64
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x424]
mov ecx, 2
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x2c], eax
jmp 0x462a3a
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x428]
mov ecx, ebx
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x28], eax
mov edx, 0x481d64
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x428]
mov ecx, 2
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x2c], eax
xor ebx, ebx
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
sub dword [ebp + 0xc], eax
jmp 0x462a4e
inc ebx
inc dword [ebp - 0x14]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x30]
jne 0x462922
cmp dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x14]
sub eax, ebx
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x28]
push eax
push ebx
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_WriteFile_1
cmp ebx, dword [ebp - 0x28]
je 0x462a8c
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x462b4d
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
jmp 0x462b4d
cmp dword [ebp + 0xc], 0
jbe 0x462b4d
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x4bc]
cmp eax, 5
ja case.default.0x462ab7
jmp dword [eax*4 + 0x462abe]
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x462b47
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_WriteFile_1
jmp 0x462b47
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x10], eax
jmp 0x462b47
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x424]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x10], eax
jmp 0x462b47
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x428]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x10], eax
jmp 0x462b47
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x462b47
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x10]
je 0x462b79
lea edx, [ebp - 0x34]
mov eax, 0x6230
call fcn.00408f34
mov ecx, dword [ebp - 0x34]
mov dl, 1
mov eax, dword [0x4663d0]
call fcn.0040c1d4
call fcn.00403608
cmp byte [ebp + 8], 1
jne 0x462b91
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov dl, byte [ebp + 0x10]
mov eax, dword [ebp - 4]
call fcn.004626cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462bae
lea eax, [ebp - 0x34]
call fcn.00403b38
ret