Function at 0x421b40
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x459950
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x4631a0]
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x48]
push ecx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], edi
call fcn.00407710
cmp dword [0x468d4c], edi
jne 0x421c1c
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x40]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, edi
jl 0x421bab
push ecx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x421bf0
mov ecx, dword [0x4631a0]
cmp eax, edi
mov dword [esi], ecx
mov ebx, eax
je 0x421bc2
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
push edi
mov ecx, esi
call fcn.00401cb0
test eax, eax
je 0x421bf0
mov eax, dword [esi]
lea ebp, [edi + edi]
push ebp
lea edx, [edi + edi + 2]
push ebx
push edx
push eax
call fcn.00401bc0
mov ecx, dword [esi]
add esp, 0x10
mov dword [ecx - 8], edi
mov edx, dword [esi]
mov word [edx + ebp], 0
mov eax, dword [esp + 0x14]
mov edx, dword [0x4631a4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x421da4
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x421da4
jmp 0x421d94
mov esi, dword [esp + 0x14]
mov ecx, 0x468d40
call fcn.004217c0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, edi
je 0x421d3a
cmp word [esi], di
je 0x421d3a
cmp dword [0x468d40], 0xffffffff
je 0x421d3a
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [0x4631a0]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x2a]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x26]
and edx, 0xffff
push esi
push edx
mov edx, dword [esp + 0x2c]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x24]
push str._02d:_02d:_02d:_04d_t_s_r_n
push eax
mov byte [esp + 0x54], 1
call fcn.004076f0
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
mov eax, dword [ecx - 8]
mov dx, word [ecx + eax*2 - 6]
cmp dx, 0xa
jne 0x421d12
push eax
lea ecx, [esp + 0x14]
call fcn.00405500
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx - 8]
mov word [eax + ecx*2 - 6], 0xd
mov edx, dword [esp + 0x10]
mov ecx, dword [edx - 8]
mov word [eax + ecx*2 - 4], 0xa
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [eax - 8]
lea esi, [eax - 1]
call fcn.00408830
cmp esi, 0xffffffff
jne 0x421cff
mov ecx, dword [esp + 0x10]
push ecx
call ebp
mov esi, eax
mov edx, dword [esp + 0x10]
mov dword [edx - 8], esi
mov eax, dword [esp + 0x10]
mov word [eax + esi*2], di
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
lea edx, [esp + 0x18]
push edi
add eax, eax
push edx
push eax
push ecx
mov ecx, dword [0x468d40]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
call fcn.00401c80
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x40]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, edi
jl 0x421d57
push ecx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x421d75
mov edx, dword [0x4631a0]
cmp eax, edi
mov dword [esi], edx
mov ebx, eax
jne 0x421d69
xor eax, eax
jmp 0x421d6c
push eax
call ebp
push ebx
push eax
mov ecx, esi
call fcn.00408770
mov eax, dword [esp + 0x14]
mov edx, dword [0x4631a4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x421da4
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x421da4
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.0044bf22
add esp, 4
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret