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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x474
mov eax, dword [0x449238]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10cc07c]
mov ecx, dword [esi + 0x10cc080]
mov edx, dword [eax + 0xe0]
mov ebx, dword [ecx + 0xe0]
mov eax, dword [eax + 0xe4]
mov ecx, dword [ecx + 0xe4]
cmp eax, ecx
push edi
lea edi, [esi + 0x10969f8]
jg 0x4131f5
jl 0x4131e3
cmp edx, ebx
jae 0x4131f5
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ecx
jmp 0x413211
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ecx
mov eax, ecx
mov ecx, dword [esp + 0x2c]
mov edx, ebx
mov ebx, dword [esp + 0x28]
cmp edx, ebx
jne 0x41321d
cmp eax, ecx
je 0x413755
sub ebx, edx
sbb ecx, eax
mov eax, dword [esi + 0x10cc078]
mov dl, byte [eax + 0x781c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x18], ebx
fild qword [esp + 0x18]
push 0xd4
mov dword [esp + 0x44], 0
mov dword [esp + 0x3c], 0
fstp qword [esp + 0x6c]
mov dword [esp + 0x58], ecx
mov byte [esp + 0x1b], dl
call fcn.00416f80
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 4
push eax
mov eax, dword [esi + 0x1097a10]
push 2
push 0x400
push eax
call ebx
push 0x43dfa4
push edi
call fcn.00424825
add esp, 8
test eax, eax
jne 0x4133ae
push str..ALF
push edi
call fcn.00424825
add esp, 8
test eax, eax
jne 0x4133ae
push 0x43db38
push edi
mov dword [esp + 0x3c], eax
call fcn.00424763
add esp, 8
cmp dword [esi + 0x1097600], 1
mov dword [esp + 0x30], eax
jne 0x4132e1
push str.From_Begin_mks_
lea edx, [esp + 0x27c]
push str._16s
push edx
call fcn.00423e7d
add esp, 0xc
cmp dword [esi + 0x1097600], 0
jne 0x413313
push str.mks
push str.UnixSecond
push str.Time
push str.Date
lea eax, [esp + 0x288]
push str._7s__8s__10s___7s
push eax
call fcn.00423e7d
add esp, 0x18
mov ecx, dword [esi + 0x10cc078]
xor edi, edi
cmp dword [ecx + 0x2c], edi
jle 0x41336a
lea ebx, [esi + 0x10971f8]
cmp dword [ebx], 0
je 0x413359
lea eax, [esp + 0x278]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x413335
sub eax, edx
lea edx, [edi + 1]
push edx
lea eax, [esp + eax + 0x27c]
push str.____Chan__04d
push eax
call fcn.00423e7d
add esp, 0xc
mov ecx, dword [esi + 0x10cc078]
add edi, 1
add ebx, 4
cmp edi, dword [ecx + 0x2c]
jl 0x413326
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x278]
push edx
push 0x43d5a8
push eax
call fcn.0042349c
add esp, 0xc
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov ebx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
jg 0x413700
jl 0x41341a
cmp ecx, dword [esp + 0x28]
jae 0x413700
jmp 0x41341a
mov ecx, dword [esi + 0x10cc078]
push 0
push 0
push 0
push 1
push edi
mov dword [esp + 0x48], 1
call fcn.00401c90
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 + 0x38], eax
jne 0x413400
mov ecx, dword [esi + 0x1097a10]
push 0x64
push 1
push 0x400
push ecx
call ebx
jmp 0x41374b
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x413384
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
sub edx, ecx
mov ecx, ebx
sbb ecx, eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ecx
fild qword [esp + 0x58]
fst qword [esp + 0x48]
fld qword [esp + 0x68]
fdivr st(1)
fmul qword [0x43d7d0]
call fcn.00423f00
mov edi, eax
cmp edi, dword [esp + 0x40]
je 0x41346c
mov edx, dword [esi + 0x1097a10]
fstp st(0)
push edi
push 1
push 0x400
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
fld qword [esp + 0x48]
mov dword [esp + 0x40], edi
cmp dword [esp + 0x34], 0
jne 0x413667
cmp dword [esi + 0x1097600], 1
jne 0x4134cb
mov eax, dword [esi + 0x10cc078]
fld dword [eax + 0x4ff0]
fdivr qword [0x43d5c8]
fmulp st(1)
fld st(0)
call fcn.00423f36
push 0
push 0xa
push edx
push eax
call fcn.00423830
fdiv qword [0x43d8e0]
push edx
push eax
sub esp, 8
lea ecx, [esp + 0x88]
fstp qword [esp]
push str._14.0lf__1d
push ecx
call fcn.00423e7d
add esp, 0x18
jmp 0x4134cd
fstp st(0)
cmp dword [esi + 0x1097600], 0
jne 0x413586
mov edi, dword [esi + 0x10cc078]
fld dword [edi + 0x4ff0]
fdivr qword [0x43dc68]
call fcn.00423f36
mov ecx, dword [esp + 0x18]
push ebx
push ecx
push edx
push eax
call fcn.00423740
mov ecx, dword [esi + 0x1095eb8]
sub ecx, eax
mov eax, dword [esi + 0x1095ebc]
sbb eax, edx
push eax
push ecx
lea ecx, [esp + 0x68]
push ecx
mov ecx, edi
call fcn.00401420
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
lea edx, [esp + 0x50]
push edx
push eax
push ecx
mov ecx, dword [esi + 0x10cc078]
call fcn.00401440
mov edx, dword [esp + 0x50]
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.00423e7d
add esp, 0x28
mov ecx, dword [esi + 0x10cc078]
xor edi, edi
cmp dword [ecx + 0x2c], edi
jle 0x41364e
lea edx, [esi + 0x10971f8]
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x3c]
cmp dword [eax], 0
je 0x413637
lea eax, [esp + 0x78]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4135b5
mov ecx, dword [esp + 0x1c]
push edi
sub eax, edx
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x10cc078]
push edx
lea ebx, [esp + eax + 0x84]
call fcn.004018f0
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
sub esp, 0xc
fst qword [esp + 4]
mov ecx, esi
fstp dword [esp]
call fcn.0040e350
push eax
lea eax, [esp + 0x184]
push eax
call fcn.00423e7d
lea ecx, [esp + 0x188]
push 0x2e
push ecx
call fcn.004248a0
add esp, 0x18
test eax, eax
je 0x41361d
mov byte [eax], 0x2c
lea edx, [esp + 0x178]
push edx
push str._12s
push ebx
call fcn.00423e7d
mov ebx, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [esi + 0x10cc078]
add dword [esp + 0x3c], 4
add edi, 1
cmp edi, dword [eax + 0x2c]
jl 0x4135a1
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x78]
push ecx
push 0x43d5a8
push edx
call fcn.0042349c
add esp, 0xc
jmp 0x4136d2
mov eax, dword [esi + 0x10cc078]
fstp st(0)
xor edi, edi
cmp dword [eax + 0x2c], edi
jle 0x4136d2
cmp byte [esp + 0x17], 0
je 0x413695
mov eax, edi
cdq
idiv dword [esp + 0x54]
mov edx, 1
mov ecx, eax
mov al, byte [esp + 0x17]
shl edx, cl
test al, dl
je 0x4136c4
mov ecx, dword [esp + 0x18]
push edi
push ebx
push ecx
mov ecx, dword [esi + 0x10cc078]
call fcn.004018f0
fstp dword [esp + 0x44]
mov ecx, dword [esp + 0x38]
push 0
lea edx, [esp + 0x78]
push edx
push 4
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esi + 0x10cc078]
add edi, 1
cmp edi, dword [edx + 0x2c]
jl 0x413676
add dword [esp + 0x18], 1
adc ebx, 0
cmp ebx, dword [esp + 0x2c]
mov dword [esp + 0x1c], ebx
jl 0x413412
jg 0x4136f8
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x18], eax
jb 0x413412
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x34], 0
je 0x41371e
mov edi, dword [esp + 0x38]
push eax
push ecx
push edi
mov ecx, esi
call fcn.004130e0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41372b
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00423420
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 + 0x47c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00423284
mov esp, ebp
pop ebp
ret