Function at 0x419ba0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x344
mov eax, dword [0x4a86f0]
xor eax, esp
mov dword [esp + 0x340], eax
push ebx
push ebp
mov ebp, dword [esp + 0x350]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
xor ebx, ebx
push edi
mov edi, ecx
lea ecx, [esp + 0x1c]
mov eax, 0x110
push ecx
mov dword [esp + 0x30], edi
mov byte [0x4c8dd0], 1
mov byte [esp + 0x1f], bl
mov byte [esp + 0x17], bl
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1e6], bl
mov byte [esp + 0x20e], bl
mov dword [esp + 0x1da], ebx
mov word [esp + 0x1d8], ax
call esi
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1da], edx
lea edx, [esp + 0x1c]
mov ecx, 0x110
push edx
mov dword [esp + 0x1e2], eax
mov dword [esp + 0x24e], ebx
mov byte [esp + 0x6a], bl
mov byte [esp + 0x92], bl
mov dword [esp + 0x5e], ebx
mov word [esp + 0x5c], cx
call esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x5e], eax
lea edx, [esp + 0x13]
push edx
lea eax, [esp + 0x1f]
push eax
push ebx
mov dword [esp + 0x6e], ecx
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x68]
push edx
push ebx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x1f0]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x40]
push eax
push edi
lea edx, [esp + 0x54]
lea ecx, [esp + 0x50]
mov dword [esp + 0xfa], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x40], ebx
call fcn.00418150
add esp, 0x2c
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov cl, byte [esp + 0x3c]
dec cl
mov byte [esp + 0x13], bl
cmp cl, 5
jbe 0x419ce6
mov dl, byte [esp + 0x50]
dec dl
cmp dl, 5
jbe 0x419ce6
mov esi, 2
mov dword [0x4c8dd4], esi
mov byte [0x4c8de0], 1
mov byte [0x4c8de1], 1
jmp 0x419e28
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x5c]
push ecx
push edx
lea esi, [esp + 0x3c]
lea edi, [esp + 0x1e0]
call fcn.004189b0
add esp, 0xc
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
je 0x419d38
cmp esi, 0xb7
jne 0x419e10
cmp ebp, 0xffffffff
je 0x419e10
lea eax, [esp + 0x13]
push eax
push ebp
mov ecx, 0x4c8ab8
call fcn.00418e30
mov esi, eax
cmp esi, ebx
jne 0x419e0a
cmp byte [esp + 0x13], bl
jne 0x419e0a
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
push ebx
lea ecx, [esp + 0x18]
push ecx
dec edi
push edi
push edx
push ebp
mov byte [0x4c8de0], 1
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x419dfb
cmp edi, dword [esp + 0x14]
jne 0x419df4
mov al, byte [esp + 0x3c]
dec al
cmp al, 5
ja 0x419dde
mov cl, byte [esp + 0x50]
dec cl
cmp cl, 5
ja 0x419dde
mov eax, dword [esp + 0x28]
push ebx
lea edx, [esp + 0x18]
push edx
push edi
push eax
push ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x419dfb
cmp edi, dword [esp + 0x14]
jne 0x419df4
mov ecx, dword [esp + 0x2c]
push ecx
mov byte [0x4c8de1], 1
call fcn.00423bc0
add esp, 4
jmp 0x419e21
mov edx, dword [esp + 0x2c]
push edx
mov byte [0x4c8de1], 1
call fcn.00423bc0
add esp, 4
jmp 0x419e21
mov byte [esp + 0x13], 0x1a
jmp 0x419e21
mov byte [esp + 0x13], 0x19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x419e21
mov al, byte [esp + 0x13]
jmp 0x419e16
mov al, 6
mov byte [esp + 0x13], al
mov dword [0x4c8dd4], esi
mov byte [0x4c8dd1], al
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
mov cl, byte [esp + 0x13]
mov byte [0x4c8dd8], bl
mov byte [0x4c8dd9], cl
mov dword [0x4c8ddc], esi
cmp eax, ebx
je 0x419e4f
push eax
call fcn.00469753
add esp, 4
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x419e60
push eax
call fcn.00469753
add esp, 4
mov ecx, dword [esp + 0x350]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046984a
add esp, 0x344
ret