Function at 0x412ea0
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x374
mov eax, dword [0x437ebc]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x10cc080]
mov ebx, dword [ecx + 0xe0]
mov ecx, dword [ecx + 0xe4]
mov dword [esp + 0x378], eax
mov eax, dword [esi + 0x10cc07c]
mov edx, dword [eax + 0xe0]
mov eax, dword [eax + 0xe4]
cmp eax, ecx
push edi
lea edi, [esi + 0x10969f8]
jg 0x412f03
jl 0x412ef1
cmp edx, ebx
jae 0x412f03
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ecx
jmp 0x412f1f
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
mov eax, ecx
mov ecx, dword [esp + 0x24]
mov edx, ebx
mov ebx, dword [esp + 0x20]
cmp edx, ebx
jne 0x412f2b
cmp eax, ecx
je 0x413489
sub ebx, edx
sbb ecx, eax
mov eax, dword [esi + 0x10cc078]
mov edx, dword [eax + 0x34]
mov al, byte [eax + 0x781c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebx
fild qword [esp + 0x10]
push 0xd4
mov dword [esp + 0x48], 0
mov dword [esp + 0x40], 0
fstp qword [esp + 0x4c]
mov dword [esp + 0x5c], edx
mov byte [esp + 0x13], al
call fcn.00416d90
mov ecx, dword [esi + 0x1097a10]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 4
push eax
push 2
push 0x400
push ecx
call ebx
push 0x430eec
push edi
call fcn.0041c21f
add esp, 8
test eax, eax
jne 0x4130d5
push str..ALF
push edi
call fcn.0041c21f
add esp, 8
test eax, eax
jne 0x4130d5
push 0x430a88
push edi
mov dword [esp + 0x48], eax
call fcn.0041c182
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x1097600]
add esp, 8
cmp eax, 1
jne 0x412ff1
push str.From_Begin_mks_
lea eax, [esp + 0x17c]
push str._16s
push eax
call fcn.0041bbc9
add esp, 0xc
mov eax, dword [esi + 0x1097600]
test eax, eax
jne 0x413024
push str.mks
push str.UnixSecond
push str.Time
push str.Date
lea ecx, [esp + 0x188]
push str._7s__8s__10s___7s
push ecx
call fcn.0041bbc9
add esp, 0x18
mov edx, dword [esi + 0x10cc078]
mov eax, dword [edx + 0x2c]
xor edi, edi
test eax, eax
jle 0x413083
lea ebx, [esi + 0x10971f8]
lea esp, [esp]
cmp dword [ebx], 0
je 0x413072
lea eax, [esp + 0x178]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413050
lea ecx, [edi + 1]
push ecx
sub eax, edx
lea edx, [esp + eax + 0x17c]
push str.____Chan__04d
push edx
call fcn.0041bbc9
add esp, 0xc
mov eax, dword [esi + 0x10cc078]
mov ecx, dword [eax + 0x2c]
inc edi
add ebx, 4
cmp edi, ecx
jl 0x413040
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x178]
push ecx
push 0x430508
push edx
call fcn.0041b49c
add esp, 0xc
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov ebx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
jg 0x413433
jl 0x4130c5
cmp ecx, dword [esp + 0x20]
jae 0x413433
fld qword [0x4318d8]
fdiv qword [esp + 0x48]
fstp qword [esp + 0x68]
jmp 0x413141
mov ecx, dword [esi + 0x10cc078]
push 0
push 0
push 0
push 1
push edi
mov dword [esp + 0x54], 1
call fcn.00401bd0
push 0
push 0x20
push 3
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x3c], eax
jne 0x413127
mov edx, dword [esi + 0x1097a10]
push 0x64
push 1
push 0x400
push edx
call ebx
jmp 0x41347f
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x41309d
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
sub edx, ecx
mov ecx, ebx
sbb ecx, eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
fild qword [esp + 0x60]
fstp qword [esp + 0x28]
fld qword [esp + 0x68]
fmul qword [esp + 0x28]
fmul qword [0x430728]
call fcn.0041bcd8
mov edi, eax
cmp edi, dword [esp + 0x44]
je 0x41318f
mov edx, dword [esi + 0x1097a10]
push edi
push 1
push 0x400
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x44], edi
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x413391
cmp dword [esi + 0x1097600], 1
jne 0x4131f5
mov eax, dword [esi + 0x10cc078]
fld dword [eax + 0x4ff0]
fdivr qword [esp + 0x28]
fmul qword [0x430528]
fst qword [esp + 0x28]
call fcn.0041bcd8
push 0
push 0xa
push edx
push eax
call fcn.0041b6b0
fld qword [esp + 0x28]
fmul qword [0x4317f8]
push edx
push eax
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x88]
push str._14.0lf__1d
push ecx
call fcn.0041bbc9
add esp, 0x18
mov eax, dword [esi + 0x1097600]
test eax, eax
jne 0x4132af
mov edi, dword [esi + 0x10cc078]
fld dword [edi + 0x4ff0]
fdivr qword [0x430bb0]
call fcn.0041bcd8
mov ecx, dword [esp + 0x10]
push ebx
push ecx
push edx
push eax
call fcn.0041b5c0
mov ecx, dword [esi + 0x1095eb8]
sub ecx, eax
mov eax, dword [esi + 0x1095ebc]
sbb eax, edx
push eax
push ecx
lea ecx, [esp + 0x50]
push ecx
mov ecx, edi
call fcn.004013f0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x5c]
push edx
push eax
push ecx
mov ecx, dword [esi + 0x10cc078]
call fcn.00401410
mov edx, dword [esp + 0x5c]
movzx ecx, word [esi + 0x1095ed2]
push edx
movzx edx, word [esi + 0x1095ed0]
push eax
movzx eax, word [esi + 0x1095ed4]
push eax
movzx eax, word [esi + 0x1095ec8]
push ecx
movzx ecx, word [esi + 0x1095eca]
push edx
movzx edx, word [esi + 0x1095ece]
sub eax, 0x7d0
push eax
push ecx
push edx
lea eax, [esp + 0x98]
push str._02d._02d._02d__2d:_02d:_02d__10d__6d
push eax
call fcn.0041bbc9
add esp, 0x28
mov ecx, dword [esi + 0x10cc078]
mov eax, dword [ecx + 0x2c]
xor edi, edi
test eax, eax
jle 0x413378
lea edx, [esi + 0x10971f8]
mov dword [esp + 0x38], edx
lea esp, [esp]
mov eax, dword [esp + 0x38]
cmp dword [eax], 0
je 0x413361
lea eax, [esp + 0x78]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4132e4
mov ecx, dword [esp + 0x14]
push edi
sub eax, edx
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x10cc078]
push edx
lea ebx, [esp + eax + 0x84]
call fcn.00401840
fst dword [esp + 0x28]
mov eax, dword [esp + 0x28]
sub esp, 8
fstp qword [esp]
push eax
mov ecx, esi
call fcn.0040e310
push eax
lea ecx, [esp + 0x184]
push ecx
call fcn.0041bbc9
lea edx, [esp + 0x188]
push 0x2e
push edx
call fcn.0041c760
add esp, 0x18
test eax, eax
je 0x413347
mov byte [eax], 0x2c
lea eax, [esp + 0x178]
push eax
push str._12s
push ebx
call fcn.0041bbc9
mov ebx, dword [esp + 0x20]
add esp, 0xc
add dword [esp + 0x38], 4
mov ecx, dword [esi + 0x10cc078]
mov eax, dword [ecx + 0x2c]
inc edi
cmp edi, eax
jl 0x4132d0
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x78]
push edx
push 0x430508
push eax
call fcn.0041b49c
add esp, 0xc
jmp 0x4133fd
mov ecx, dword [esi + 0x10cc078]
mov eax, dword [ecx + 0x2c]
xor edi, edi
test eax, eax
jle 0x4133fd
mov al, byte [esp + 0xf]
test al, al
je 0x4133c0
mov eax, edi
cdq
idiv dword [esp + 0x58]
mov edx, 1
mov ecx, eax
mov al, byte [esp + 0xf]
shl edx, cl
test al, dl
je 0x4133ef
mov ecx, dword [esp + 0x10]
push edi
push ebx
push ecx
mov ecx, dword [esi + 0x10cc078]
call fcn.00401840
fstp dword [esp + 0x54]
mov ecx, dword [esp + 0x3c]
push 0
lea edx, [esp + 0x78]
push edx
push 4
lea eax, [esp + 0x60]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esi + 0x10cc078]
mov eax, dword [edx + 0x2c]
inc edi
cmp edi, eax
jl 0x4133a0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
add edx, 1
adc ebx, 0
cmp ebx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
jl 0x413139
jg 0x41342b
mov eax, dword [esp + 0x20]
mov ecx, edx
cmp ecx, eax
jb 0x413139
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
test edx, edx
je 0x413452
mov edi, dword [esp + 0x3c]
push eax
push ecx
push edi
mov ecx, esi
call fcn.00412df0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41345f
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0041b44b
add esp, 4
mov edx, dword [esi + 0x1097a10]
push 0x64
push 1
push 0x400
push edx
mov dword [esi + 0x1097a30], 1
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x1097a10], 0
mov ecx, dword [esp + 0x37c]
call fcn.0041b2b5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret