Function at 0x1e0056b6
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x1e02c028]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x160], eax
mov eax, dword [0x1e03049c]
xor ecx, ecx
cmp eax, ecx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x15c], ecx
je 0x1e005956
cmp dword [eax + 0x20], ecx
je 0x1e005956
mov eax, dword [eax + 0x24]
cmp eax, ecx
je 0x1e005956
cmp eax, 0xffffffff
je 0x1e005956
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0xc]
and edi, 0xfffffff
dec eax
mov dword [0x1e02c6ec], ecx
je 0x1e00572d
dec eax
je 0x1e0057cd
dec eax
jne 0x1e005954
push dword [ebp + 8]
mov ebx, 0x1e02c6e4
push ebx
call fcn.1e01ef89
push 4
push ebx
call fcn.1e01ee7a
mov dword [eax], edi
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1e00574a
sub eax, edi
inc eax
push eax
push ebx
call fcn.1e01ef89
push esi
push ebx
call fcn.1e01f082
push 0x28
push ebx
call fcn.1e01ef89
push 0x28
push ebx
call fcn.1e01ee7a
mov esi, dword [ebp - 0x160]
push 0xa
mov edi, eax
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x160]
mov eax, dword [esi + 0x18]
xor edi, edi
cmp eax, edi
je 0x1e005806
cmp dword [esi + 0x1c], edi
je 0x1e005806
push eax
push ebx
call fcn.1e01ef89
mov eax, dword [esi + 0x18]
mov esi, dword [esi + 0x1c]
push eax
push ebx
mov dword [ebp - 0x158], eax
call fcn.1e01ee7a
mov ecx, dword [ebp - 0x158]
mov edi, 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]
mov esi, dword [ebp - 0x160]
xor edi, edi
jmp 0x1e00580d
push 2
mov ebx, 0x1e02c6e4
push ebx
call fcn.1e01ef89
push 4
push ebx
call fcn.1e01ee7a
mov dword [eax], edi
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1e0057e9
sub eax, edi
inc eax
push eax
push ebx
call fcn.1e01ef89
push esi
push ebx
call fcn.1e01f082
jmp 0x1e0058df
push edi
push ebx
call fcn.1e01ef89
cmp dword [esi + 4], edi
je 0x1e0058a8
lea eax, [ebp - 0x154]
push eax
push dword [esi + 8]
call fcn.1e01b1f5
test eax, eax
je 0x1e00589f
test byte [ebp - 0x154], 0x10
jne 0x1e00589f
inc dword [0x1e02c6f8]
push dword [0x1e02c6f8]
lea eax, [ebp - 0x14]
push 0x1e0014ec
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push edi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x1e03049c]
push dword [eax + 0x20]
push edi
call fcn.1e01db38
add esp, 0x1c
push edi
push eax
push dword [esi + 8]
mov dword [ebp - 0x158], eax
call fcn.1e01b969
push dword [ebp - 0x158]
push edi
call fcn.1e01bf2c
lea eax, [ebp - 0x14]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1e005885
sub eax, esi
inc eax
push eax
push ebx
call fcn.1e01ef89
lea eax, [ebp - 0x14]
push eax
jmp 0x1e0057fb
push edi
push ebx
call fcn.1e01ef89
jmp 0x1e0058df
push dword [esi + 0xc]
push ebx
call fcn.1e01ef89
cmp dword [esi + 0xc], edi
je 0x1e0058df
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 8]
push eax
push ebx
mov dword [ebp - 0x158], eax
call fcn.1e01ee7a
mov ecx, dword [ebp - 0x158]
mov edi, 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]
mov eax, dword [0x1e02c6ec]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x15c], eax
xor esi, esi
push esi
lea eax, [ebp - 0x164]
push eax
push 4
lea eax, [ebp - 0x15c]
push eax
mov eax, dword [0x1e03049c]
push dword [eax + 0x24]
call edi
push esi
lea eax, [ebp - 0x164]
push eax
push dword [0x1e02c6ec]
mov eax, dword [0x1e03049c]
push dword [0x1e02c6e4]
push dword [eax + 0x24]
call edi
push esi
lea eax, [ebp - 0x164]
push eax
push 4
lea eax, [ebp - 0x15c]
push eax
mov eax, dword [0x1e03049c]
push dword [eax + 0x24]
call edi
mov eax, dword [0x1e03049c]
push dword [eax + 0x24]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.1e01ab9b
leave
ret 0x10