Function at 0x68024077
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
xor esi, esi
xor eax, eax
cmp dword [ebx + 0xc], esi
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
stosd dword es:[edi], eax
je 0x680240c1
cmp dword [ebx + 0x10], esi
je 0x680240c1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebx + 0x2c]
call fcn.6802270b
cmp eax, esi
jne 0x680240e2
cmp dword [ebx + 0x14], esi
je 0x680240e9
cmp dword [ebx + 0x18], esi
je 0x680240e9
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebx + 0x38]
call fcn.6802270b
cmp eax, esi
je 0x680240e9
mov esi, eax
jmp 0x680242bf
mov eax, dword [ebx + 0x40]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x680240ef
mov ecx, dword [ebx + 0x1c]
sub eax, esi
inc eax
add ecx, eax
add ecx, dword [ebp - 0x24]
mov dword [ebx + 8], eax
add ecx, dword [ebp - 0x20]
mov eax, dword [ebx + 0xc]
add ecx, dword [ebx + 0x18]
add ecx, dword [ebx + 0x14]
add ecx, dword [ebx + 0x10]
lea eax, [ecx + eax + 0x120]
push eax
call fcn.68021ec0
test eax, eax
mov dword [ebp - 4], eax
jne 0x6802412f
push 8
pop esi
jmp 0x680242bf
push 2
pop edx
mov dword [ebx], edx
push 7
mov dword [eax], edx
lea esi, [ebx + 4]
lea edi, [eax + 4]
pop ecx
rep movsd dword es:[edi], dword [esi]
cmp dword [ebx], edx
je 0x6802414f
mov esi, 0x8009001a
jmp 0x680242bf
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x20], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x24], ecx
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 0x40]
mov edx, ecx
shr ecx, 2
lea edi, [eax + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0x1c]
mov esi, dword [ebx + 0x3c]
add edx, 0x28
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
mov dword [ebp + 0x14], edx
jne 0x680241a1
cmp dword [ebx + 0x10], ecx
je 0x680241f7
mov eax, dword [ebp - 4]
mov esi, dword [ebx + 0x24]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
mov esi, dword [ebx + 0x28]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add edx, dword [ebx + 0x10]
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0xc]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
add edx, eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 0x14], edx
mov ecx, dword [ebx + 0x14]
test ecx, ecx
jne 0x68024203
cmp dword [ebx + 0x18], ecx
je 0x68024259
mov eax, dword [ebp - 4]
mov esi, dword [ebx + 0x30]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add edx, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x18]
mov esi, dword [ebx + 0x34]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add edx, dword [ebx + 0x18]
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x10]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
add edx, eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 0x14], edx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.680233db
test eax, eax
jne 0x680242ab
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
push 0x40000000
push dword [ebp + 0x10]
call fcn.680237c4
test eax, eax
jne 0x680242ab
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp - 0x14]
call dword [sym.imp._CKERNEL.DLL_WriteFile]
test eax, eax
jne 0x680242af
call dword [sym.imp._CKERNEL.DLL_GetLastError]
mov esi, eax
jmp 0x680242b1
xor esi, esi
cmp dword [ebp - 8], 0
je 0x680242bf
push dword [ebp - 8]
call fcn.68021f03
xor edi, edi
cmp dword [ebp - 0xc], edi
je 0x680242ce
push dword [ebp - 0xc]
call fcn.68021f03
cmp dword [ebp - 0x10], edi
je 0x680242db
push dword [ebp - 0x10]
call fcn.68021f03
cmp dword [ebp - 4], edi
je 0x680242e8
push dword [ebp - 4]
call fcn.68021f03
cmp dword [ebp - 0x14], edi
je 0x680242f6
push dword [ebp - 0x14]
call dword [sym.imp._CKERNEL.DLL_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10