Function at 0x499e19
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x114c
call fcn.004a0e20
mov eax, dword [0x4cd4c0]
xor eax, esp
mov dword [esp + 0x1148], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
cmp eax, dword [ecx + 4]
jg 0x49a108
mov al, byte [0x4ce01b]
nop
test al, al
je 0x49a108
cmp dword [ebp + 0x10], 0
je 0x49a108
lea ecx, [esp + 0x10]
call fcn.004498cb
push 0
push 0xf4240
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.004a0b90
push ebx
push 0
push 0x3e8
push edx
push eax
call fcn.004a0c40
mov dword [esp + 0x18], ebx
pop ebx
nop
mov dword [esp + 0x18], eax
lea edi, [esp + 0x3c]
push 9
mov esi, ecx
mov dword [esp + 0x18], edx
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime32_s]
mov edi, 0x1000
lea eax, [esp + 0x158]
push edi
push 0
push eax
call fcn.004a2490
mov eax, dword [esp + 0x30]
add esp, 0x14
mov ebx, dword [esp + 0x20]
push dword [eax]
push esi
push dword [esp + 0x44]
push dword [esp + 0x4c]
push dword [esp + 0x54]
push dword [ebx*4 + 0x4077d0]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [esp + 0x16c]
push 0x41fba0
push eax
call fcn.0049a1cb
add esp, 0x24
cmp eax, 0xffffffff
je 0x49a108
lea ecx, [ebp + 0x14]
sub edi, eax
push ecx
push dword [ebp + 0x10]
mov edx, edi
push ecx
lea ecx, [esp + 0x44]
push ecx
push ecx
lea ecx, [esp + 0x164]
add ecx, eax
call fcn.0049a28a
test eax, eax
js 0x49a108
push 3
pop esi
sub ebx, 1
je 0x49a061
sub ebx, 1
je 0x49a029
sub ebx, 1
je 0x499fec
sub ebx, 1
je 0x499fac
sub ebx, 1
jne 0x49a0a2
cmp dword [0x4b7038], 6
jbe 0x49a0a2
lea eax, [esp + 0x150]
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x24]
lea eax, [esp + 0x80]
push eax
call fcn.00421de2
lea eax, [esp + 0x60]
push eax
push esi
push ebx
push ebx
push 0x421552
jmp 0x49a098
cmp dword [0x4b7038], 5
jbe 0x49a0a2
lea eax, [esp + 0x150]
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0xb0]
push eax
call fcn.00421de2
lea eax, [esp + 0x90]
push eax
push esi
push 0
push 0
push 0x421590
jmp 0x49a098
cmp dword [0x4b7038], 4
jbe 0x49a0a2
lea eax, [esp + 0x150]
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x2c]
lea eax, [esp + 0xe0]
push eax
call fcn.00421de2
lea eax, [esp + 0xc0]
push eax
push esi
push 0
push 0
push 0x421571
jmp 0x49a098
cmp dword [0x4b7038], esi
jbe 0x49a0a2
lea eax, [esp + 0x150]
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x30]
lea eax, [esp + 0x110]
push eax
call fcn.00421de2
lea eax, [esp + 0xf0]
push eax
push esi
push 0
push 0
push 0x4215ce
jmp 0x49a098
cmp dword [0x4b7038], 2
jbe 0x49a0a2
lea eax, [esp + 0x150]
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x34]
lea eax, [esp + 0x140]
push eax
call fcn.00421de2
lea eax, [esp + 0x120]
push eax
push esi
push 0
push 0
push 0x4215af
push 0x4b7038
call fcn.00421e1c
mov ecx, dword [esp + 0x38]
cmp ecx, esi
jae 0x49a0ac
mov ecx, esi
push 0x41fb9c
lea eax, [esp + 0x1154]
push ecx
sub eax, ecx
push eax
call fcn.0049a1eb
add esp, 0xc
test eax, eax
js 0x49a108
call fcn.0049c018
test eax, eax
je 0x49a108
call fcn.0049c018
mov edx, dword [0x4cd500]
cmp edx, 0xffffffff
je 0x49a108
lea ecx, [esp + 0x150]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49a0eb
push 0
push 0
sub ecx, esi
lea eax, [esp + 0x158]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x1154]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049d0f0
mov esp, ebp
pop ebp
ret