Function at 0x578920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dc8f3
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x676580]
xor eax, ebp
mov dword [ebp - 0x58], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x2c]
call fcn.00403290
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00403290
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
push 0
push 0
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x5789b7
jmp 0x578bc5
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x60]
call fcn.005787d0
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x64], edx
cmp dword [ebp - 0x64], 1
je 0x5789e8
cmp dword [ebp - 0x64], 2
je 0x578a80
cmp dword [ebp - 0x64], 3
je 0x578b4c
jmp 0x578b93
call fcn.0040c480
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x2c]
call fcn.00493020
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x578a0a
mov dword [ebp - 0x68], 0
jmp 0x578a59
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x3fffffff
jle 0x578a2c
mov dword [ebp - 0x6c], 0
jmp 0x578a53
mov eax, dword [ebp - 0x30]
shl eax, 1
call fcn.00533ea0
mov dword [ebp - 0x70], esp
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x30]
shl edx, 1
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.0049c130
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c770
lea ecx, [ebp - 0x28]
call fcn.00493020
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x28]
call fcn.0040c900
mov dword [ebp - 0x24], eax
jmp 0x578b93
mov byte [ebp - 0x44], 0xef
mov byte [ebp - 0x43], 0xbb
mov byte [ebp - 0x42], 0xbf
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 3
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x578ab1
cmp dword [ebp - 0x1c], 3
je 0x578ab6
jmp 0x578bc5
call fcn.0040c480
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x2c]
call fcn.00493020
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x578ad8
mov dword [ebp - 0x74], 0
jmp 0x578b28
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x3fffffff
jle 0x578afa
mov dword [ebp - 0x78], 0
jmp 0x578b22
mov eax, dword [ebp - 0x40]
shl eax, 1
call fcn.00533ea0
mov dword [ebp - 0x7c], esp
push 0xfde9
mov edx, dword [ebp - 0x40]
shl edx, 1
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x7c]
push ecx
call fcn.0049c130
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c770
lea ecx, [ebp - 0x28]
call fcn.00493020
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x28]
call fcn.0040c900
mov dword [ebp - 0x24], eax
jmp 0x578b93
mov byte [ebp - 0x54], 0xff
mov byte [ebp - 0x53], 0xfe
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 2
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x578b79
cmp dword [ebp - 0x1c], 2
je 0x578b7b
jmp 0x578bc5
lea ecx, [ebp - 0x2c]
call fcn.00493020
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x2c]
call fcn.0040c900
shl eax, 1
mov dword [ebp - 0x24], eax
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x578bbc
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x24]
je 0x578bbe
jmp 0x578bc5
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x20], 0xffffffff
je 0x578bd5
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00403270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403270
mov eax, dword [ebp - 0x5c]
lea esp, [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x58]
xor ecx, ebp
call fcn.005236f2
mov esp, ebp
pop ebp
ret 8