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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x384
mov eax, dword [0x432ebc]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x4a7f3c]
mov dword [esp + 0x388], eax
mov eax, dword [esi + 0x4a7f38]
mov edx, dword [eax + 0xb8]
mov eax, dword [eax + 0xbc]
push edi
mov edi, dword [ecx + 0xb8]
mov ecx, dword [ecx + 0xbc]
cmp eax, ecx
lea ebx, [esi + 0x48a9f0]
jg 0x4104c5
jl 0x4104b1
cmp edx, edi
jae 0x4104c5
mov dword [esp + 0x28], edi
mov edi, ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], edi
jmp 0x4104dd
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], edi
mov edx, edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x24], ecx
mov eax, ecx
mov ecx, dword [esp + 0x28]
cmp edx, ecx
jne 0x4104ed
cmp eax, edi
je 0x410a38
sub ecx, edx
mov edx, edi
sbb edx, eax
mov eax, dword [esi + 0x4a7f34]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x1c], edx
fild qword [esp + 0x18]
mov dl, byte [eax + 0x4328]
push 0xd4
mov dword [esp + 0x40], 0
fstp qword [esp + 0x54]
mov dword [esp + 0x34], 0
mov dword [esp + 0x60], ecx
mov byte [esp + 0x17], dl
call fcn.004124e0
add esp, 4
push eax
mov eax, dword [esi + 0x48ba08]
push 2
push 0x400
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x42bd1c
push ebx
call fcn.004172b7
add esp, 8
test eax, eax
jne 0x410687
push str..ALF
push ebx
call fcn.004172b7
add esp, 8
test eax, eax
jne 0x410687
push 0x42b9bc
push ebx
mov dword [esp + 0x40], eax
call fcn.0041723c
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x48b5f8]
add esp, 8
cmp eax, 1
jne 0x4105b3
push str.From_Begin__mks_
lea edx, [esp + 0x18c]
push str._16s
push edx
call fcn.00416b5d
add esp, 0xc
mov eax, dword [esi + 0x48b5f8]
test eax, eax
jne 0x4105dc
push str.Time
push str.Date
lea eax, [esp + 0x190]
push str._8s__14s
push eax
call fcn.00416b5d
add esp, 0x10
mov ecx, dword [esi + 0x4a7f34]
mov eax, dword [ecx + 0x2c]
xor ebx, ebx
test eax, eax
jle 0x410637
lea edi, [esi + 0x48b1f0]
cmp dword [edi], 0
je 0x410622
lea eax, [esp + 0x188]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410600
sub eax, edx
lea edx, [ebx + 1]
push edx
lea eax, [esp + eax + 0x18c]
push 0x42c600
push eax
call fcn.00416b5d
add esp, 0xc
mov ecx, dword [esi + 0x4a7f34]
mov eax, dword [ecx + 0x2c]
inc ebx
add edi, 4
cmp ebx, eax
jl 0x4105f1
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x188]
push edx
push 0x42b49c
push eax
call fcn.004163d3
add esp, 0xc
mov eax, dword [esp + 0x24]
cmp eax, edi
mov ecx, dword [esp + 0x20]
mov ebx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
jg 0x4109e2
jl 0x410677
cmp ecx, dword [esp + 0x28]
jae 0x4109e2
fld qword [0x42c5b8]
fdiv qword [esp + 0x50]
fstp qword [esp + 0x78]
jmp 0x4106e0
mov ecx, dword [esi + 0x4a7f34]
push 0
push 0
push 0
push 1
push ebx
mov dword [esp + 0x4c], 1
call fcn.004016a0
push 0
push 0x20
push 3
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x30], eax
je 0x410a18
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x410651
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 + 0x50], edx
mov dword [esp + 0x54], ecx
fild qword [esp + 0x50]
fstp qword [esp + 0x40]
fld qword [esp + 0x78]
fmul qword [esp + 0x40]
fmul qword [0x42b6c0]
call fcn.00416c6c
mov edi, eax
cmp edi, dword [esp + 0x3c]
je 0x41072e
mov edx, dword [esi + 0x48ba08]
push edi
push 1
push 0x400
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x3c], edi
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x410915
cmp dword [esi + 0x48b5f8], 1
jne 0x410774
mov eax, dword [esi + 0x4a7f34]
fld dword [eax + 0x1b00]
sub esp, 8
fdivr qword [esp + 0x48]
lea ecx, [esp + 0x90]
fmul qword [0x42c5f8]
fstp qword [esp]
push str._16.1lf
push ecx
call fcn.00416b5d
add esp, 0x10
mov eax, dword [esi + 0x48b5f8]
test eax, eax
jne 0x41083c
mov eax, dword [esi + 0x4a7f34]
fld dword [eax + 0x1b00]
fdivr qword [0x42c528]
call fcn.00416c6c
mov ecx, dword [esp + 0x18]
push ebx
push ecx
push edx
push eax
call fcn.00416510
mov edi, dword [esi + 0x489eb0]
mov ebx, dword [esi + 0x489eb4]
mov ecx, dword [esi + 0x4a7f34]
sub edi, eax
sbb ebx, edx
push ebx
push edi
lea edx, [esp + 0x78]
push edx
call fcn.00401170
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 0
push 0x989680
push ebx
push edi
call fcn.00416950
imul eax, eax, 0x989680
movzx ecx, word [esp + 0x68]
sub edi, eax
mov eax, 0x51eb851f
mul edi
movzx eax, word [esp + 0x6a]
shr edx, 5
push edx
movzx edx, word [esp + 0x70]
push edx
movzx edx, word [esp + 0x68]
push eax
movzx eax, word [esp + 0x6e]
push ecx
movzx ecx, word [esp + 0x76]
sub edx, 0x7d0
push edx
push eax
push ecx
lea edx, [esp + 0xa4]
push str._02d__02d__02d__02d:_02d:_02d__05d
push edx
call fcn.00416b5d
mov ebx, dword [esp + 0x40]
add esp, 0x24
mov eax, dword [esi + 0x4a7f34]
mov edx, dword [eax + 0x2c]
xor ecx, ecx
test edx, edx
mov dword [esp + 0x40], ecx
jle 0x4108f6
lea edx, [esi + 0x48b1f0]
mov dword [esp + 0x14], edx
lea ecx, [ecx]
mov eax, dword [esp + 0x14]
cmp dword [eax], 0
je 0x4108d5
lea eax, [esp + 0x88]
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x410873
push ecx
mov ecx, dword [esp + 0x1c]
push ebx
sub eax, edi
push ecx
mov ecx, dword [esi + 0x4a7f34]
mov edi, eax
call fcn.004014c0
fst dword [esp + 0x4c]
mov edx, dword [esp + 0x4c]
sub esp, 8
fstp qword [esp]
push edx
mov ecx, esi
call fcn.0040c450
push eax
lea eax, [esp + 0x194]
push eax
call fcn.00416b5d
lea ecx, [esp + 0x198]
push ecx
lea edx, [esp + edi + 0x9c]
push 0x42c5c0
push edx
call fcn.00416b5d
mov ecx, dword [esp + 0x5c]
add esp, 0x1c
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x4a7f34]
mov edx, dword [eax + 0x2c]
inc ecx
add edi, 4
cmp ecx, edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x14], edi
jl 0x410860
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x88]
push ecx
push 0x42b49c
push edx
call fcn.004163d3
add esp, 0xc
jmp 0x4109ac
mov eax, dword [esi + 0x4a7f34]
mov ecx, dword [eax + 0x2c]
xor edi, edi
test ecx, ecx
jle 0x4109ac
lea ecx, [esi + 0x48b1f0]
mov dword [esp + 0x14], ecx
mov al, byte [esp + 0x13]
test al, al
je 0x410952
mov eax, edi
cdq
idiv dword [esp + 0x5c]
mov edx, 1
mov ecx, eax
mov al, byte [esp + 0x13]
shl edx, cl
test al, dl
je 0x410999
mov ecx, dword [esp + 0x14]
cmp dword [ecx], 0
jne 0x410967
mov edx, dword [esi + 0x4a7f34]
cmp dword [edx + 0x30], 1
je 0x410999
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x4a7f34]
push edi
push ebx
push eax
call fcn.004014c0
fstp dword [esp + 0x58]
mov eax, dword [esp + 0x30]
push 0
lea ecx, [esp + 0x88]
push ecx
push 4
lea edx, [esp + 0x64]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
add dword [esp + 0x14], 4
mov ecx, dword [esi + 0x4a7f34]
mov eax, dword [ecx + 0x2c]
inc edi
cmp edi, eax
jl 0x410932
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
add edx, 1
adc ebx, 0
cmp ebx, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebx
jl 0x4106d8
jg 0x4109da
mov edx, dword [esp + 0x28]
cmp dword [esp + 0x18], edx
jb 0x4106d8
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
test edx, edx
je 0x410a01
mov edi, dword [esp + 0x30]
push eax
push ecx
push edi
mov ecx, esi
call fcn.004103b0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x410a0e
mov eax, dword [esp + 0x34]
push eax
call fcn.00416382
add esp, 4
mov dword [esi + 0x48ba28], 1
mov ecx, dword [esi + 0x48ba08]
push 0x64
push 1
push 0x400
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x48ba08], 0
mov ecx, dword [esp + 0x38c]
call fcn.00416328
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret