Function at 0x57d7da
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5e6553
mov eax, dword fs:[0]
push eax
sub esp, 0x710
mov eax, dword [0x70b744]
xor eax, esp
mov dword [esp + 0x708], eax
push ebx
push esi
push edi
mov eax, dword [0x70b744]
xor eax, esp
push eax
lea eax, [esp + 0x720]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 4]
mov dword [esp + 0x18], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x57dbc4
push esi
call fcn.0057cfc9
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jle 0x57dbc4
xor ecx, ecx
push 2
lea edi, [esi + 2]
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004fed14
pop ecx
push edi
push ebx
push eax
mov dword [esp + 0x24], eax
call fcn.00410655
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
add esp, 0xc
push esi
push edi
push 0x4e37
push dword [eax + 4]
call dword [0x71f740]
mov word [edi + esi*2], 0xa
push 0x767e50
lea eax, [esp + 0xa8]
mov esi, 0x721f18
push eax
mov ecx, esi
call fcn.004bb1f5
lea ecx, [esp + 0x44]
mov dword [esp + 0x728], ebx
call fcn.004ac634
mov byte [esp + 0x728], 1
call fcn.004c1998
cmp eax, 7
jle 0x57d941
cmp dword [esp + 0xb8], ebx
je 0x57d8fb
cmp dword [esp + 0xbc], 8
mov eax, dword [esp + 0xa8]
jae 0x57d8e6
lea eax, [esp + 0xa8]
push ebx
push eax
lea ecx, [esp + 0x28]
call fcn.004ac9bc
mov byte [esp + 0x728], 2
jmp 0x57d911
lea eax, [esp + 0x20]
push 5
push eax
call fcn.004c1b34
pop ecx
pop ecx
mov byte [esp + 0x728], 3
push eax
lea ecx, [esp + 0x48]
call fcn.004acaa2
lea ecx, [esp + 0x20]
mov byte [esp + 0x728], 1
call fcn.004ac66a
mov eax, dword [esp + 0x14]
add eax, 0x110
push eax
lea ecx, [esp + 0x48]
call fcn.004230f9
jmp 0x57d977
push ebx
push 0x69dd8c
lea ecx, [esp + 0x28]
call fcn.004ac9bc
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x72c], 4
call fcn.004acaa2
lea ecx, [esp + 0x20]
mov byte [esp + 0x728], 1
call fcn.004ac66a
push edi
lea ecx, [esp + 0xc4]
call fcn.004120e9
push ebx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x72c], 5
call fcn.004cb9f4
mov byte [esp + 0x728], 6
cmp byte [0x722275], bl
je 0x57da0b
cmp byte [esp + 0x90], bl
jne 0x57da0b
push ebx
sub esp, 0x24
mov ecx, esp
mov dword [esp + 0x40], esp
push ebx
push str.Could_not_impersonate_user
call fcn.004ac9bc
mov ecx, esi
call fcn.0041122b
lea ecx, [esp + 0x68]
mov byte [esp + 0x728], 5
call fcn.004cbcf8
push ebx
push 1
lea ecx, [esp + 0xc8]
call fcn.00410779
lea ecx, [esp + 0x44]
call fcn.004ac66a
push ebx
push 1
lea ecx, [esp + 0xac]
call fcn.00410779
xor eax, eax
inc eax
jmp 0x57dbc6
lea ecx, [esp + 0x44]
call fcn.004acb45
push str.TXT_Files__.txt_
push 0x800006
push eax
push 0x6a74a4
push ebx
lea eax, [esp + 0x2a0]
push eax
call fcn.00423c44
mov dword [esp + 0x28c], 0x6a0d50
mov byte [esp + 0x728], 7
call dword [sym.imp.USER32.dll_GetActiveWindow]
lea edi, [esp + 0x28c]
call fcn.00423a82
xor esi, esi
inc esi
cmp eax, esi
jne 0x57db67
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [esp + 0x520]
push eax
call dword [0x71f620]
mov edi, eax
cmp edi, 0xffffffff
jne 0x57db30
push ebx
push ebx
push ebx
push ebx
push ebx
push 3
lea eax, [esp + 0x38]
push 0x408
push eax
call fcn.004b9340
pop ecx
pop ecx
mov byte [esp + 0x740], 8
cmp dword [eax + 0x18], 8
jb 0x57dab5
mov eax, dword [eax + 4]
jmp 0x57dab8
add eax, 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.004120e9
mov byte [esp + 0x75c], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x6c], esp
push eax
call fcn.004af895
pop ecx
lea eax, [esp + 0x12c]
push eax
mov byte [esp + 0x77c], 8
call fcn.005434e0
push ebx
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x730], 0xb
call fcn.00410779
lea ecx, [esp + 0xdc]
call fcn.00543198
lea eax, [esp + 0xdc]
push eax
mov byte [esp + 0x72c], 7
call fcn.00413b7d
jmp 0x57db67
cmp dword [esp + 0xd8], 8
mov eax, dword [esp + 0xc4]
jae 0x57db48
lea eax, [esp + 0xc4]
push ebx
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0xdc]
add ecx, ecx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x18]
call fcn.0051d89c
mov byte [esp + 0x72c], 6
cmp dword [esp + 0x2a4], ebx
pop ecx
je 0x57db8e
push dword [esp + 0x2a0]
call fcn.004fde16
lea ecx, [esp + 0x68]
mov byte [esp + 0x728], 5
call fcn.004cbcf8
push ebx
push esi
lea ecx, [esp + 0xc8]
call fcn.00410779
lea ecx, [esp + 0x44]
call fcn.004ac66a
push ebx
push esi
lea ecx, [esp + 0xac]
call fcn.00410779
xor eax, eax
mov ecx, dword [esp + 0x720]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x708]
xor ecx, esp
call fcn.0051d721
mov esp, ebp
pop ebp
ret