Function at 0x412cf0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x370
mov eax, dword [0x437788]
mov ecx, dword [edi + 0x10cc080]
push ebx
mov dword [esp + 0x36c], eax
mov eax, dword [edi + 0x10cc07c]
mov edx, dword [eax + 0xe0]
mov eax, dword [eax + 0xe4]
push ebp
push esi
mov esi, dword [ecx + 0xe0]
mov ecx, dword [ecx + 0xe4]
cmp eax, ecx
lea ebp, [edi + 0x10969f8]
jg 0x412d4b
jl 0x412d39
cmp edx, esi
jae 0x412d4b
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ecx
jmp 0x412d67
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov esi, edx
mov edx, dword [esp + 0x10]
mov eax, ecx
mov ecx, dword [esp + 0x1c]
cmp edx, esi
jne 0x412d73
cmp eax, ecx
je 0x4132cb
xor ebx, ebx
sub esi, edx
sbb ecx, eax
mov eax, dword [edi + 0x10cc078]
mov edx, dword [eax + 0x34]
mov al, byte [eax + 0x781c]
mov dword [esp + 0x3c], ecx
mov ecx, dword [0x43c548]
push pe_nt_image_headers32
shl ecx, 9
add ecx, 0x43b548
push ecx
mov dword [esp + 0x40], esi
fild qword [esp + 0x40]
mov dword [esp + 0x5c], edx
mov edx, dword [0x43b4b0]
push 0xd4
push edx
fstp qword [esp + 0x58]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x1f], al
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x43c548]
lea ecx, [eax + 1]
and ecx, 0x80000007
jns 0x412de4
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, dword [edi + 0x1097a10]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
shl eax, 9
add eax, 0x43b548
push eax
push 2
push 0x400
push edx
mov dword [0x43c548], ecx
call ebx
push 0x43334c
push ebp
call fcn.0041c218
add esp, 8
test eax, eax
jne 0x41317e
push str..ALF
push ebp
call fcn.0041c218
add esp, 8
test eax, eax
jne 0x41317e
push 0x432ccc
xor esi, esi
push ebp
mov dword [esp + 0x38], esi
call fcn.0041c12e
mov ebp, eax
mov eax, dword [edi + 0x1097600]
add esp, 8
cmp eax, 1
mov dword [esp + 0x44], ebp
jne 0x412e74
push str.From_Begin_mks_
lea ecx, [esp + 0x174]
push str._16s
push ecx
call fcn.0041b780
add esp, 0xc
cmp dword [edi + 0x1097600], esi
jne 0x412ea5
push str.mks
push str.UnixSecond
push str.Time
push str.Date
lea edx, [esp + 0x180]
push str._7s__8s__10s___7s
push edx
call fcn.0041b780
add esp, 0x18
mov eax, dword [edi + 0x10cc078]
cmp dword [eax + 0x2c], esi
jle 0x412ef8
lea ebx, [edi + 0x10971f8]
cmp dword [ebx], 0
je 0x412ee7
lea eax, [esp + 0x170]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412ec5
lea ecx, [esi + 1]
push ecx
sub eax, edx
lea edx, [esp + eax + 0x174]
push str.____Chan__04d
push edx
call fcn.0041b780
add esp, 0xc
mov eax, dword [edi + 0x10cc078]
mov ecx, dword [eax + 0x2c]
inc esi
add ebx, 4
cmp esi, ecx
jl 0x412eb6
lea ecx, [esp + 0x170]
push ecx
push 0x432be8
push ebp
call fcn.0041bc37
add esp, 0xc
mov ebp, dword [esp + 0x14]
cmp ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x38], ebx
jg 0x41326d
jl 0x412f34
mov eax, dword [esp + 0x18]
mov edx, ebx
cmp edx, eax
jae 0x41326d
fld qword [0x433c28]
fdiv qword [esp + 0x48]
fstp qword [esp + 0x60]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, ebx
sub eax, esi
mov ecx, ebp
sbb ecx, edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
fild qword [esp + 0x48]
fstp qword [esp + 0x20]
fld qword [esp + 0x60]
fmul qword [esp + 0x20]
fmul qword [0x433cc0]
call fcn.0041d6e4
mov esi, eax
cmp esi, dword [esp + 0x40]
je 0x412f96
mov edx, dword [edi + 0x1097a10]
push esi
push 1
push 0x400
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x4131e2
cmp dword [edi + 0x1097600], 1
jne 0x412ffc
mov eax, dword [edi + 0x10cc078]
fld dword [eax + 0x4ff0]
fdivr qword [esp + 0x20]
fmul qword [0x433c98]
fst qword [esp + 0x20]
call fcn.0041d6e4
push 0
push 0xa
push edx
push eax
call fcn.00424500
fld qword [esp + 0x20]
fmul qword [0x433da8]
push edx
push eax
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x80]
push str._14.0lf__1d
push ecx
call fcn.0041b780
add esp, 0x18
mov eax, dword [edi + 0x1097600]
test eax, eax
jne 0x41309c
mov eax, dword [edi + 0x10cc078]
fld dword [eax + 0x4ff0]
fdivr qword [0x433cf8]
call fcn.0041d6e4
push ebp
push ebx
push edx
push eax
call fcn.0041d760
mov ecx, dword [edi + 0x1095eb8]
sub ecx, eax
mov eax, dword [edi + 0x1095ebc]
sbb eax, edx
mov edx, eax
sar edx, 0x1f
lea edx, [esp + 0x58]
push edx
push eax
push ecx
call fcn.00401390
mov ecx, dword [esp + 0x58]
movzx edx, word [edi + 0x1095ed4]
push ecx
movzx ecx, word [edi + 0x1095ed0]
push eax
movzx eax, word [edi + 0x1095ed2]
push edx
movzx edx, word [edi + 0x1095ec8]
push eax
movzx eax, word [edi + 0x1095eca]
push ecx
movzx ecx, word [edi + 0x1095ece]
sub edx, 0x7d0
push edx
push eax
push ecx
lea edx, [esp + 0x90]
push str._02d._02d._02d__2d:_02d:_02d__10d__6d
push edx
call fcn.0041b780
add esp, 0x28
mov eax, dword [edi + 0x10cc078]
mov ecx, dword [eax + 0x2c]
xor esi, esi
test ecx, ecx
jle 0x413162
lea ecx, [edi + 0x10971f8]
mov dword [esp + 0x2c], ecx
lea esp, [esp]
mov edx, dword [esp + 0x2c]
cmp dword [edx], 0
je 0x413145
lea eax, [esp + 0x70]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4130d0
mov ecx, dword [edi + 0x10cc078]
sub eax, edx
lea ebx, [esp + eax + 0x70]
mov eax, dword [esp + 0x38]
push ebp
push eax
mov eax, esi
call fcn.00402e60
fst dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
sub esp, 8
fstp qword [esp]
push ecx
call fcn.0040fc80
push eax
lea edx, [esp + 0x17c]
push edx
call fcn.0041b780
lea eax, [esp + 0x180]
push 0x2e
push eax
call fcn.0041c2c0
add esp, 0x18
test eax, eax
je 0x41312b
mov byte [eax], 0x2c
lea ecx, [esp + 0x170]
push ecx
push str._12s
push ebx
call fcn.0041b780
mov ebx, dword [esp + 0x44]
add esp, 0xc
mov ecx, dword [esp + 0x2c]
mov edx, dword [edi + 0x10cc078]
mov eax, dword [edx + 0x2c]
inc esi
add ecx, 4
cmp esi, eax
mov dword [esp + 0x2c], ecx
jl 0x4130c0
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x70]
push eax
push 0x432be8
push ecx
call fcn.0041bc37
add esp, 0xc
jmp 0x41324b
mov esi, dword [edi + 0x10cc078]
push 0
push 0
push 1
push ebp
xor eax, eax
mov dword [esp + 0x40], 1
call fcn.004031e0
push 0
push 0x20
push 3
push 0
push 0
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x34], eax
jne 0x4131d0
mov eax, dword [edi + 0x1097a10]
push 0x64
push 1
push 0x400
push eax
call ebx
jmp 0x4132c1
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x412f0e
mov edx, dword [edi + 0x10cc078]
mov eax, dword [edx + 0x2c]
xor esi, esi
test eax, eax
jle 0x41324b
mov al, byte [esp + 0xf]
test al, al
je 0x413211
mov eax, esi
cdq
idiv dword [esp + 0x54]
mov edx, 1
mov ecx, eax
mov al, byte [esp + 0xf]
shl edx, cl
test al, dl
je 0x41323d
mov ecx, dword [edi + 0x10cc078]
push ebp
push ebx
mov eax, esi
call fcn.00402e60
fstp dword [esp + 0x5c]
mov eax, dword [esp + 0x34]
push 0
lea ecx, [esp + 0x70]
push ecx
push 4
lea edx, [esp + 0x68]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [edi + 0x10cc078]
mov eax, dword [ecx + 0x2c]
inc esi
cmp esi, eax
jl 0x4131f1
mov eax, dword [esp + 0x1c]
add ebx, 1
adc ebp, 0
cmp ebp, eax
mov dword [esp + 0x38], ebx
jl 0x412f42
jg 0x41326d
cmp ebx, dword [esp + 0x18]
jb 0x412f42
mov eax, dword [esp + 0x30]
test eax, eax
je 0x413294
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x34]
push edx
push eax
push esi
mov ecx, edi
call fcn.00415470
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4132a1
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0041bd27
add esp, 4
mov edx, dword [edi + 0x1097a10]
push 0x64
push 1
push 0x400
push edx
mov dword [edi + 0x1097a30], 1
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0x1097a10], 0
mov ecx, dword [esp + 0x374]
call fcn.0041c756
pop esi
pop ebp
pop ebx
add esp, 0x370
ret